Download

Using multiple DOF Passess in a frame

Hey all, I have a use case which requires me to render a DOF pass for the background/skysphere, and then use the CineCameraActor circleDOF method to focus on actors in an animation.

Is this at all possible? I am using a global PP volume with a gaussianDOF effect enabled, but then when I switch the view to the CineCameraActor the DOF effect disappears, as the CircleDOF method replaces it. However other postprocess effects are additive, such as enabling grain/vingette in the CineCameraActor and the global PP volume.

An alternative method I have tried is using a gaussian blur PP material which is masked using scenedepth, however this material is extremely expensive to get the same effect as the gaussian DOF filter.