Skip to content

Camera Depth of Field

BleuRaven edited this page Jan 29, 2024 · 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 result in Blender with the blender property and result property in Unreal Engine.

[Blender]
Focus Distance: 0.16
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
Aperture: 0.2
[Blender]
Focus Distance: 16.0
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
Aperture: 0.2
[Blender]
Focus Distance: 0.16
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
Aperture: 0.2

Asset Exemple

Clone this wiki locally