Microsoft DirectX 8.1 (Visual Basic)

D3DXSkinMesh

Applications use the methods of the D3DXSkinMesh class to manipulate skin mesh objects.

The D3DXSkinMesh class is obtained by calling one of the following methods.

To load a skin mesh from a Microsoft® DirectX® X file data object, use the D3DX8.LoadSkinMeshFromXof method.

Skinning is the technique of having different vertices of a mesh be transformed by multiple transform matrices and the results of the vertex being transformed with each individual matrix blended together to obtain the final transformed vertex.

This process is commonly called skinning because it is used to deform a mesh defining a skin of some character based on the animation of a skeleton of bones. In the simplest case of rigid animation, different parts of the character mesh are associated with a unique skeleton bone and vertices are transformed using the transform of that bone.

When discussing skinning, it is useful to define the following terms.

A skinned character is defined by a set of meshes and a set of bones that affect the vertices of the meshes. The bones are represented as a transform hierarchy. For each mesh, there is a matrix for every bone that affects it that transforms the mesh into the local coordinate space of the bone. This matrix is the bone space transform of the bone for the mesh. This is defined at the time the skeleton is associated with the mesh in the authoring process.

The methods of the D3DXSkinMesh class can be organized into the following groups.

Buffers GetIndexBuffer
GetVertexBuffer
Conversion ConvertToBlendedMesh
ConvertToIndexedBlendedMesh
Information GetBoneInfluence
GetDevice
GetMaxFaceInfluences
GetMaxVertexInfluences
GetNumBoneInfluences
GetNumBones
GetOptions
Faces GetNumFaces
Locking LockAttributeBuffer
LockIndexBuffer
LockVertexBuffer
UnlockAttributeBuffer
UnlockIndexBuffer
UnlockVertexBuffer
Miscellaneous GenerateSkinnedMesh
GetOriginalMesh
SetBoneInfluence
UpdateSkinnedMesh
Vertices GetDeclaration
GetFVF
GetNumVertices