This section describes how to set up scenes, manipulate objects, and work with characters.
The MotionBuilder scene is abstracted by the FBScene
class. Scene elements such as FBLight
, FBCamera
, FBModelCube
, FBModelSkeleton
(and many others) all inherit from FBModel
. The FBModel
class defines a scene element's local transformation data such as translation, rotation and scaling. Scene elements can be arranged in a parent-child hierarchy to form the scene graph. The parent-child FBModel
relationship is also useful when defining a hierarchy of joints (FBModelSkeleton
) to form a character's skeleton.
An instance of FBGeometry
can be bound to an FBModel
to specify the vertices of a mesh (FBMesh
) or a surface (FBNurbs
, FBPatch
).
To control how an FBModel
's geometry is rendered, shaders (FBShader
), materials (FBMaterial
), and textures (FBTexture
) may be bound to the FBModel
.