mesh2hmap is a simple command line tool for converting 3D meshes to raster heightmaps. This tool allows you to create terrains in your favourite 3D modeller and then easily convert to a heightmap.
Currently mesh2hmap reads only VRML meshes (1 and 2) and outputs a portable grey map (PGM) or portable pixel map (PPM). A PPM is output only when a colour gradient heightmap has been specified.