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

URP Depth of Field Ghosting Issue

Discussion in 'Universal Render Pipeline' started by ShockpointGames, Feb 3, 2020.

  1. ShockpointGames

    ShockpointGames

    Joined:
    Jul 19, 2018
    Posts:
    26
    Using the depth of field in Unity 2019.3 with URPs post processing I am getting a very weird ghosting bug when looking at a certain object in a scene:





    I’m referring to the blurred outline in the above to images.

    What I’ve noticed is that when this specific object is in view of the camera, the DoF “freezes” in screen space (as seen above), and doesn’t adjust or correct itself until the specific object is out of camera view.

    Also, this issue only occurs on build, and doesn’t occur at all in the editor/play mode.

    This appears to occur with both Gaussian and Bokeh DoF types.
     
  2. phil_lira

    phil_lira

    Unity Technologies

    Joined:
    Dec 17, 2014
    Posts:
    584
    Thanks for reporting this. Could you submit a repro case for us?
     
  3. ShockpointGames

    ShockpointGames

    Joined:
    Jul 19, 2018
    Posts:
    26
    I think I've just located the root-cause of the issue. I discovered that the mesh that was causing the issue to occur had un-resolved normals in the modelling software I used (Blender). I.e., the normals were facing inwards into the geometry. Fixing the normal direction and re-importing into Unity seemed to fix the issue.

    Strange that it only occurs at build though.
     
    phil_lira likes this.
  4. DebugLogError

    DebugLogError

    Joined:
    Jul 24, 2013
    Posts:
    54
    @phil_lira I am experiencing a similar issue when I use Depth of Field in combination with the "First Person Objects" setup from the URP examples repo https://github.com/Unity-Technologies/UniversalRenderingExamples.

    I have submitted a bug report with the stripped down project (Case 1226000).

    It's easier to see in-motion. But even when not moving, you can see the outline of the fence (behind the cube) through the cube...

     
    Last edited: Mar 8, 2020
  5. DebugLogError

    DebugLogError

    Joined:
    Jul 24, 2013
    Posts:
    54
    @phil_lira It looks like disabling MSAA fixes this issue, but now I have no MSAA...