Page 1 of 1

A question about SRotationKey

Posted: Fri Aug 30, 2019 4:09 pm
by JunkerKun
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).

Re: A question about SRotationKey

Posted: Sun Sep 01, 2019 3:04 pm
by CuteAlien
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.

Re: A question about SRotationKey

Posted: Tue Sep 03, 2019 9:24 pm
by JunkerKun
Ah, that explains it. Just cloned all the frames that were removed. Works like a charm.