Node

The Node block contains all of the information relating to a single node within the scene

The Node block contains all of the information relating to a single node within the scene. Nodes are the basic building blocks of a scene and represent objects in a scene. They can be used as meshes, cameras, or lights and can have associated materials.

They can also have parents so can form part of the scene hierarchy.

The Identifier for this block is: 2013

The Node block contains various sub-blocks which are used to specify different properties of the node, including the related material, the node's parent, and the mesh, light, or cameras that is node represents.

This block also contains several sub-block which are listed below.

Name Description
Node Name The name of the object (see Node Name).
Material Index The index of the material used with this node, if the node is a mesh (see Material Index).
Parent Index The index of this objects parent in the node array (see Parent Index).
Animation Flags A flag variable that is used to determine the forms of animation the node contains, if any (see Animation Flags).
Animation Position Index A list of indices into the Animation Position block, one per frame, used for indexing animation (see Animation Position Index).
Animation Position A list of position animations, in the form of three floats (x, y, z order), per frame when not indexed or applied in the order given by Animation Position Index when indexed (see Animation Position).
Animation Rotation Index A list of indices into Animation Rotation, one per frame, used for indexing animation (see Animation Rotation Index).
Animation Rotation A list of rotation animations, in the form of a quaternion, per frame when not indexed or applied in the order given by Animation Rotation Index when indexed (see Animation Rotation).
Animation Scale Index A list of indices into Animation Scale, one per frame, used for indexing animation (see Animation Scale Index).
Animation Scale

A list of scaling animations, in the form of seven floats (x, y, z, x-axis, y-axis, z-axis, stretch rotation), per frame when not indexed or applied in the order given by Animation Scale Index when indexed.

X-Axis, Y-Axis, Z-Axis and Stretch Rotation are used to convert the object into the axes the scaling is performed in (see Animation Scale).

Animation Matrix Index A list of indices into Animation Matrix, one per frame, used for indexing animation (see Animation Matrix Index).
Animation Matrix

A list of matrix animations, in the form of sixteen floats (4x4), per frame when not indexed or applied in the order given by Animation Matrix Index when indexed.

Matrices are stored Row Major in memory and use Column Major mathematically (see Animation Matrix).

Node User Data Custom data added by the exporter (see Node User Data).
Node Index The index of the node into the mesh, light, or camera array, as appropriate (see Node Index).