Game Development Community

terrain file format

by Jared Hoberock · in Torque Game Engine · 01/29/2002 (3:56 pm) · 3 replies

Are there any sites out there which have documentation on the terrain (*.ter) file format? Specifically, I need to know how to take a greyscale image and write it out to the format used in the v12 engine.

thanks,
J

#1
01/30/2002 (11:51 am)
Note: this is Terragen's .ter format, not Torque's--
http://www.planetside.co.uk/terragen/dev/tgterrain.html
#2
01/30/2002 (12:56 pm)
The code that writes the terrain files to disk is pretty simple. :) It's so nice having source code!

FILE: engine/terrain/terrData.cc
LINE: 1154
FUNC: bool TerrainFile::save(const char *filename)

--Rick
#3
01/30/2002 (1:59 pm)
thanks much.

J