Game Development Community

.ter terrains - how to import ?

by Tomasz Golinski · in Torque 3D Professional · 11/24/2009 (2:18 pm) · 9 replies

It may be a newbie question ;)
I used GeoControl2 to make some nice terrains. I exported them to .bmp heightmaps and .ter terrains (also tried .png files). However when I imported heightmaps then i found out a strange steps which "crashed" all the look of the terrain. I asked on GC2 forums why is that and they recommended me to use .ter files.. i cant find where to import the .ter files :/ is it possible anyway ?

steps after importing heightmaps:
http://i995.photobucket.com/albums/a...g?t=1259002812

kind regards
Tomasz

#1
11/24/2009 (2:27 pm)
The heightmaps have to be square and a power of 2 size ie. 512x512, 1024x1024, 2048x2048
I have used PNG files and they worked great.
#2
11/24/2009 (2:40 pm)
.ter files are generated by the engine when creating either an empty terrain or importing a heightmap. As David mentioned make sure your heightmaps are square and a power of 2.
#3
11/24/2009 (3:17 pm)
thats a 2 samples i made few mins ago .. same problem (both made by GeoControl 2 ) one jpg and one png

http://i995.photobucket.com/albums/af79/battje/sd.jpg
http://i995.photobucket.com/albums/af79/battje/png.png
#4
11/24/2009 (4:09 pm)
Just make sure your terrain file is a power of 2 and direct your .mis file to the location of the terrain file.

If you are doing it in-game, make sure you terrain file is located in the same folder as your project or it might now load.
#5
11/24/2009 (4:46 pm)
I just imported your png file and it worked without a problem. so as Steve said make sure it is in your game directory.
#6
11/24/2009 (5:40 pm)
Hi Tomasz,

The steps you saw in your terrain are due to the 8-bit height precision of the BMP format. Use 16-bit PNG instead.

The TER files exported from GeoControl are 16-bit Terragen TER files, not Torque TER files. Terragen files cannot be loaded directly by T3D.

Best regards,
Aaron.
#7
11/25/2009 (6:25 pm)
yeah puting it to game folder helped ;)
#8
11/26/2009 (11:45 am)
Sounds like the same issue I had a while back.

IIRC, you need to export 16bit TIFF's from GC2 then convert them to some format readable by T3D (w/o dropping to 8bit, GIMP doesn't handle 16bit so be careful what tool you use).

I used Preview on OSX to do the conversion, not the best solution but it worked.

#9
12/14/2009 (12:41 pm)
When you say the files need to be in the game directory do you mean in the root directory or is it ok that they are in the art/terrain/sampleterrain/ subdirectory? I'm just trying the online documentation and the world editor is throwing the no texture map image on my terrain and everything looks red.