This documentation is for a prerelease version of O3DE. Click here to switch to the latest release, or select a version from the dropdown.

Version:

Adding a Depth of Field Node

You can use the Depth of Field (DOF) node to add realism to scenes to simulate the way a real-world camera works. You can use a broad depth of field to focus on the entire scene, or use a shallow depth of field to have sharp focus only on objects that are a specific distance from the camera.

To add a Depth of Field node in the Track View

  1. In the Track View, right-click the sequence (top node) or the Director node in the tree as applicable, and then choose Add Depth of Field Node.

  2. For each of the keys listed below, click the applicable key listed under the DepthOfField node.

  3. Double-click to position the key on its highlighted row in the timeline.

  4. Double-click the green marker, and under Key Properties, enter a value for Value.

Depth Of Field Node Key Properties

PropertyDescription
EnableEnables or disables depth of field effect.
FocusDistanceDistance the focus is from the camera. Positive values are in front of the camera while negative values are behind the camera.
FocusRangeDistance toward and away from the camera until maximum blurriness is reached. By default, this value is twice the FocusDistance value.
BlurAmountMaximum blurriness value.