In this tutorial I go over how to create a bump map of a rendered image using the compositor. These maps are useful in a variety of situations; whether you want to do some texture work and need a specific bump map or whether you want to create a brush to use while sculpting.
For blender's documentation reference
here.