Depth of Field

Depth of Field is currently only available for the Pragma renderer.

dof_example.png

To add a depth of field effect to your camera, expand the camera actor in the actor editor, right click "Components" and add the optical_camera component:

dof_optical_component.png

Now select the "optical_component" from the component list, and you will see a number of DoF options appearing on the right:

dof_settings.png

Make sure to switch from the work camera to the scene camera if you want to make changes to the DoF settings, otherwise you will not see what changes. Additionally, whenever you make changes to the DoF settings, you should enable the "showDebugFocus" option. This will enable a helper overlay, which will make it easier to define the DoF area:

dof_debug_overlay.png

The blue area represents the focal range and the yellow line the focus point. These can be adjusted with the "focalDistance", "focalLength" and "fstop" properties. Make sure to disable this option when you're done.

Here's a list of some of the available properties:


Revision #3
Created 16 July 2022 13:47:55 by Silverlan
Updated 27 August 2022 14:26:40 by Silverlan