My team and I have a game where a player can change the world between a technological future and a pastoral past. In order to give the player some good visual feedback, we created two kinds of materials to place on our objects in game -- one that dissolves between two materials (meaning something is wood in the past and metal in the future) and another material style that dissolves to 0 opacity, meaning the object will disappear on the world toggle.
For the most part, it's really successful and looks great. Occasionally, however, we get a really odd problem, which is particularly apparent in this puzzle:


On top, you'll see the Detail Lighting of the map, which shows how it ought to be constructed. Below, you can see the Lit mode, showing some materials vanishing behind others.
Note how the railing on the top right platform vanishes, but only into the ceiling, and it's actually visible in front of the floating picture (an Easter Egg in our game) but not around it at all.
The water plane, on the bottom right, is not using a vanishing material, but is translucent. However, the wall uses a vanishing material, and appears to supercede the water when rendering.
In the top right, a yellow pressure pad (like the one on the far left) vanishes completely into the ceiling.
This only happens with our vanishing material, not the swapping material. Here's the material tree for the vanishing material:

We're not really sure what this is caused by. We assume it has to be something in the Opacity settings. Does anyone have any idea how to fix this problem? It's not an issue in the editor so much, as flickering is pretty common with these weird swapping textures we have, but when it shows up in game it creates an inexcusable problem.
For the most part, it's really successful and looks great. Occasionally, however, we get a really odd problem, which is particularly apparent in this puzzle:


On top, you'll see the Detail Lighting of the map, which shows how it ought to be constructed. Below, you can see the Lit mode, showing some materials vanishing behind others.
Note how the railing on the top right platform vanishes, but only into the ceiling, and it's actually visible in front of the floating picture (an Easter Egg in our game) but not around it at all.
The water plane, on the bottom right, is not using a vanishing material, but is translucent. However, the wall uses a vanishing material, and appears to supercede the water when rendering.
In the top right, a yellow pressure pad (like the one on the far left) vanishes completely into the ceiling.
This only happens with our vanishing material, not the swapping material. Here's the material tree for the vanishing material:

We're not really sure what this is caused by. We assume it has to be something in the Opacity settings. Does anyone have any idea how to fix this problem? It's not an issue in the editor so much, as flickering is pretty common with these weird swapping textures we have, but when it shows up in game it creates an inexcusable problem.
Comment