- Home /
The question is answered, right answer was accepted
Weird blue/black things appearing on terrain on build
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.
This is usually z-buffer rendering related. I'm not an android guy but try changing the near and far camera values and see if that helps.
Every instance I've seen of this is Z fighting. Searched Google for "Unity Z fighting Android", lots of links.
Answer by _Gkxd · Jul 20, 2015 at 05:32 AM
"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.
I solved the problem by deleting overlaping layer, thanks to _Gkxd.
Follow this Question
Related Questions
Transparent terrain shader not working 2 Answers
Rim Lighting on Terrain? 0 Answers
jungle terrain problem 0 Answers
How to make terrain partially transparent (lower opacity) 1 Answer
How to get toon Shader to work with terrains - Answered 1 Answer