d3d9.dllUpdateSkinnedMesh
Microsoft DirectX 9.0 SDK Update (October 2004)

ID3DXSkinInfo::UpdateSkinnedMesh Method


Applies software skinning to the target vertices based on the current matrices.

Syntax

HRESULT UpdateSkinnedMesh(      

    const D3DXMATRIX *pBoneTransforms,     const D3DXMATRIX *pBoneInvTransposeTransforms,     LPCVOID pVerticesSrc,     PVOID pVerticesDst );

Parameters

pBoneTransforms
[in] Bone transform matrix.
pBoneInvTransposeTransforms
[in] Inverse transpose of the bone transform matrix.
pVerticesSrc
[in] Pointer to the buffer containing the source vertices.
pVerticesDst
[in] Pointer to the buffer containing the destination vertices.

Return Value

If the method succeeds, the return value is D3D_OK.

If the method fails, the return value can be D3DERR_INVALIDCALL.



Remarks

When used to skin vertices with two position elements, this method skins the second position element with the inverse of the bone instead of the bone itself.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.