The online racing simulator
terrain height at given coordinates (smx files?)
Hi
The smx files are documentated at https://www.lfs.net/programmer but it is bit outside my comfort zone. Bit confusing with the binary file, bytes and stuff, and the only way to really check if you did it correct would be to actually draw the map too...so very error prone.

Basically I am looking for a way to get the terrain-height at given coordinates. Something like:
int getTerrainHeight (int x, int y)
{
...something happens here...
return height;
}

Maybe someone has already done something similiar? (preferably c/c++)
thanks, ill see if that helps me Wink

FGED GREDG RDFGDR GSFDG