Skip to main content

Depth of Field

Overview

Depth of Field (DOF) is a very common term in the photography field. It refers to the measured distance range in front of and behind the captured subject at the camera lens or other imagers when a clear image can be obtained. Aperture, lens, and the distance from the focal plane to the subject are important factors affecting the Depth of Field.

The DOF effect in the game serves to add a blur effect to the unfocused image and meanwhile draw the attention to a certain part. It is kind of like the special effects in films, which appear more realistic. There is a bokeh sense in the near and far regions.

Before
After

Enabling Depth of Field

Enable the Depth of Field effect in the global effects. Click Window (Menu Bar) -> Default Effect in the Editor to open the Default Effect window, where DOF is the depth of field.

image-20221221110812701

PropertyDescription
VisibleWhether to enable the depth of field effect.
Focus RangeThe range that can be clearly imaged, unit (m).
Far Blur ScaleAdjust the blur of the far region.
Near Blur DistanceAdjust the blur distance of the near region, unit (m).
Near Blur ScaleAdjust the blur of the near region.

Focus Range

Focus Range, with its range from 0.0001 to 1500.0000 (m), refers to the front and rear distance range from the camera lens to the focus object. The distance area from the farthest point to the focus object is the far blurred area. The larger the Focus Range, the greater the Depth of Field.

Adjust the Focus Range to see the effect with the Far Blur Scale as 5 and Near Blur Distance and Near Blur Scale as 0 respectively.

Focus Range: 150
Focus Range: 500

Far Blur Scale

Far Blur Scale, with its range from 0.00 to 5.00, can be adjusted to control the blur of the far blurred area (focus range), and also affects the transition between the focus area and the far blurred area at the connection.

Adjust the Far Blur Scale to see the effect with the Focus Range as 250 and Near Blur Distance and Near Blur Scale as 0 respectively.

Far Blur Scale: 2
Far Blur Scale: 4

Near Blur Distance

Contrary to the area controlled by the Focus Range, Near Blur Distance, with its range from 0.00 to 1500.00 (m), is to blur the distance from the camera lens to the focus object (near blurred area).

Adjust the Near Blur Distance to see the effect with the Focus Range as 250, Far Blur Scale as 5 and Near Blur Scale as 2 respectively.

Near Blur Distance: 45
Near Blur Distance: 160

Near Blur Scale

Near Blur Scale, with its range from 0.00 to 5.00, can be adjusted to control the blur of the near blurred area, and also affects the transition between the focus area and the near blurred area at the connection.

Adjust the Near Blur Scale to see the effect with the Focus Range as 800, Far Blur Scale as 5 and Near Blur Distance as 100 respectively.

Near Blur Scale: 1
Near Blur Scale: 4