Purpose

Alphatable files appear to control the strength (alpha) of each of the four terrain textures for every heightmap vertex.

General Format Overview

Alphatable files consist of a size followed by a 32-bit bitmap, where each color channel corresponds to the strength of the terrain texture. The dimensions of the bitmap are gridinfo.gridwidth * 2 + 1 wide by gridinfo.gridlength * 2 + 1 tall.

Alphatable Format

Name Data Type Value Description
Entry count UINT32 Varies Number of vertices. Should be equal to the corresponding `gridinfo.ini`'s (width + 1) * (height + 1).
Data points UINT32[entryCount] Varies An array of data points for each vertex, with each of the 4 textures taking 1 byte.