Hello,
We are working on a small project for our final year - a simple terrain generator written in java.
We wish to be able to export our terrain into the .ter format so that it can be rendered with terragen.
The problem is that we do not know in which range the elevation data is written. Our terrain generator generates height values between some min,max range which is scaled to [0,1]. How do I scale this [0,1] range to save the elevation data and how do I calculate the Baseheight and Heightscale ?
We tried using a hex editor to see how terragen writes these values but we could not establish anything really. Perhaps its a simple conversion but we can't figure it out somehow. Can anybody help with this ?