Deforms an ofMesh with a skeleton of ofNodes and vertex weights, returning the deformed mesh for rendering.
Branches ahead of master
These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.
README
ofxSkinnedMesh
How to use
It will be good to read this document with example/src/ofApp.cpp.Prepare
1. Create mesh same as ofMesh
addVertex, addColor, addIndex, bla,bla,bla,,, Don't forget to call refreshMesh when you finish editing mesh. 1. Set skeleton data Skeleton data is just a vector of ofNode.
1. Set relationships between mesh vertices and skeleton nodes by
addWeight You can call refreshWeightAutomatic instead of doing by yourself. Deform mesh
1. Move skeleton nodes You can get skeleton nodes from
getSkeleton or keep them by yourself. 1. Update mesh Just call
update. Get deformed mesh
Just call
getDeformedMesh. The return value is a normal ofMesh. Lisence
MIT Lisence.
ofxAddons