• Advertisement
Sign in to follow this  

Getting the Vertex that is influence by a bone

This topic is 4222 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

After reading the SDK document, I thought of this 2 functions form the ID3DXSkinInfo interface. GetBoneInfluence() and GetBoneVertexInfluence(), which should i use to get the vertices that is affected by a bone, as i need to compute the bounding box of a bone. For the function GetBoneInfluence(), the array of vertices that it returns is the array of vertex index is it? As in if it return {3,6,8,4..} it refers to the 3rd vertex, 6th vertex in the vertex buffer... is it? or am i interpeting the SDK doc wrongly? Thanks

Share this post


Link to post
Share on other sites
Advertisement
yeh thatrs correct, make sure u know ur vertex format etc tho for manipulating later

Share this post


Link to post
Share on other sites
But what exactly is the difference in both functions GetBoneInfluence() and GetBoneVertexInfluence()?

I mean i know it has got something to do with the blend factor. But i would love to know when should i use which function, as in a more detail explaination than the SDK doc, because the SDK doc seems a litte to skimmpy in its explaination/usage of the function.

Thanks

Share this post


Link to post
Share on other sites
not entirely sure, i just used GetBoneInfluence to get the vertex list and i seem to be able to obtain accurate bounds from it

Share this post


Link to post
Share on other sites
Just a small question, for the function GetBoneInfluence(), the 2nd parameter it takes is a pointer of DWORD, which i know will return a array of index of the vertex.

But how do you know how large an array of DWORD to create to pass into the GetBoneInfluence() function?

Thanks

Share this post


Link to post
Share on other sites
just initialise the dword array using

GetNumBoneInfluences(i); with "i" being the bone u want the number of verts of

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement