Creating terrain from elevation map file

snorr

05-03-2008 22:43:35

Okey, so I am just wondering if any one of you have any experience or suggestions when it comes to reconstruction of terrain from real-world elevation maps.
In my map files there is one height value every 50m, and the area of interest is normally ~5km.
Putting the height values straight in a height map and in to the terraininfo looked very weird, so perhaps some filter should be applied for better looking result. Or perhaps some kind of generated reconstruction, using a brush, from the original height values, eh. Any suggestions?

SongOfTheWeave

10-03-2008 21:38:47

Okey, so I am just wondering if any one of you have any experience or suggestions when it comes to reconstruction of terrain from real-world elevation maps.
In my map files there is one height value every 50m, and the area of interest is normally ~5km.
Putting the height values straight in a height map and in to the terraininfo looked very weird, so perhaps some filter should be applied for better looking result. Or perhaps some kind of generated reconstruction, using a brush, from the original height values, eh. Any suggestions?


I'm not positive that I understand what the problem you're running into is, but I'm going to hazard a guess that your elevation map has "real life" elevations in meters. However, the terrain info height sample value must be between 0.0 and 1.0 which represents a height between the lowest spot on the terrain and the highest where the range is defined by the call to TerrainManager::setExtents.

In conclusion, you'll need to compress your elevation map heights to span the range from 0.0 to 1.0 and set the Y extent of the terrain to the range of heights that your elevation map comprises.

snorr

10-03-2008 22:11:02

Ah yeah, I totally messed up my scales etc. I'll think first and ask later next time =)

Btw, another thing. Let's say I have two height values and would like to do some kind of interpolation between them (not linear). Do I my self have to create a heightmap with larger resolution and calculate the values in between "the real values", or is there a more simple way to do this?
Hope you understand what I mean, not sure I do myself :P

CABAListic

11-03-2008 06:56:17

You need to interpolate it yourself. ETM just operates on the values contained in TerrainInfo, it doesn't do anything with them.