But I have a very simple cube with a single bone. It plays a simple animation that translates, scales, and rotates the cube.
I'm using https://github.com/OGRECave/ogre-assimp to convert an fbx to .mesh, .material, and .skeleton files.
The converter seems to do its job just fine and produces all three files: cube.mesh, cube.material, cube.skeleton.
In my application I load the mesh and enable the animation
Code: Select all
_anim_node = _sphere_node->createChildSceneNode();
_anim_entity = _scene_manager->createEntity("cube", "cube.mesh");
_anim_state = _anim_entity->getAnimationState("Take 001");
_anim_state->setEnabled(true);
_anim_state->setLoop(true);
_anim_node->attachObject(_anim_entity);
Code: Select all
if(_anim_state) {
_anim_state->addTime(1 / 60);
}
One last question how do I get Ogre:: SkeletonSerializer to write out a .skeleton.xml so I can inspect the skeleton file? That might help debug this.