Copy Animation in Ogre
-
- Halfling
- Posts: 43
- Joined: Fri Jun 20, 2014 7:05 pm
Copy Animation in Ogre
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?
- dark_sylinc
- 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
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.
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.