Search Unity

Depth of field disappearing on vcam transitions

Discussion in 'Cinemachine' started by dmennenoh, Aug 3, 2019.

  1. dmennenoh

    dmennenoh

    Joined:
    Jul 1, 2015
    Posts:
    379
    I have a few virtual cameras with Cinemachine Post Processing components attached - for depth of field. When I blend between two cameras the DOF seems to disappear.
     
  2. dmennenoh

    dmennenoh

    Joined:
    Jul 1, 2015
    Posts:
    379
    Problem seems to be using different profiles on different cameras. If I use the same profile the DOF is preserved when blending between two cameras. But if one camera has a different profile the DOF crossfades during the transition and gets to zero in the middle.
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,730
    Yes, the math for blending DoF is such that it must first blend form profile A to the default, then from there to profile B. So you need to set a suitable DoF in a default profile that you attach to a global volume.
     
    dmennenoh likes this.
  4. dmennenoh

    dmennenoh

    Joined:
    Jul 1, 2015
    Posts:
    379
    >>So you need to set a suitable DoF in a default profile that you attach to a global volume.

    Ahhhhh! Thank you! That's just what I needed.
     
    Gregoryl likes this.