Baking a Cavity Texture

Check these articles: