Bokeh Depth of Field
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 category | Cinema |
|---|---|
| Pipeline stage | Scene (scene-linear HDR, before the tonemapper) |
| Default position | 15 in its stage |
| Works in | Live views only (viewports, PIE, games, Movie Render Queue): needs scene depth or the level |
| C++ / Blueprint | FGradeLayer::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).
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Enabled | Effects.BokehDOF.Enabled | on/off | off | Turns the effect on. |
| Focus Distance | Effects.BokehDOF.FocusDistance | >= 0 cm (slider to 100000), keyable | 0 | Focus distance in cm (0 = autofocus on the screen centre). |
| Aperture | Effects.BokehDOF.Aperture | 0.7..32, keyable | 2 | Lens aperture (f-stop): lower = shallower focus. |
| Focal Length | Effects.BokehDOF.FocalLength | 8..600 | 50 | Focal length in mm (longer = shallower). |
| Max Blur | Effects.BokehDOF.MaxBlur | 1..64 | 24 | Largest blur radius in pixels (at 1080 lines). |
| Shape | EGradeBokehShape | Blades | Bokeh shape. | |
| Blade Count | Effects.BokehDOF.BladeCount | 3..12, integer | 7 | Number of aperture blades (polygon corners of the bokeh). |
| Blade Rotation | Effects.BokehDOF.BladeRotation | -180..180 | 0 | Rotation of the aperture polygon in degrees. |
| Highlight Boost | Effects.BokehDOF.HighlightBoost | 0..100 | 40 | Bright bokeh highlights pop (brightness boost of out-of-focus highlights), 0..100. |
| Cat Eye | Effects.BokehDOF.CatEye | 0..100 | 30 | Cat-eye bokeh towards the frame edges (optical vignetting), 0..100. |
| Fringing | Effects.BokehDOF.Fringing | 0..100 | 15 | Coloured fringes on bokeh edges, 0..100. |
| Show Focus | Effects.BokehDOF.ShowFocus | on/off | off | Debug: show the focus zones (green near / blue far / clear in focus). |
| Shape Texture | texture | none | Custom aperture image for Custom (texture) (white = open; e.g. a hexagon, a heart, a logo). | |
| Bokeh Squeeze | Effects.BokehDOF.BokehSqueeze | 1..2.5 | 1 | Anamorphic oval bokeh squeeze (1 = round; 1.33 / 1.5 / 2.0 like anamorphic lenses). |
Focus
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Focus Mode | EGradeFocusMode | Normal | Focus geometry: one plane, split diopter (two focus distances split by a line) or a tilted focal plane. | |
| Second Focus Distance | Effects.BokehDOF.SecondFocusDistance | >= 10 cm, keyable | 300 | Split diopter / tilted plane: second focus distance in cm (the other half / the far edge of the plane). |
| Split Position | Effects.BokehDOF.SplitPosition | 0..1 | 0.5 | Split diopter: position of the split line across the frame (0..1). |
| Split Angle | Effects.BokehDOF.SplitAngle | -180..180 | 0 | Split diopter: angle of the split line / tilted plane: direction of the tilt in degrees (0 = vertical line, left-right split). |
| Split Softness | Effects.BokehDOF.SplitSoftness | 0..100 | 30 | Split diopter: softness of the transition, 0..100. |
| Focus Actor | actor | Rack focus: focus follows this actor (its bounds centre); overrides Focus Distance when set. | ||
| Focus Smoothing | Effects.BokehDOF.FocusSmoothing | 0..5 | 0.4 | Rack focus: time to settle on a new focus distance in seconds (0 = instant; animate Focus Distance / Focus Actor in Sequencer). |
Enumerations
Bokeh Shape (EGradeBokehShape)
| Value | Meaning |
|---|---|
| Circle | - |
| Blades | Polygon aperture with BladeCount blades. |
| Anamorphic | Oval anamorphic bokeh. |
| Heart | - |
| Star | - |
| Custom (texture) | ShapeTexture (white = aperture). |
Focus Mode (EGradeFocusMode)
| Value | Meaning |
|---|---|
| Normal | - |
| Split Diopter | - |
| Tilted Focal Plane | - |
Generated from the GRADE C++ headers. Back to the reference index.