[MOVED]Heightmap pixel = ?

Lshink

26-06-2006 22:20:39

Hello,

I'm bascially trying to use 3DSMax as sort of a level editor to load my heightmap and just place static meshes at the moment, export them to dot scene and then load them from the xml into Ogre.

The problem I'm having is I'm not sure what the formula is to convert the heightmap pixels into PLSM2's equivalent coordinates. At the moment, by heightmap is translated wrong in 3DSMax, and it needs to line up so my mesh coordinates are correct :)

Any help with this would be greatly appreciated. My math is a little poor, so a detailed explaination of the algorithm would also be great :)

Also, sorry if this is in the wrong form but I'm guessing that Ogre's regular coordinates and PLSM2's are gonna be different to calculate, but if its the same then my appologies.

Thanks in advance!

Falagard

27-06-2006 01:31:04

http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=1481

Lshink

27-06-2006 05:12:35

Awesome, I'll definatly try what he said and see if it works correctly. Thanks for the link and fast responce! :)