You do it on an all-white map with no lighting, so the model is just completely black. Then, you just use that as an alpha mask in an image editing tool.