Ambient Occlusion

Also known as: AO, Sky Visibility

Updated in the Dragontail Peak release: smoother, more accurate occlusion; VDM support.

Creates an ambient occlusion map for a terrain: a mask showing how much of the open sky each spot can see. Open peaks and ridges come out bright, while valleys, gullies, and crevices come out dark.

When to Use

  • Soft shading: Multiply the map over your texture to add soft skylight shading and contact shadows.
  • Sheltered-place masks: Place effects that collect in sheltered places, such as moss, dirt, or snow drifts, by feeding the map to a Colorizer, Layers, or Texture Weightmap device.
  • Cavity maps: Pick out only small crevices and gullies: show the advanced parameters and lower End to a few hundred meters.
  • PBR materials: Connect the map to the Ambient Occlusion input of a Material device; the Material Output device then exports it with the other texture channels.
  • Cliffs and overhangs: It works on heightfields and on vector displacement maps (VDMs), including their cliff faces and overhangs.

What ambient occlusion is

On an overcast day, light arrives from the whole sky rather than from the sun. A spot on an open plain or a mountaintop sees the entire sky and is fully lit; a spot at the bottom of a narrow canyon sees only a sliver of sky and is much darker. Ambient occlusion captures this “how enclosed is this spot” quality.

Nearby terrain darkens a spot more than distant terrain, and terrain beyond a set distance (the End setting) has no effect at all.

How to Use

Connect your finished terrain, a heightfield or a VDM, to the input. The output is a mask: white where the whole sky is visible, darker where the surrounding terrain blocks it.

  1. Preview the result and raise Quality until the map looks smooth.
  2. Adjust Exaggeration to strengthen or soften the darkening.
  3. Use the output as a mask: multiply it over your texture for soft shading, or feed it to a Colorizer, Layers, or Texture Weightmap device to place materials in sheltered areas.

Inputs

Port NameTypeRequiredDescription
Primary InputHeightfield or VDMRequiredThe terrain to compute ambient occlusion for

Outputs

Port NameTypeDescription
Primary OutputHeightfield (mask)The ambient occlusion map: 1 (white) where the whole sky is visible, darker where the surrounding terrain blocks it

Parameters

Quality

Default: 6 Range: 4 to 11

Higher values give a more accurate map; each step up roughly doubles the build time. Low values can leave faint streaks or angular shapes, most visible around sharp peaks and in narrow gullies. The default is a good balance while you work; try 8 or higher for final output.

Exaggeration

Default: 1 Range: 0 to 16 (logarithmic slider)

Exaggerates the vertical relief of the terrain for the occlusion calculation only; the terrain itself is not changed. Values above 1 make valleys and crevices darker and the effect stronger; values below 1 weaken it, and 0 removes it entirely. Accepts spatial input: connect a mask to vary the strength of the effect across the map.

Extinction (Advanced)

These set the range of distances at which terrain can shade a point, and so the scale of the features that cause occlusion. Between Start and End, terrain counts for less the farther away it is.

Start (Default: 1 m, Range: 1 m to 32,000 m, logarithmic slider) Terrain closer to a point than this is ignored. Raising it removes fine detail and produces a coarse occlusion map.

End (Default: 32,000 m, Range: 40 m to 32,000 m, logarithmic slider) Terrain farther from a point than this has no effect. With the default, distant mountains can shade a valley. Lower it so that only nearby, local features such as gullies and crevices matter; this gives a crisper “cavity” style map.

VDM Support

With a VDM input, occlusion is measured on the displaced surface itself. Cliff faces see only the half of the sky they face, the ground under an overhang is darkened by the rock above it, the underside of an overhang comes out dark, and its top is lit like open ground. The output mask lines up with the VDM, so it can be used wherever a mask of that VDM is expected. A VDM with no sideways displacement gives the same result as the equivalent heightfield.

Tips and Tricks

  • Combine it with Bake Lighting: ambient occlusion gives the soft skylight shading, while Bake Lighting adds direct sun and cast shadows.
  • Beyond the edges of the world, the terrain is treated as continuing at the height of the edge pixels.

Older Versions

Ambient Occlusion devices saved by Hurricane Ridge builds and by the earlier Dragontail Peak releases use the previous version. It only accepts heightfields and has a Use randomized sampling (Advanced) option, which trades directional streaks for noise and a slower build. Its results can look streaky or blotchy, especially at low Quality. Upgrading the device to the current version keeps your settings, removes Use randomized sampling, and gives a smoother, more accurate map, so expect the output to change somewhat.

Updated on December 3, 2026
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support