Flat TER

Started by helentr, May 18, 2007, 07:59:01 AM

Previous topic - Next topic

helentr

I was sent a TER file, which, when inserted in Terragen, is completely flat. This was used by my friend in Terragen 0.9, but I don't know how it was made. Its resolution is 2049X2049.
When imported in World Machine, it appears normal.
I tried some of my older terrains, from the smaller (129X129) to the largest and they all import into Terragen and appear normal. Some were made in Terragen 0.7-0.9, others with World Machine or 3DEM.
The only difference I can see between the problematic one and the others is in file size. The first is 8,396,872 bytes and the others are 8,396,854 or 8,396,856 bytes.

If I load this terrain into World Machine and re-save, its size drops to 8,396,854 bytes and becomes visible in Terragen, but the scale information is lost and replaced with the default WM one of 7.68 km

I don't know if it is a bug in the TER file, or one of the Terragen versions, but I would like to open the file with its original scale, since it is based on real data (contours).

Any ideas, since I have uninstalled Terragen 0.9?

Helen

Oshyan

It sounds like it may be an incorrectly formatted .ter. I'm not sure if the TG2 .ter loader is more strict about the format than TG 0.9, but it does seem odd that 0.9, World Machine, etc. work. Perhaps you can compress and forward the file to me oshyan@planetside.co.uk

- Oshyan

helentr

Compressed and sent (or at least on its way). Thank you Oshyan.

Helen

Oshyan

I looked at the terrain in TG 0.943 and it doesn't seem to work right there either. The height range is a very odd -444661m to 444647m. I don't know if your friend used this on a previous version of TG or did something to the terrain before using it or it just got corrupted or what, but it definitely doesn't work off the bat in any version of TG I have to hand. It can be modified to work by scaling either in TG2 or TG 0.9 though. The reason why WM probably works is that it scales all imported terrain into its 0-1 value range. In any case since you don't have TG 0.9 anymore I'd suggest loading this in WM and re-saving, unless you don't have a registered WM in which case perhaps rescale in TG2 and try to re-save (right click the heightfield load node and save file as).

- Oshyan

helentr

Thank you Oshyan,

He thinks he used ArcGIS->Terraconv - not sure about the second.
He gave me the size data, so I was able to resave it in World Machine with the correct scale.

Helen