Hi
I have two objects, a building roof and a chimney. I need to fade out the roof and chimney as different times, I set the material shader to Transparent Diffuse and animate the alpha in the update. This works great on both objects.
However, the problem I have is before any fading starts (alpha at 255) I can see the chimney under the roof!. This happens in both editor and when the game runs.
It only happens with intersecting meshes but I don’t want this behaviour when the material is totally opaque.
Any help please?
Cheers
Geoff
There is no 100% workaround for intersecting semi-transparent geometry (and this problem is not unique to Unity). If one mesh is always behind the other mesh though then you can manually set the render queue to make sure one is always rendered before the other.
Ok thanks for replying.
I know that 3D rendering applications don’t have this issues so just thought it would be the same in Unity.
Setting the intersecting objects back to just a Diffuse material fixes the strange visibility issue but now I can’t fade that object out.
Is there another way for me to fade out intersecting objects.