Is there anyone here who has some experience with Ogre3D and animations?
My problem is simple. My animated model has multiple animations, but Ogre imports them all into a single animation track (called "Anim_1"), where one animation comes after the other. I want to split these animations up into separate animation tracks in software. (E.g. idle animation from 0-40, walk from 40-80, etc. should all have their own animation state).
How? How can I do this?
I thought it would be straight forward, where you could simply create a new animation and copy from an existing animation, but apparently there are no methods for copying one animation to another:
Ogre::Animation* idleAnim = m_OgreEntity->getSkeleton()->createAnimation("idle", 40); // PROBLEM: How do I copy the existing animation "Anim_1" to my newly created animation?
The only trace of any form of "copy" method seems to be the clone() method, but then I face a new problem: There's no way to assign this new animation to a skeleton.
Ogre::Animation* idleAnim = m_OgreEntity->getSkeleton()->getAnimation("Anim_1")->clone("idle"); idleAnim->setLength(40); // PROBLEM: How do I apply this "idleAnim" to my skeleton now? There is no method "addAnimation()"