Skip to content

Camera Depth of Field

BleuRaven edited this page Jan 12, 2025 · 8 revisions

Unit Scale issue

For export to Unreal Engine it is recommended to set scene Unit Scale at 0.01 and therefore to scale your objects and environments.
In the case of cameras it will also be necessary to scale the Depth of Field variables as Focal Length and F-Stop.
In addon preferance you can choose to rescale DOF vars at the export with unit scale.

image

(I recommend you to keep on True)

DOF Test

Here the results, first in Unreal Engine:

[Unreal Engine]
Focus Distance: 1600 (1600cm)
Aperture: 0.2

0000

DOF in blender before export. Good but do not use unit scale at 0.01

[Blender]
Focus Distance: 16.0 (16 m)
F-Stop: 0.2
----------------
Unit Scale: 1.0
Scene Scale: 1.0
Scale F-Stop and Focus Distance with Unit Scale: On

[Unreal Engine]
Focus Distance: 1600 (1600cm)
Aperture: 0.2

0001

Unit scale at 0.01 and bigger values but keep the same result in Blender and Unreal Enngine. <-- RECOMMENDED

[Blender]
Focus Distance: 1600.0 (16m)
F-Stop: 0.002
----------------
Unit Scale: 0.01
Scene Scale: 100.0
Scale F-Stop and Focus Distance with Unit Scale: ON

[Unreal Engine]
Focus Distance: 1600 (1600cm)
Aperture: 0.2

0002

Unit scale at 0.01 and keep default values but wrong result in Blender before import.

[Blender]
Focus Distance: 16.0 (0.16m)
F-Stop: 0.2
----------------
Unit Scale: 0.01
Scene Scale: 100.0
Scale F-Stop and Focus Distance with Unit Scale: OFF

[Unreal Engine]
Focus Distance: 1600 (1600cm)
Aperture: 0.2

0003

Asset Exemple

Clone this wiki locally