Depth of field

IntermediateArtist

By default, rendering produces a very sharp image, which can look artificial. Depth of field effects simulate the behavior of a real camera lens focusing an object, leaving background and foreground objects out of focus.

media/realworld_dof_agave_flowers.jpg

To create the effect, Xenko creates several versions of the original image with different intensities of blur, and interpolates between them. The more layers used, the better the quality, but at performance cost.

Properties

media/depth-of-field-2.png

PropertyDescription
SizeSize of the bokeh (Wikipedia), expressed as a factor of the image width so it's resolution-independent. The bigger the size, the worse the performance
DOF AreasAreas of the depth of field. There are three main zones defined by their distance from the camera: near out-of-focus area (from X to Y), in-focus area (from Y to Z), and far out-of-focus area (from Z to W)
TechniqueThe technique affects both the performance and the shape of the bokeh.Circular Gaussian is fast but unrealistic.media/depth-of-field-3.pngHexagonal Triple Rhombi is heavier than Gaussian.media/depth-of-field-4.pngHexagonal McIntosh is the heaviest.media/depth-of-field-5.png
Auto FocusAutomatically updates the DOF areas so the camera focuses on the object at the center of the screen

See also