Layers contain materials, textures, UV, and other layer elements
 
 
 

There are many types of layer element: textures (texture files), normals, UV coordinates, specular materials, diffuse materials, and so forth.

For each of these layer element types, you may have more than one element. For example, if the element type is textures, you may have more than one texture file; or if the element type is normals, you may have more than one normal.

To support multiple elements of each type, a layer element contains an array of elements. What is stored in each element of the array depends upon the layer element type. This array is called DirectArray. DirectArray is actually a lookup table, indexed by element number

If you need an additional level of indirection to the elements of a DirectArray, you can use IndexArray, an array of index numbers to DirectArray

For example, in the CubeCreator tutorial program, here is how we use the DirectArray and IndexArray for normals:

NoteMeshes are not the only type of FBX object that supports layers. Any subclass of class KFbxLayerContainer supports layers.

Any subclass of class KFbxLayerContainer supports layers.