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?
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?
About the author
<3 TGE/A Quickly becoming a fan of T3D 1.2
Torque 3D Owner Kenneth Eves
XAP GAMES
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.