Heightmap from file: Setting overall size/scale?

Started by sylink, March 02, 2011, 05:56:00 PM

Previous topic - Next topic

sylink

Hi, I am trying to use real world terrain data to create a scene and I can import from file but it seems the scale is off wildly.

I know you can adjust vertical scale, but can you set the horizontal scale of the import to match the real world area it represents?

I am working on a mountainous area and my mountains end up being a few hundred meters wide rather than thousands and so on.

dandelO

You have the 'heightfield resize' operator that you can use in conjunction with the 'adjust vertical' operator. If you know the size you need your file, I'd imagine you could translate the appropriate numbers to that.

There's probably a completely precise method of doing it with the geo-referencing capabilities available in the heightfield shader(I don't know), that's a feature I've never used at all before and I'll leave that up to someone with an understanding to add here. I have noticed that the 'rescale vertical' parameter doesn't seem to work in the heightfield resize node so you apparently must use it with the adjust vertical node to get a correct measurement.
I only occasionally use heightfield terrains so this might all be nonsense that is easier done another way but you can certainly rescale your heightfield manually this way...

sylink

I got importing going better, is there a simple way to interpolate height maps so they don't show infinite terraces? I used the smooth operator but it does not seem to have a perfect effect.

EDIT: Furthermore, it seems that the operator effects do not remain after saving so you have to re-create them every time?

Oshyan

Heightmaps should be interpolated by default. Have you examined the height data (the *exact* data you're using in TG, not the source data) in another app? Something in your export/conversion process may be introducing the "terraces" (a conversion to 8 bit is a likely issue).

As for terrain operators, they only need to be applied each time if you don't save the changes to the terrain file as a new TER. You can do this by right-clicking your Heightfield Generate after changes are applied and choosing Save As. Then enter a file name with .ter. Then replace the entire heightfield chain with a single Heightfield Load which loads your newly exported terrain.

- Oshyan