Hi!
In my terrain-editor, i need to export the mesh-terrain to a heightmap, but can someone help me how to do that? maybe a bit of code or something would be good.. :)
no.. A terrain created by CreateMesh(), AddVertex() etc., like a segmented plane.. And then save the vertex heights as a heightmap like u can with blitz-terrains using a source-code from the archives..
The diffrence between true terrains and mesh terrains is tre terrains use a regular grid, This makes it easy to convert the heights/vertices to pixels/brightnesses.
With a mesh terrain maybe you best simply perform a number of topdown linepicks, scanning the area using a raster.
If you have 3ds max, you can try this. Worked for me somewhat with some experimenting.
http://www.ogre3d.org/wiki/index.php/3dsmax_Heightmaps