H 255 / 3212000s

Ambient Occlusion

Ambient occlusion / AO. 2000s: widespread in rendering and subsequently real-time graphics.

Typeface · IBM Plex Mono

AO/Accessibility Shading, GPU Gems, Fig. 17–3.
AO/Accessibility Shading, GPU Gems, Fig. 17–3.Pharr / Green, GPU Gems / NVIDIA; official technical demonstration.View source ↗

Prompt

Apply an ambient occlusion effect with soft, localized darkening in creases, recesses, narrow gaps, and points where surfaces touch. Build subtle neutral-toned contact shadows that fade smoothly outward, strengthening volume and grounding objects without black outlines, altered materials, or new directional lighting. Keep the original subject and composition.

Identify

Corners, gaps and contact zones receive a soft, dark densification.

Principle

Fewer free surrounding directions mean less ambient lighting1.

Example

GPU Gems: Ambient Occlusion Comparison.

Try it out

Compare two touching objects with and without AO2.

Background

In 2004, GPU Gems documented ambient occlusion as a practical complement to material and lighting models. For each surface point, it estimates what proportion of its surroundings is obscured by geometry. This makes shape relationships and contacts more legible, even under simple lighting conditions. Later real-time versions calculate approximations from screen data or geometry. The 2000s mark this documented phase of widespread adoption, not an exclusive point of invention.

Distinction

AO is a visibility approximation for ambient light, not a complete global illumination. Excessive intensity produces dirty edges and dark halos.

Aftermath

A subtle contact shadow can explain spatial relationships more clearly than more texture.

Further examples · 9 images

Ambient Occlusion
02 Ambient OcclusionA curved white object sits on a blue surface. The dark shading where the object meets the floor demonstrates contact occlusion.Philip Rideout · CC BY-SA 3.0 · Wikimedia Commons
Screen space ambient occlusion
03 Screen space ambient occlusionA gray 3D scene features a character, a tank, and mountains. Darkened crevices in the face and terrain highlight geometry proximity.Vlad3D at English Wikipedia · Public domain · Wikimedia Commons
Church Ambient Occlusion
04 Church Ambient OcclusionA brick wall section displays recessed window arches and corners. Soft shadows in the indentations increase the legibility of the architectural depth.Daniel Andersson · CC0 · Wikimedia Commons
Show how 3D real time ambient occlusion works 2013-11-23 10-45
05 Show how 3D real time ambient occlusion works 2013-11-23 10-45Three panels compare a geometric model with and without shading. The middle layer isolates the dark edges used to define contact zones.User:Snakkino · CC BY-SA 3.0 · Wikimedia Commons
Ambient occlusion
06 Ambient occlusionA grid of white cubes features vertical pillars on a bright plane. Darker tones at the base of each cube show localized light obstruction.The original uploader was TheWusa at German Wikipedia. · CC BY-SA 3.0 · Wikimedia Commons
Tiles137D 8K-PNG AmbientOcclusion
07 Tiles137D 8K-PNG AmbientOcclusionThis texture map displays faint, irregular tile outlines on a white background. It represents a baked data map for simulated surface depth.ambientCG / Lennart Demes · CC0 · Wikimedia Commons
Tiles134B 8K-PNG AmbientOcclusion
08 Tiles134B 8K-PNG AmbientOcclusionA clean grid pattern is shown with light gray lines. The darkening at intersection points simulates light trapping in a structured tile layout.ambientCG / Lennart Demes · CC0 · Wikimedia Commons
Tiles136D 8K-PNG AmbientOcclusion
09 Tiles136D 8K-PNG AmbientOcclusionA map of square tiles shows thin, dark outlines around each unit. These soft edges define the separation of individual surfaces in a 3D material.ambientCG / Lennart Demes · CC0 · Wikimedia Commons

Question

Why is AO not a substitute for a directional lamp?

Show possible answer +

It describes the obscuring of the surroundings. A lamp, on the other hand, defines a specific direction of light with its own visibility and shadow.

Sources