Depth of Field

Provides real-time depth of field from a color image and a depth image. This is most suitable for use with a camera override, to add a cinematic depth of field effect.

Inputs and Controls

Connection Type

Connection Name

Function

Input

srcColor

The color image to which the Depth of Field is added.

srcDepth

The depth image to which the Depth of Field is added.

Control (UI)

Knob (Scripting)

Default Value

Function

Type name

TypeName

Depth of Field

The node type.

Enabled Enabled ticked If unchecked, this node will be omitted from the compiled image processing graph. Any incoming connections will be forwarded to the first output port, if any.
Label Label N/A An optional label to display on the node.
Parameters

Reset parameters to default value using the reset icon:

Clip planes ClipPlanes 0.100, 1000.000 The near and far clip distances, in meters.
Sensor Dimensions SensorDims 36.000, 20.250 Size of the camera sensor, in millimeters.
F-Stop FStop 16.000 F-stop of the lens to use.
Focal length FocalLength 23.458 Focal length of the lens, in millimeters.
Focus distance FocusDistance 1.000 Distance between the lens and focal point, in meters.