calculating the height from 3ds terrain meshes

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 -

use the z to represent the height

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.