Weird blue/black things appearing on terrain on build

alt text

alt text

I have been trying to find what causes this for two days now. The only thing I have found is that blue things sometimes disappear when I transform that part of the terrain.

Note that it’s fine on the editor, they only appear on the android build. Thanks in advance.

“Z fighting” occurs when two polygons are at very similar depth values, and the graphics card can’t tell which one is in front. Different graphics cards can support different depth buffer resolutions, and I’m guessing that the depth buffer resolution of an Android’s graphics card is lower than a computer’s graphics card’s.

The easiest way of fixing this is to move one of the layers slightly above the other, until z-fighting stops happening on the Android. 0.01 units is usually enough, but you might need more.