My Skeleton Helper

Started by chase, March 27, 2013, 01:30:12 PM

Previous topic - Next topic

chase

Not sure if this will help anyone, but I wrote up a skeleton helper since manually animating a skeleton is otherwise annoying.

https://gist.github.com/Chase-san/5253808

raft

cool, seems pretty helpful :)

I've made this topic sticky so it can be more helpful ;)

chase

I added a setSkeletonPose to it, and I added a (static) SkeletonPose interpolation method.

chase

#3
Added the ability to blend multiple skeleton poses (no hard limit), this one was a little involved. The link in the first post points to it.

In case you're curious, if you are manipulating the skeleton programmatically. Your best friend will be the transformJointOnPivot() method.

raft


aZen

Omg, I love you so much. You have no idea how much work this will save me!

chase

raft, I am not sure. You can add this to bones if you like, and change, edit, remix it however you like.

I've updated the code to include a license. Don't worry, it's the MIT License, very permissive.

Carlos Mateo

Hello , first of all thank you for your SkeletonHelper.

My question is, how can I use it for rotating a bone and its respective mesh manually. How can I access to that joint and rotate it.

Thanks in advance

idkm23

I have been working with this and figured it out recently Carlos. You need to construct a SkeletonHelper object with the AnimatedGroup object of the model. Then you need to need to use one of the transform methods in the skeleton helper, possibly transformOnPivot, by providing a rotation matrix of the joint and the joint number. If you don't know the joint numbers you can load the model in the OgreSample (and possibly the procedural sample) and the console will output all the joints that it found.