AW_TERRAIN_NODE_TEXTURES |
|
Type
Data Description
This attribute is new in build 24 of the SDK and requires version 3.3 or later of the world server. AW_TERRAIN_NODE_TEXTURES contains an array of 8-bit (unsigned char) texture values for a terrain node. The number of values present is indicated by the attribute AW_TERRAIN_NODE_HEIGHT_COUNT and will be either 1 or 64. This attribute is queried via the method aw_data. See aw_terrain_query for an example of how to access this attribute. Each 8-bit texture value contains two pieces of information. The lower 6 bits specify a texture index in the range from 0 to 62. Thus each world can have up to 63 unique terrain textures. The upper 2 bits specify the orientation of the texture (each terrain texture can be rotated to one of four possible orientations within a terrain cell.) If the entire 8-bit value is 254, that specifies a hole in the terrain. See terrain for more information. Used By |