Hello.
I'm trying to implement my own animating system by getting all rotation keys and then setting proper rotation to a joint.
However I'm stuck at the first step. I just can't get all existing keys. Now, the model is fully keyed, meaning that for each frame there is a keyframe. But whenever I try to get SRotationKey there are different keys numbers for each joint. What the heck? Now I've checked this: http://irrlicht.sourceforge.net/docu/st ... n_key.html
and it seems that "frame" is what I need to get but... it doesn't really work as it supposed to.
So the question is: what exactly is "frame" here and why do I get different keys numbers for different joint when there are keys for each frame? And what do I need to do to get what I need? (All of the rotations for each frame for each joint).
A question about SRotationKey
Re: A question about SRotationKey
I think redundant keys are removed. So get 2 keys and check previous - next. If your frame in between 2 identical values then it's identical as well.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: A question about SRotationKey
Ah, that explains it. Just cloned all the frames that were removed. Works like a charm.