Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

How to extract indices and vertices of bones for an animated model in C++ FBXSDK?

shalsharief
Explorer

How to extract indices and vertices of bones for an animated model in C++ FBXSDK?

shalsharief
Explorer
Explorer

I tried to get the node that has the first bone for example: 

 

fbxsdk::FbxNode* leg_node = root_node->GetChild(0);

 

I already have the mesh model, and I can load it, but my model is divided into 7 bones, and in blender, I can see the vertex groups that should contain the indices and vertices of each bone. 

 

I tried to cast the leg_node to a mesh node like so :

 

FbxMesh* leg_mesh = FbxCast<FbxMesh>(my_mesh->GetNodeAttribute());

 

but it gives me a null pointer.

 

I can see the vertex groups in blender, with each group corresponds to each bone, I tried to look from them in the SDK but couldn't find the function for that.

0 Likes
Reply
109 Views
0 Replies
Replies (0)