Method

This node renders a depth of field blur effect on the 3D scene based on the distance of each pixel from the camera. This attempts to simulate the behaviour of the focus effects of a real camera lens, whereby there is a point of focus and then areas in front and behind this point are out of focus.

The depth of field effect is controlled by parameters in the Camera node. Focal Plane Distance controls the distance of the in-focus plane from the camera. Focal Range controls the size of the in-focus area in depth. Focal Bluriness scales the bluriness of the result.

This node does not work when connected to video processing nodes – it only works on the full 3D scene.

This is an image taken from the sample file “Rocks_displacement-3”
Example Nodegraph

Attributes

Name Description
Blend Amount Changes the opacity of the new effect over the original image.
Max Blur Size The size of the blur.
Sampling Quality Number of samples taken to generate the depth of field.
Sample Shape Select a shape used to draw the depth of field from.
Sample Shape Rotation Change the rotation of the sample shape.
Sample Shape Image Select an image to be used as the sample shape. It should be noted that high resolution textures can cause significant drops in efficiency for complex scenes.
Apply To Opaque Objects Only Toggle whether the effect only applies to opaque objects.

Inputs

Name Description Typical Node Input
Active Turn the effect on or off. Values < 0.1 will turn the effect off, and deferred rendering must be on. Envelope Modifier

Outputs

There are no outputs from this node.