Cavity
On this page
Brightens ridges and darkens creases from the surface normals (normal maps included) at a fine and a coarse scale, with ridge / valley colours (viewport cavity, edge wear, dirt in creases).
| Studio category | Scene |
|---|---|
| Pipeline stage | Scene (scene-linear HDR, before the tonemapper) |
| Default position | 2 in its stage |
| Works in | Live views only (viewports, PIE, games, Movie Render Queue): needs scene depth or the level |
| C++ / Blueprint | FGradeLayer::Effects.Cavity (FGradeCavity) |
Manual: Cavity. Every numeric parameter can be set at runtime with Set Layer Parameter using the path shown (see Animation).
Parameters
Cavity / curvature shading from depth (ridges brighter, valleys darker), like viewport cavity in DCC tools. Curvature from the GBuffer / Substrate detail normals (depth normals as fallback), fine + coarse scales in screen or world units, ridge / valley colours, blend modes, sharpness, luminance protection and debug views.
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Enabled | Effects.Cavity.Enabled | on/off | off | Turns this on or off (the other values are kept while it is off). |
| Ridge | Effects.Cavity.Ridge | 0..100 | 40 | Brightening of convex edges, 0..100. |
| Valley | Effects.Cavity.Valley | 0..100 | 50 | Darkening of concave creases, 0..100. |
| Radius | Effects.Cavity.Radius | 0.5..8 | 1.5 | Sampling radius in pixels (at 1080 lines). |
| Fade Distance | Effects.Cavity.FadeDistance | >= 0 cm (slider to 50000) | 5000 | Fades out beyond this distance (cm, 0 = never). |
| Show Only | Effects.Cavity.ShowOnly | on/off | off | |
| Normal Source | EGradeSurfaceNormals | Auto (GBuffer / Substrate) | Normals the curvature is measured on: Auto = GBuffer / Substrate detail normals (normal maps add fine cavity), Geometry = depth only. | |
| Sharpness | Effects.Cavity.Sharpness | 0..100 | 50 | Edge sharpness, 0..100: higher = only the strongest curvature shows, with a crisper transition (50 = the classic look). |
| Debug | EGradeCavityDebug | None | Debug view (Show cavity only = Cavity factor). | |
| Fade Start | Effects.Cavity.FadeStart | >= 0 cm (slider to 50000) | 0 | Distance where the fade out starts (cm); it ends at Fade Distance. 0 = automatic (70% of Fade Distance, the classic fade). |
Scale
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Radius Space | EGradeCavityRadius | Screen (pixels) | Screen: Radius and Coarse Radius in pixels; World: World Radius and Coarse World Radius in cm (the cavity shrinks with distance). | |
| World Radius | Effects.Cavity.WorldRadius | >= 0.1 cm (slider to 50) | 2 | Fine radius in cm (World radius space). |
| Coarse | Effects.Cavity.Coarse | 0..100 | 0 | Second, wider curvature scale (large shapes, panel seams, soft rounded forms), 0..100 (0 = fine scale only). |
| Coarse Radius | Effects.Cavity.CoarseRadius | 1..32 | 6 | Coarse radius in pixels at 1080 lines (Screen radius space). |
| Coarse World Radius | Effects.Cavity.CoarseWorldRadius | >= 0.5 cm (slider to 200) | 12 | Coarse radius in cm (World radius space). |
| Ridge Width | Effects.Cavity.RidgeWidth | 25..400 | 100 | Width of the ridge (convex) lines, % of the radii (100 = the radius as set). Different Ridge / Valley widths cost a second curvature pass. |
| Valley Width | Effects.Cavity.ValleyWidth | 25..400 | 100 | Width of the valley (concave crease) lines, % of the radii (100 = the radius as set). |
Look
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Blend Mode | EGradeCavityBlend | Multiply | How ridges and valleys change the colour (Multiply = the classic look). | |
| Ridge Color | Effects.Cavity.RidgeColor.R/G/B/A | colour | white | Colour of the ridges (Multiply: brightening tint; Exposure: tint; Overlay: painted colour). White = neutral. |
| Valley Color | Effects.Cavity.ValleyColor.R/G/B/A | colour | black | Colour of the valleys (Multiply: the colour creases darken towards; Exposure: tint; Overlay: painted colour). Black = neutral darkening. |
| Luminance Protection | Effects.Cavity.LuminanceProtection | 0..100 | 30 | Keeps bright pixels (lights, emissive, sky reflections) free of cavity, 0..100. |
Quality
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Silhouette Rejection | Effects.Cavity.SilhouetteRejection | 0..100 | 75 | Ignores neighbours across silhouettes and depth steps (an object in front of another one), 0..100: no halos or crosses where an edge passes in front of a surface; real creases and contact corners keep their cavity. 0 = off (every neighbour counts). |
| Quality | EGradeCavityQuality | Auto (Studio quality) | Sampling quality (Auto = the Studio quality setting). |
Enumerations
Surface Normals (EGradeSurfaceNormals)
Normals the Cavity and Bevel effects read.
| Value | Meaning |
|---|---|
| Auto (GBuffer / Substrate) | Detail normals of the GBuffer (the Substrate top layer with Substrate's Adaptive GBuffer): normal maps add fine detail. Falls back to the depth normals where they are unavailable or implausible. |
| Geometry (depth) | Geometry only: normals rebuilt from the scene depth (normal maps ignored, like a clay render). |
Cavity Radius (EGradeCavityRadius)
How the Cavity radii are measured.
| Value | Meaning |
|---|---|
| Screen (pixels) | Pixels at 1080 lines: the same line width at every distance (viewport cavity). |
| World (cm) | Centimetres in the world: the cavity shrinks with distance like a real surface feature. |
Cavity Blend (EGradeCavityBlend)
How ridges and valleys change the colour.
| Value | Meaning |
|---|---|
| Multiply | Multiplies the colour: ridges brighter, valleys darker, tinted by the ridge / valley colours (classic viewport cavity). |
| Exposure | Ridges and valleys in stops of exposure: soft, photographic, keeps saturation. |
| Overlay | Paints the ridge / valley colours over the image: edge wear and dirt in creases, also on dark surfaces. |
Cavity Debug (EGradeCavityDebug)
Cavity debug views.
| Value | Meaning |
|---|---|
| None | - |
| Cavity factor | The cavity factor on a light grey (same as Show cavity only). |
| Curvature | Signed curvature: ridges orange, valleys blue. |
| Normals | The normals the curvature is measured on (view space). |
Cavity Quality (EGradeCavityQuality)
Cavity sampling quality. Auto follows grade.Quality (the Studio quality setting). Cost at 1080p: Low ~0.10 ms, Medium ~0.13 ms, High ~0.20 ms, Epic ~0.26 ms (+ ~60% with Coarse, x2 when Ridge / Valley widths differ).
| Value | Meaning |
|---|---|
| Auto (Studio quality) | - |
| Low | Two sample axes, no midpoint check (fastest; a few halos can remain at tight silhouettes). |
| Medium | Two axes + the midpoint silhouette check. |
| High | Four axes (diagonals: rounder, smoother lines) + midpoint check. |
| Epic | High + a second ring at half the radius (softest falloff). |
Generated from the GRADE C++ headers. Back to the reference index.