Part
Ambient occlusion
You might say: AO, contact darkening, cavity
Ambient occlusion darkens a point when nearby geometry blocks broad ambient light. It is a scale-dependent cue for creases, contacts and small cavities.
- What it does
- Adds local grounding where a wall meets ground, foliage meets soil or a prop meets a surface.
- Ask
- Is this darkening a real occluded crevice at the chosen scale, or an effect painted over the scene?
- Typical
- Keep AO subtle, on top of the main lighting. Set its radius to the scale of the creases and contacts it should darken.
- Trouble
- Dark halos appear around objects when screen-space AO, which knows only the depth buffer, treats a thin object as a thick occluder or its thickness or distance setting is too high. Strong AO darkens the whole scene instead of its creases.
What to look for
- Dark creases where walls meet the ground
- A soft contact patch beneath a prop
- A dark halo around an object reveals screen-space AO that overestimates occluder thickness
- Dirt stains and AO can be compared in a material debug view
Catalogue: AO method
- Baked AO: A cavity term supplies shadowing from geometry smaller than the run-time shadowing system can handle.
- Screen-space AO (SSAO): A frame-local estimate from screen depth and normals. It reacts to nearby visible geometry and can disappear when the geometry leaves the screen.
- Horizon/ground-truth AO (HBAO or GTAO): A screen-space ambient-occlusion estimate from depth-buffer samples: HBAO approximates the AO integral, while GTAO's formulation is designed to match a ground-truth reference.
- Contact shadows: A per-light screen-space depth-buffer ray march toward the light source; its length controls how far the contact-shadow trace reaches.
Pattern
Accumulation at edges and corners
Connections
Sources
- Unity Technologies, Screen space ambient occlusion in URP, Introduction to screen space ambient occlusion in URP
In the real world, such areas tend to block out or occlude ambient light, so they appear darker.
- Brian Karis, Real Shading in Unreal Engine 4, Material Model, p. 9
Cavity is used to specify shadowing from geometry smaller than our run-time shadowing system can handle
- Epic Games, Ambient Occlusion (Unreal Engine 4.27 Documentation), Ambient Occlusion
This is generally best used as a subtle effect, in addition to standard global illumination, that darkens corners, crevices, or other features to create a more natural, realistic look.
- Epic Games, Ambient Occlusion (Unreal Engine 4.27 Documentation), Ambient Occlusion: Distance
A tweak parameter that is needed to avoid dark halos around objects. As the SSAO technique only has the zbuffer, it cannot know about the thickness of objects.
- Unity Technologies, Ambient Occlusion (Post Processing 3.4), Multi-scale Volumetric Occlusion: Properties
Modify the thickness of occluders. This increases dark areas but can introduce dark halos around objects.
- Unity Technologies, Ambient Occlusion (Post Processing 3.4), Scalable Ambient Obscurance: Properties
Set the radius of sample points, which controls the extent of darkened areas.
Use it on your project
teardown-apply: hold "Ambient occlusion" (ambient-occlusion) from the teardown at https://teardownatlas.com/environment-art/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal