Game Development Community

Gtopo30 Dem Data

by sixb0nes · in Torque Game Engine Advanced · 07/01/2006 (9:06 pm) · 2 replies

Hello,

I have a GTOPO30 DEM archive of Europe (W020N90) and would like to convert it to a format readable by Atlas. The terrain itself appears to be 4800x6000, 16bit (57mb) in big-endian format.

I just picked up TSE and am excited to try and get this to render.

How should I get this DEM into a format readable by generateChunkFileFromRaw16? Is Terragen the tool I should use for this? Also, are there size limitations I should be concerned with? Does it need to be squared?

Thanks for your help!

#1
07/01/2006 (9:21 pm)
Eep!

Found a utility to convert to a format readable by Terragen named 3dem, so I've answered my first question. Haven't tried yet, but it sounds promising.

I guess the second part of my question still stands. What sort of restrictions do I have on sizing and such?

http://www2.cs.uh.edu/~somalley/DemTutorial/#GTOPO30

Quote:VIEWING AND SAVING IN 3DEM

* Select File>Load Terrain Model and check the 'GTOPO30 Tile' option.
* In the 'Coordinate Selection' dialog select the latitude and longitude you wish to center on or click on the approximate location on the map and click 'OK'.
* 3DEM may prompt you for the necessary file[s]. Select the file[s] to load and click 'Open'.
3DEM will load the GTOPO30 DEM centered on your specified coordinates.
* If you only want a portion of the DEM for use in Terragen move the define area box over the area you wish to use. Resize the box if necessary.
* Select File>Save Terragen Terrain>Selected Area.
* To save the entire DEM select File>Save Terragen Terrain>Entire Terrain.
#2
07/02/2006 (8:47 am)
Wow, confusion.

Exporting a .ter from Terragen resulted in a 2049x2049 heightmap. Attempting to load this in L3DT results in an error. What's up with that, why the extra unit in each direction?

So now, here is what I'm doing:

1) Load GTOPO30 DEM in 3dem, export as .TER,
2) Load .TER in Wilbur, resample as 2048x2048, export as .PNG,
3) Import .PNG into L3DT, then export as .RAW resampled at 2049x2049.

Does this sound right? I could also export the .RAW directly from Terragen, but since I can't work with textures on maps > 513x513 in the free version I wanted to handle it all in one package.