Read all keyframes of animation
-
- Halfling
- Posts: 43
- Joined: Fri Jun 20, 2014 7:05 pm
Read all keyframes of animation
How to read all node values of all keyframe from skeleton?
- c6burns
- Beholder
- Posts: 1512
- Joined: Fri Feb 22, 2013 4:44 am
- Location: Deep behind enemy lines
- x 138
Re: Read all keyframes of animation
Get the animation from the skeleton:
http://www.ogre3d.org/docs/api/1.9/clas ... 32aff753c7
Iterate through the AnimationTracks, for example by using:
http://www.ogre3d.org/docs/api/1.9/clas ... a0c0b88edf
Access keyframes from the AnimationTrack:
http://www.ogre3d.org/docs/api/1.9/clas ... 6cdfd26f3c
Cast them as TransformKeyFrames and read the transformations, or whatever it is you want to do. Never really worked with animations at this low a level except to export them from Max so perhaps someone can correct anything I'm getting wrong
http://www.ogre3d.org/docs/api/1.9/clas ... 32aff753c7
Iterate through the AnimationTracks, for example by using:
http://www.ogre3d.org/docs/api/1.9/clas ... a0c0b88edf
Access keyframes from the AnimationTrack:
http://www.ogre3d.org/docs/api/1.9/clas ... 6cdfd26f3c
Cast them as TransformKeyFrames and read the transformations, or whatever it is you want to do. Never really worked with animations at this low a level except to export them from Max so perhaps someone can correct anything I'm getting wrong