Skip to content

nariakiiwatani/ofxSkinnedMesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

  2. Set skeleton data
    Skeleton data is just a vector of ofNode.

  3. 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.

  2. Update mesh
    Just call update.

Get deformed mesh

Just call getDeformedMesh.
The return value is a normal ofMesh.

Lisence

MIT Lisence.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published