How to extract indices and vertices of bones for an animated model in C++ FBXSDK?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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.