ID3DXSkinInfo interface

Applications use the methods of the ID3DXSkinInfo interface to manipulate bone matrices, which are used to skin vertex data for animation. This interface is no longer strictly tied to ID3DXMesh and can be used to skin any set of vertex data.

Members

The ID3DXSkinInfo interface inherits from the IUnknown interface. ID3DXSkinInfo also has these types of members:

Methods

The ID3DXSkinInfo interface has these methods.

Method Description
Clone Clones a skin info object.
ConvertToBlendedMesh Takes a mesh and returns a new mesh with per-vertex blend weights and a bone combination table. The table describes which bones affect which subsets of the mesh.
ConvertToIndexedBlendedMesh Takes a mesh and returns a new mesh with per-vertex blend weights, indices, and a bone combination table. The table describes which bone palettes affect which subsets of the mesh.
FindBoneVertexInfluenceIndex Retrieves the index of the bone influence affecting a single vertex.
GetBoneInfluence Gets the vertices and weights that a bone influences.
GetBoneName Gets the bone name, from the bone index.
GetBoneOffsetMatrix Gets the bone offset matrix.
GetBoneVertexInfluence Retrieves the blend factor and vertex affected by a specified bone influence.
GetDeclaration Gets the vertex declaration.
GetFVF Gets the fixed function vertex value.
GetMaxFaceInfluences Gets the maximum face influences in a triangle mesh with the specified index buffer.
GetMaxVertexInfluences Gets the maximum number of influences for any vertex in the mesh.
GetMinBoneInfluence Gets the minimum bone influence. Influence values smaller than this are ignored.
GetNumBoneInfluences Gets the number of influences for a bone.
GetNumBones Gets the number of bones.
Remap Updates bone influence information to match vertices after they are reordered. This method should be called if the target vertex buffer has been reordered externally.
SetBoneInfluence Sets the influence value for a bone.
SetBoneName Sets the bone name.
SetBoneOffsetMatrix Sets the bone offset matrix.
SetBoneVertexInfluence Sets an influence value of a bone on a single vertex.
SetDeclaration Sets the vertex declaration.
SetFVF Sets the flexible vertex format (FVF) type.
SetMinBoneInfluence Sets the minimum bone influence. Influence values smaller than this are ignored.
UpdateSkinnedMesh Applies software skinning to the target vertices based on the current matrices.

 

Remarks

Create a ID3DXSkinInfo interface with D3DXCreateSkinInfo, D3DXCreateSkinInfoFromBlendedMesh, or D3DXCreateSkinInfoFVF.

The LPD3DXSKININFO type is defined as a pointer to the ID3DXSkinInfo interface.

typedef struct ID3DXSkinInfo *LPD3DXSKININFO;

Requirements

Requirement Value
Header
D3DX9Mesh.h
Library
D3dx9.lib

See also

D3DX Interfaces