it's a bit of a minefield isn't it?
I don't have World creator or use 3ds max - so I'm just guessing here,
Quote***In UWC2, the 'Real Terrain Height' is set to 300, but doesn't get equally translated to the .obj export!? inside Max's Object Properties (X:2048 Y:2048 Z:248.773)!??
I would say the Real Terrain Height is a kind of end stop in WC2, and the
actual max height as defined by the fractal generator is actually 248.773
So this could be the yardstick by which you figure out the correct scaling for your heightmaps.
For example, if I'd generated a similar terrain in World Machine (x 2048 by Y 2048 with a height of 248.773) and I'd exported a .ter file then I'd expect the brightest pixel to be 248.773 (and it is)
If the raw map is normalized ( darkest pixel is 0 and the brightest pixel is 1), the conversion is simple, since you know the actual height is 248.773 then use that as a height multiplier in Terragen.
Things get a bit murkier with the raw files out of your WC2. In the file you posted the brightest pixel was 0.722329 ( not 1.00) so you would:
248.773 divided by 0.722329 = 344.4040042695226 (to be exact
)
This is what I had to do when I rendered a raw32 map out of World Machine. This
might be a similar situation in World Creator.
I used a tool in Nuke (curve tool) to figure out the brightest pixel in the raw file, if you don't have Nuke that might be tricker - I haven't seen any other program that does that.
If the file you posted is the file you're using, then 344.4040042695226 is the multiplier to use.
You would then use that value in Terragen.
Load the heightfield.
Insert a Heightfield resize - check
Re-size in meters and set the x y size of your terrain in meters - 2048*2048
Insert a Heightfield adjust vertical - check
Multiply height by - and enter 344.4040042695226
If you're using a different map - you'll have to figure out the brightest pixel manually - or if you're in a jam, send me the file and I'll give you the value.
This worked for me - but bear in mind I'm using a different program to generate the raw file, it might work for you.