Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Projector Z-Fighting issue

Discussion in 'Android' started by Jason-H, Jul 22, 2013.

  1. Jason-H

    Jason-H

    Joined:
    Nov 5, 2010
    Posts:
    87
    Hi, I have an issue with the projector / blob shadow flickering (Z-Fighting) on Android devices when the camera is at a sharp angle to the shadow. The shadow is on a car and when the camera is close to the road (by the wheel arch / angled at about 10 degrees) it becomes most apparent.

    I've tried changing the near clip plane of the camera which is now at 0.5 but that hasn't helped.

    I've used both Unity's built-in blob shadow projector shader as well as trying to edit it and change the offset values around which also hasn't helped. I also changed the ZTest to greater to see if that helped but it just drew the shadow on top of the car model and didn't affect the z-fighting.

    Any help is appreciated as I don't know what else I could change to fix this! Thanks.

    Unity Answers post: http://answers.unity3d.com/questions/498051/projector-z-fighting-issue-android-only.html
     
    Last edited: Jul 22, 2013
  2. Jason-H

    Jason-H

    Joined:
    Nov 5, 2010
    Posts:
    87
    Bump!
     
  3. ZimM

    ZimM

    Joined:
    Dec 24, 2012
    Posts:
    963
    Try enabling 24-bit depth buffer.