Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
2 captures
11 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by mihnea2kx · Aug 04, 2015 at 07:38 AM · androidunity 5renderinggraphicsglitch

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?

screen-shot-2015-08-04-at-100644.png (340.4 kB)
screen-shot-2015-08-04-at-103142.png (353.8 kB)
Comment
Add comment · Show 5
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image _Gkxd · Aug 04, 2015 at 03:28 PM 1
Share

Do you have the depth buffer turned on? It seems that one of the shaders that you use disables writing to the depth buffer.

avatar image mihnea2kx · Aug 04, 2015 at 04:53 PM 0
Share

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

avatar image mihnea2kx · Aug 05, 2015 at 08:20 AM 0
Share

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 .

avatar image _Gkxd · Aug 05, 2015 at 02:37 PM 0
Share

You have to either remove that line or change it to "ZWrite On." Did you change that in the shader?

avatar image mihnea2kx · Aug 05, 2015 at 02:59 PM 0
Share

Yes I did . Also played with ZTest Always and still no luck

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

24 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges