PDA

View Full Version : calculating the height from 3ds terrain meshes



Acid-Chris
01-04-2003, 09:23 AM
Hello!

Actually, this is more a math-topic but i posted it here because the 3ds file format has been discussed very often.

i am using a 3ds mesh for my tiled-terrain and to place objects in the map, i switch to ortho mode. objects are placed in the x/y axis and the height of this point has to be calculated.

so here is my question:
is it possible to calculate the height of this point without using a seperate heightmap image of this mesh?
if so, please give me a hint (or example), because this is driving me mad!

many thanks in advance,
- Christoph -

chxfryer
01-05-2003, 12:50 PM
use the z to represent the height

01-06-2003, 07:15 AM
Doesn't 3DS use the Y axis as front-to-back?

It's why vertices have their Z and Y axis values switched when decoding 3DS meshes.