- Home /
Android Graphic glitches
I am having some troubles with the graphics in my game on Android . You can see in the first screenshot how it looks on android and in the second how it looks on IOS . Notice the terrain in the back glitches and the depth sorting order errors on platforms or on the character . I have tried playing with different shaders , with the near and far clipping planes of the camera with no luck .
Any ideas?
Do you have the depth buffer turned on? It seems that one of the shaders that you use disables writing to the depth buffer.
I have no idea how to check the depth buffer . Spent the last 2hrs googling about it with no success . Any directions , please ? And thanks for helping
Found a shader with ZWrite Off , but didn't resolve the problem . Probably there is more to it . Ins$$anonymous$$d I used a simple filter on the camera and the problem is gone . It has to be something in those shaders but I am a noob when it comes to shaders . Anyway thanks for helping and I will accept if you answer . $$anonymous$$ight help others also .
You have to either remove that line or change it to "ZWrite On." Did you change that in the shader?
Yes I did . Also played with ZTest Always and still no luck
Answer by _Gkxd · Aug 04, 2015 at 07:15 PM
http://docs.unity3d.com/Manual/SL-CullAndDepth.html
Check the parts about ZWrite and ZTest. One of your shaders might have a line that says "ZWrite Off" which disables writing to the depth buffer.
Your answer
Follow this Question
Related Questions
[5.1.3] Weird Graphic glitch on some Android devices 1 Answer
Somes problems on my 2D space shooter game (Unity 5.5.0p4) 0 Answers
Rendering problem on Android 1 Answer
How to recover Auto Graphics API for Android back to default? 0 Answers
MainCamera just showing Skybox, when switching to Android 0 Answers