Game Development Community

.ter File Format

by Robert Luke · in General Discussion · 12/09/2009 (2:01 pm) · 1 replies

Anybody know the torque .ter file format. It looks like

8 bytes at the header
Sixteen bit heightmap info
Eight bit material info
Variable length material warning (Text)

The strange thing is that the header information is always the same, regardless of the terrain size. So, the format doesn't appear to contain the file size.

#1
12/09/2009 (2:11 pm)
The code to read/write them is part of Torque3D - maybe you could save yourself some trouble and use that? :)

It embeds a PNG if I recall, and everything else has size specified.