- Home /
Transparency for several objects without overlaps
I have to admit that I already asked my question here:
Unity Support: Non-overlapping transparency for several objects
...but it seems unlikely that it will be answered there.
I would like to recreate a certain effect where multiple transparent objects won't create lesser transparent areas where they are overlapping each other. The following image illustrates what I would like to avoid:
Minecraft is a great example to show you what I would like to achieve:
The fountain has no overlapping water and it's not possible to create those artifacts from the image above in Minecraft in any other way. A friend of mine told me that this effect might be possible by using the stencil buffer which in Unity is a Pro only feature. I'm curious if he's right with that. Minecraft (Vanilla) doesn't use shaders, so can you use the stencil buffer with the fixed function pipeline?
this won't really help, but I'm pretty sure that $$anonymous$$inecraft simply doesn't render the surface of a cube if it's not directly facing the camera.. in your case it's a matter of having whole objects while in $$anonymous$$inecraft it seems to be more of a "render this face if it's facing the camera" type thing..
also, maybe http://answers.unity3d.com/questions/418008/render-transparent-material-without-double-occlusi.html might help
Thank you for trying to help me but what you describe is nothing special and is called "back-face culling". Furthermore, it doesn't avoid those overlapping areas.
Your answer
Follow this Question
Related Questions
Use stencil buffer to hide objects with same shader? 1 Answer
Shader that renders pixel with highest alpha value? 0 Answers
can see inside object that is supposed to be fully opaque 0 Answers
Sprite animation on quad with UV-coordinates 1 Answer
I have transparent areas in my sprite, how can they show up as transparent in Unity? 1 Answer