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. Dismiss Notice

Bug 2D Renderer PP DoF does not work

Discussion in '2D' started by Foriero, Jan 3, 2021.

  1. Foriero

    Foriero

    Joined:
    Jan 24, 2012
    Posts:
    579
    Hi, DoF ( Depth of Field ) does not work for sprites once we hook 2D renderer. It works but ignoring distance. Gaussian Blur is applied uniformly no matter how far our sprites are from the camera. Are you guys working on it? Thanks, Marek.
     
  2. Foriero

    Foriero

    Joined:
    Jan 24, 2012
    Posts:
    579
    There are two DoFs in 2D Renderer I can think of:

    1) Layer System - DoF params specified for each layer according to design needs - Gaussian Blur for each layer
    2) (Z) Depth System - works the same as in URP without 2D Renderer ( Gaussian, Bokeh )

    Do we need anything else?
     
  3. BinarySouls

    BinarySouls

    Joined:
    Jan 14, 2018
    Posts:
    13
    Same issue here, I would like to know if Unity plans to work on this.
     
  4. Antoniusaft

    Antoniusaft

    Joined:
    Feb 28, 2013
    Posts:
    10
    This problem has caused a massive headache on me and my team. Unity people please respond! Why isn't it optional to have a Z depth buffer on a 2D renderer?
     
  5. kennyy_

    kennyy_

    Unity Technologies

    Joined:
    Apr 7, 2021
    Posts:
    94
    Hi, we are aware Z Depth is currently unsupported in the 2D Renderer. We have plans to add and make it compatible with are other systems, such as Post Processing i.e. Depth of Field, as well as in Shadergraph.
     
    MikeGDev likes this.
  6. Antoniusaft

    Antoniusaft

    Joined:
    Feb 28, 2013
    Posts:
    10
    Any idea when we can expect Z Depth for the 2D Renderer? I hope it is not low priority...
    5 months later we are still struggling to find a good solution.
    Would adding a custom Z depth feature to the 2D renderer be a possible workaround?
    Any ideas or documentation on how that can be accomplished?
     
  7. Lahol

    Lahol

    Joined:
    May 23, 2022
    Posts:
    15
    Any progress ?
     
  8. eterlan

    eterlan

    Joined:
    Sep 29, 2018
    Posts:
    177
    Hi! Any news about that?