DocsGRADEReference

Bokeh Depth of Field

2 min read

On this page

Cinematic depth of field with shaped or oval anamorphic bokeh, cat-eye and fringing; split diopter, tilted focal plane and rack focus that follows an actor.

Studio categoryCinema
Pipeline stageScene (scene-linear HDR, before the tonemapper)
Default position15 in its stage
Works inLive views only (viewports, PIE, games, Movie Render Queue): needs scene depth or the level
C++ / BlueprintFGradeLayer::Effects.BokehDOF (FGradeBokehDOF)

Manual: Bokeh Depth of Field. Every numeric parameter can be set at runtime with Set Layer Parameter using the path shown (see Animation).

Parameters

Cinematic depth of field with shaped bokeh, cat-eye vignetting and chromatic fringing (scene effect).

ParameterBlueprint pathValuesDefaultDescription
EnabledEffects.BokehDOF.Enabledon/offoffTurns the effect on.
Focus DistanceEffects.BokehDOF.FocusDistance>= 0 cm (slider to 100000), keyable0Focus distance in cm (0 = autofocus on the screen centre).
ApertureEffects.BokehDOF.Aperture0.7..32, keyable2Lens aperture (f-stop): lower = shallower focus.
Focal LengthEffects.BokehDOF.FocalLength8..60050Focal length in mm (longer = shallower).
Max BlurEffects.BokehDOF.MaxBlur1..6424Largest blur radius in pixels (at 1080 lines).
ShapeEGradeBokehShapeBladesBokeh shape.
Blade CountEffects.BokehDOF.BladeCount3..12, integer7Number of aperture blades (polygon corners of the bokeh).
Blade RotationEffects.BokehDOF.BladeRotation-180..1800Rotation of the aperture polygon in degrees.
Highlight BoostEffects.BokehDOF.HighlightBoost0..10040Bright bokeh highlights pop (brightness boost of out-of-focus highlights), 0..100.
Cat EyeEffects.BokehDOF.CatEye0..10030Cat-eye bokeh towards the frame edges (optical vignetting), 0..100.
FringingEffects.BokehDOF.Fringing0..10015Coloured fringes on bokeh edges, 0..100.
Show FocusEffects.BokehDOF.ShowFocuson/offoffDebug: show the focus zones (green near / blue far / clear in focus).
Shape TexturetexturenoneCustom aperture image for Custom (texture) (white = open; e.g. a hexagon, a heart, a logo).
Bokeh SqueezeEffects.BokehDOF.BokehSqueeze1..2.51Anamorphic oval bokeh squeeze (1 = round; 1.33 / 1.5 / 2.0 like anamorphic lenses).

Focus

ParameterBlueprint pathValuesDefaultDescription
Focus ModeEGradeFocusModeNormalFocus geometry: one plane, split diopter (two focus distances split by a line) or a tilted focal plane.
Second Focus DistanceEffects.BokehDOF.SecondFocusDistance>= 10 cm, keyable300Split diopter / tilted plane: second focus distance in cm (the other half / the far edge of the plane).
Split PositionEffects.BokehDOF.SplitPosition0..10.5Split diopter: position of the split line across the frame (0..1).
Split AngleEffects.BokehDOF.SplitAngle-180..1800Split diopter: angle of the split line / tilted plane: direction of the tilt in degrees (0 = vertical line, left-right split).
Split SoftnessEffects.BokehDOF.SplitSoftness0..10030Split diopter: softness of the transition, 0..100.
Focus ActoractorRack focus: focus follows this actor (its bounds centre); overrides Focus Distance when set.
Focus SmoothingEffects.BokehDOF.FocusSmoothing0..50.4Rack focus: time to settle on a new focus distance in seconds (0 = instant; animate Focus Distance / Focus Actor in Sequencer).

Enumerations

Bokeh Shape (EGradeBokehShape)

ValueMeaning
Circle-
BladesPolygon aperture with BladeCount blades.
AnamorphicOval anamorphic bokeh.
Heart-
Star-
Custom (texture)ShapeTexture (white = aperture).

Focus Mode (EGradeFocusMode)

ValueMeaning
Normal-
Split Diopter-
Tilted Focal Plane-

Generated from the GRADE C++ headers. Back to the reference index.