← Back

ofxSkinnedMesh

github.com/nariakiiwatani/ofxSkinnedMesh · @nariakiiwatani
OF 0.12 3D / Point Cloud

Deforms an ofMesh with a skeleton of ofNodes and vertex weights, returning the deformed mesh for rendering.

5 0 Last commit 2y ago Created 10y ago

Branches ahead of master

These branches have commits not yet on master — could be unmerged fixes or work in progress worth a look.

images 2 commits ahead · last commit 10y ago

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.

Get this addon

HTTPS
SSH