Copy Animation in Ogre

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

Copy Animation in Ogre

Post by koreos »

How to create blank animation clip (armature without any keyframes) and copy first 100 keyframes of another animation(with same hierarchy) into that blank animation clip?
User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5296
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1278
Contact:

Re: Copy Animation in Ogre

Post by dark_sylinc »

Checkout Ogre Meshy's source code.
It creates a Pose Animation with just one keyframe and then manually updates it by reading the keyframes of the other poses.

What you want to do is simpler, but is essentially the same family of functions and similar approach.
To copy skeletal animations, you just use TransformKeyFrame instead of VertexPoseKeyFrame.
Post Reply