Sub topic 3
What an Ambient Occlusion Map Stores
Assume you know basic Blender navigation, materials, UV unwrapping, and the difference between a high-poly and low-poly mesh. This chapter focuses on what an ambient occlusion (AO) map contains and how to use it correctly.
Ambient occlusion as stored data
Ambient occlusion estimates how much a surface point is blocked from its surrounding environment. A point in an open area receives little occlusion. A point inside a crevice or where two surfaces meet receives more occlusion.
An AO map stores this estimate as grayscale texture data:
| Pixel value | Meaning |
|---|---|
| White | Little or no occlusion |
| Gray | Partial occlusion |
| Black | Strong occlusion |
The map does not store a complete shadow. It does not know the position of a lamp, the direction of the sun, or the color of the surrounding world. It stores a geometry-based measure of nearby blockage.
When Blender bakes AO, it casts rays around each target surface point. The result is written into the low-poly mesh's UV layout. If the high-poly mesh contains deep grooves, tight contacts, or layered parts, those features can produce darker areas in the baked map.
AO is not baked lighting
Use AO to describe contact and cavity darkening, not to replace direct lighting. If you bake a lamp's shadows into the texture, the asset can look incorrect when the lamp moves.
In a material, AO is commonly multiplied with the base color or connected to the renderer's ambient occlusion input. This adds visual separation between nearby surfaces. However, excessive AO makes the asset look dirty and can darken areas that should remain well lit.
A small ray distance produces tight contact shadows. A larger distance spreads the effect into broad cavities. The correct value depends on the asset's scale and the amount of detail you want to emphasize.
Common baking errors
- Everything is nearly white: The ray distance may be too small, or the meshes may not contain nearby surfaces.
- Everything is dark: The distance may be too large, the meshes may intersect, or the bake may include unintended geometry.
- Dark halos appear around UV islands: Increase the bake margin and inspect the UV padding.
- The map looks noisy: Increase Cycles samples or reduce tiny, unwanted geometry.
- The low-poly result lacks high-poly cavities: Check that the source and target objects are selected correctly and that the projection reaches the source surface.
AO should support the normal map. The normal map supplies small surface direction changes, while AO supplies broad contact and cavity shading.
Exercise
Why should an AO map not be treated as a fixed shadow from a specific lamp?
Show answer
AO stores geometry-based blockage of surrounding rays. It does not store a lamp's position or direction, so it can be reused under changing lights.