L3DT documentation
Large 3D terrain generator

The attributes map

The attributes map describes the type of land in each pixel of the texture map or alpha maps (e.g. rocks, sand, grassland, jungle, etc). The attributes map is conceptually similar to a set of alpha maps, but it takes less space. Instead of each land type having its own image (or layer in an image), it is assigned a unique 16-bit value that is stored in the attributes map. For a typical map with four land types, the attributes map takes 1/2 the space in memory than an equivalent alpha map. For a more complex map with 8 land types, it is 1/4th.

The 16-bit attributes map pixels are comprised:

High byte Climate ID. Zero based, referencing climates in the project climate list (see .proj file).
Low byte Land type ID. One based, referencing land types in the climate. Zero is reserved for error conditions.

The land types in the attributes map are defined in climates, which can be viewed/edited using the climate manager / editor. The climate definition also specifies the display colours for each land type (see example below), so if you don't like the colour scheme you can change it.

Note water type is stored in a separate water map.

Example map


Further reading

l3dt/reference/maps/am.txt · Last modified: 2017/08/31 06:22 (external edit)
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki