Getting the Vertex that is influence by a bone

Started by
4 comments, last by Stowelly 17 years, 8 months ago
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
Advertisement
yeh thatrs correct, make sure u know ur vertex format etc tho for manipulating later
http://stowelly.co.uk/
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
not entirely sure, i just used GetBoneInfluence to get the vertex list and i seem to be able to obtain accurate bounds from it
http://stowelly.co.uk/
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
just initialise the dword array using

GetNumBoneInfluences(i); with "i" being the bone u want the number of verts of
http://stowelly.co.uk/

This topic is closed to new replies.

Advertisement