-
Notifications
You must be signed in to change notification settings - Fork 3
Skeletonimporter
The SkeletonImporter class is responsible for importing skeleton definitions. Skeletons in COLLADA files are arbitrary scene graph nodes that are referenced through a <skeleton> XML tag. COLLADA documents may contain multiple skeletons, all of which are imported. However, all skeletons are appended to a separate neutral root joint through the importer.
For each joint the attributes name, sid and id are imported. These can be used to find the actual root joint of any defined skeleton. Skinned Mesh Animations explicitly refer to joints by one of these attributes and therefore can access the joints within the resulting Joint collection.
Additionally each joint stores the following information:
-
its local Transformation (Transform)
-
its index within the collection (Index)
-
its parent and child joints (Parent, Children)
-
its inverse bind pose matrix (InvBindPose)
The inverse bind pose matrix is used for Skinned Mesh animation and represents the transformation of a joint during the initial Bind Pose of a mesh. For details refer to the AnimationImporter.
For use with the default content model the ColladaXNA Content Importer transforms these joints into equivalent ModelBones.
Skeletons should be imported just fine. No known problems so far.