Just found this interesting piece of code, it's a patch for the open source 3d modeller blender.

It basically converts a 3d scene to a relief that can be carved. See here

this is incredibly useful since most stock models are in 3d instead of "3d relief".