Terrain Dimensions and Formats
Terrain Dimensions and Texture Formats
For each surface, a texture of the necessary size can be reassigned, introducing more or less resolution on demand.
Never forget to compress all terrain textures!
Here is the example of terrain configuration. All sizes are specified for compressed textures.
Terrain Size | The Number of Surfaces |
Maximum Size of Terrain Texture* |
Height Map | Normal Map (ATI2) |
Diffuse Texture (DXT1 / DXT5) |
Mask Texture (DXT1 or ATI1 / DXT5 or ATI2) |
Total Size |
---|---|---|---|---|---|---|---|
16384 × 16384 | 64 × 64 | 262144 × 262144 | 512 MB | 256 MB | 128 MB / 256 MB | 128 MB / 256 MB | 1024 - 1280 MB |
8192 × 8192 | 32 × 32 | 131072 × 131072 | 128 MB | 64 MB | 32 MB / 64 MB | 32 MB / 64 MB | 256 - 320 MB |
* The maximum total size of any terrain texture implies that each surface is assigned a texture of maximum 4096 × 4096 size.
Terrain File Structure
Terrain data is stored in the following files:
- .ter file stores the meta information about terrain object, such as bounding box of terrain, bounding boxes of surfaces and whether they are enabled or disabled. It also stores vertices of a coarse level (LOD 8).
- .ter0000 (and files with names of incremented hexadecimal value) store information about heights in terrain surfaces (up to 8×8 maximum), LOD 1 and LOD 4, as well as information about holes.
- _d.dds is a coarse diffuse texture.
- _n.dds is a coarse normal map.
- Per-surface diffuse, normal map and mask textures (00x00_x.dds with a postfix) are stored in a separate folder that is named after the terrain file.
It is recommended that terrain files are not archived, as accessing them in real-time will result in slowing down both rendering (textures and height maps streaming lags) and physics calculations.
Last update: 2017-07-03
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)