Read all keyframes of animation

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
koreos
Halfling
Posts: 43
Joined: Fri Jun 20, 2014 7:05 pm

Read all keyframes of animation

Post by koreos »

How to read all node values of all keyframe from skeleton?
User avatar
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

Post by c6burns »

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 :)
Post Reply