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

Depth of Field Ghosting Issue

Discussion in 'General Graphics' 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:

    upload_2020-2-3_7-49-22.jpeg

    upload_2020-2-3_7-49-42.jpeg

    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.

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

    Cascho01

    Joined:
    Mar 19, 2010
    Posts:
    1,347
    Looks like AmbientOcclusion posteffect.
    Maybe try another AO-Mode?
     
  3. ShockpointGames

    ShockpointGames

    Joined:
    Jul 19, 2018
    Posts:
    26
    No ambient occlusion is in use - URP post-processing doesn’t even have AO integrated.
     
  4. ShockpointGames

    ShockpointGames

    Joined:
    Jul 19, 2018
    Posts:
    26
    Something I’d like to add: this only occurs when I build to device (in my case iOS), and does not happen in the editor or play mode.
     
  5. pokruchin

    pokruchin

    Joined:
    Apr 24, 2019
    Posts:
    38
    Hello! Were you able to find a solution? Beacuse I'm experiencing the same problem on iOS build.