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

Texture flickers on VR-LDRenderPipeline in Unity 2019.1.

Discussion in 'AR/VR (XR) Discussion' started by nirml, Nov 12, 2019.

  1. nirml

    nirml

    Joined:
    Nov 4, 2016
    Posts:
    6
    Hello guys, Currently I'm working on night time level for Oculus Rift S in Unity 2019.1 using VR-LDRenderPipeline. When I move camera my road textures seems to be flickering both in game mode and editor window, Especially those white markings on road. It's a single mesh so it's not a Z-fighting. Where am I going wrong? What can I do to avoid it? It looks really bad in VR. Thanks in advance

    Here is a video clip from my game,
     
  2. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    777
    My guess is you have the z-fighting built in the mesh. For example a plane with some text above it.

    Do you get the same effect if you remove the mesh, and put an black image with white text as a Sprite in the same angle in your scene?
     
    Last edited: Nov 12, 2019
  3. nirml

    nirml

    Joined:
    Nov 4, 2016
    Posts:
    6
    @arfish but that text isn't a mesh, it's from texture. And I tried using Sprite on road, but it looks worse than texture one.

    Sample Video:
     
  4. arfish

    arfish

    Joined:
    Jan 28, 2017
    Posts:
    777
    It still looks like you have put the text too close above the road mesh. None of the other white markers flickers.
     
  5. nirml

    nirml

    Joined:
    Nov 4, 2016
    Posts:
    6
    @arfish Please take a look at those marked areas in that video. Those are the main areas I'm having problem with. Player camera will be from a car driver view, so I cant place the sprite too high from road, (I tried it with placing little high, it still flickers)
     

    Attached Files: