I made some big updates to my animation class. First
one is that there are four new animations and the existing where
updated. Now the class can simulate this:
+ running (improved)
+ walking
+ jump (improved)
+ strafe left (new)
+ strafe right (new)
+ backward (new)
+ head will point to mouse direction, to simulate watching (new)
I also recoded the whole interpolation structure for blending from one
to another animation. Now you dont have to code it by your own for example if you want to add your own animation. This blending function
is able to handle every function you create. So if you want to add your own
animation, do the following ->
- create an extra function in the skeleton class (private section)
which handles your animation
- extend the switch branch in 'animSkeleton' and 'animInterpolation'
- thats it
So give it a try i know you will like it, the demo shows also a moving player and fade moving camera system!! Link as usual or on my website:
http://www.solar-ray.org
---------------------------------------------
A new version is out, and now it looks much more realistic.
I added to all animations shaking bones, also the blendings
are now a little bit better, so have a look at it!
---------------------------------------------
Now it works also with Irrlicht 1.4, so you dont need Acki's IrrExtension !
---------------------------------------------
I changed some things to the class:
+ improved running mode
+ added walk cycle
+ added motion in stand position
original post:
---------------------------------------------
I wrote a class which calculates skeleton human animations in realtime, so this is not a frame based animation. For my project Im needing running/walking/jumping... animations for the main player. But I dont want to use frame based animations like the md2 format, because later I want an easy way to implement other players, this way that I just have to model them with their bones in blender and import them into my project. So this would be also really easy for other fans of my project to implement their own players, without recreating all the animations. The other Idea is that realtime calculated animations could have smooth blending effects from one anim to another one.
Here you can download the packed source:
http://home.mnet-online.de/sk9/skeleton.rar
Needed files for the skeleton animations in your project:
+Skeleton.h
+Skeleton.cpp
+BMaths.h
+BMaths.cpp
I hope my source is documented well enough for you
![Smile :)](./images/smilies/icon_smile.gif)
There is also a compiled version if you just want to have a look at it!
I also copied the blender file with the human into it, the human isnt good
enough for my project but will maybe helpful for someone.
Comments are welcome