Game Development Community

T3D Engine Render Question: Layermaps and material overlap

by Kenneth Eves · in Torque 3D Beginner · 09/28/2012 (3:57 pm) · 1 replies

I have a question regarding the design of T3D.

For example:

A terrain exists that was created from a 512x512 heightmap.
4 material layers are created.
Each material layer internally uses a layermap, a 512x512 bitmap.
Painting a material on the terrain changes a pixel on the layer's bitmap from black (material not present) to white (material present).


By design, is it intended that a given pixel can be turned on by more than one layermap?

#1
09/28/2012 (11:36 pm)
Follow-up for search in.

Internally T3D stores all terrain material assignments in a single layermap. Overlap is not possible.

Exporting a terrain splits the internal layermap into individual layermaps (one per layer), and then merges them back to a single layermap on import.