Heightmap units
by Kevin Bluck · in Torque Game Engine · 06/28/2005 (9:18 am) · 2 replies
I'm new to Torque and trying to figure out the Heightmap code.
I notice that heightmaps are arrays of 16-bit integers, which are supposed to be 11.5 fixed point. In other words, a range of 0 to 2047-31/32.
My question is: 2048 with resolution to 1/32 whats? What is the elevation unit of measure?
Meters over terrain min elevation? Game/world units? 1/2048ths of the difference between terrain max and min elevation?
Thanks,
--- Kevin
I notice that heightmaps are arrays of 16-bit integers, which are supposed to be 11.5 fixed point. In other words, a range of 0 to 2047-31/32.
My question is: 2048 with resolution to 1/32 whats? What is the elevation unit of measure?
Meters over terrain min elevation? Game/world units? 1/2048ths of the difference between terrain max and min elevation?
Thanks,
--- Kevin
About the author
#2
In other words, if I call bool TerrainBlock::getHeight(const Point2F & pos, F32 * height), what unit of measure does pos express?
--- Kevin
06/28/2005 (11:23 am)
Thanks. Since it is a fixed unit (meters), this naturally leads to the next question: how is horizontal distance measured? Are game units also expressed in meters?In other words, if I call bool TerrainBlock::getHeight(const Point2F & pos, F32 * height), what unit of measure does pos express?
--- Kevin
Associate Kyle Carter