Some
tools like Blender can pre-calculate (aka, bake) an
ambient occlusion map and save it as a texture.
When
rendering, you can use the texture to reduce the brightness of fragments.
Baking
an AO map is efficient, but does not model the ambient occlusion resulting from
other nearby objects and does not change with movement.
An
example of this is in the Cookbook.