Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Unity Z-fighting Issue

Discussion in 'General Discussion' started by unity_t-Lu88L9HgE33g, Mar 10, 2020.

  1. unity_t-Lu88L9HgE33g

    unity_t-Lu88L9HgE33g

    Joined:
    Sep 6, 2019
    Posts:
    3
    Hi Everyone.
    I am developing 3d Runner Game, Where I am facing an issue while player running, at certain parts of the road appears to be flickering. I have attached an image below


    upload_2020-3-10_19-29-55.png

    and I have tried setting camera near clipping plane (eg-0.1 etc) but still, I am facing the same issue,
    this issue is observed in the sides as well
    please help me out resolving this issue.
     
    Last edited: Mar 10, 2020
  2. Baste

    Baste

    Joined:
    Jan 24, 2013
    Posts:
    6,204
    You're going to have to attach a gif of a video. To me, that looks like there's a gap in the road, not z-fighting.
     
    AxPetre, Joe-Censored and hippocoder like this.
  3. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,886
    This doesnt look like z-fighting, are you sure your geometry is water tight (as in there are no gaps? It looks like a gap).
     
  4. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,337
    Your example doesn't look like z-fighting. It looks like a hole in road's geometry.

    This is what zfighting might looks like:
     
  5. unity_t-Lu88L9HgE33g

    unity_t-Lu88L9HgE33g

    Joined:
    Sep 6, 2019
    Posts:
    3
  6. unity_t-Lu88L9HgE33g

    unity_t-Lu88L9HgE33g

    Joined:
    Sep 6, 2019
    Posts:
    3
    I am facing the similar issue in sides of the road chunk you can check in the video file
     
  7. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,804
    No you aren't. There is a gap between your road segments.
     
    Joe-Censored likes this.
  8. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,337
    No you aren't. There's a hole in the road at that point.
     
    Joe-Censored likes this.
  9. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,886
    No, there is a hole in the road. Pretty much everyone can see that really easily. Just move your chunks closer together.