Faking the Shadows in the Creases
Ambient Occlusion (AO) is a clever and computationally efficient technique that adds a significant amount of realism and depth to a 3D rendered image. It is not a simulation of true shadows cast by a direct light source. Instead, it simulates how much a given point on a surface is exposed to the ambient light of the environment. Areas that are occluded, or blocked, by other nearby geometry receive less ambient light and are therefore rendered darker.
How It Works and Its Effect
The AO algorithm works by casting out rays from the surface of a model. If those rays are quickly blocked by another part of the model, that area is darkened. If the rays can travel far without being blocked, the area remains bright. This simple principle creates subtle, soft shadows in places like:
- The corners of a room
- The creases and folds of clothing
- The area where a piece of furniture meets the floor
- The crevices of a textured surface like brick or stone
This effect adds a sense of contact and grounding to objects, making them feel more like they are part of their environment. While not physically accurate in the same way that global illumination is, Ambient Occlusion is a highly effective ‘cheat’ that is widely used in both feature film rendering and real-time video game engines to add instant visual complexity and realism to a scene.