Quantcast
Viewing all articles
Browse latest Browse all 40524

Controlling skeleton in ofxFbx

Hi Aashish,

The fbx addon used for that video is located here:
https://github.com/NickHardeman/ofxFBX

The example provided in the addon shows how to load fbx models and animations. The function getBone("name") in ofxFBXManager is an easy way to get bones from the fbx model.

Remember that all of the bones in ofxFBXManager are parented according to the skeleton structure and their 'world' position is relative to the ofxFBXManager. So to convert a bone position to a position in OF world space would be:

ofxFBXBone* bone = fbxManager.getBone("spine01");
ofMatrix4x4 globalTransform = bone->getWorldTransformMatrix() * fbxManager.getWorldTransformMatrix();

Viewing all articles
Browse latest Browse all 40524

Trending Articles