How can I import animation in Ogre?

Discussion area about developing or extending OGRE, adding plugins for it or building applications on it. No newbie questions please, use the Help forum for that.
Post Reply
tom011581
Gnoblar
Posts: 10
Joined: Tue Sep 15, 2015 4:22 am

How can I import animation in Ogre?

Post by tom011581 »

Hi,
I am a green hand of Ogre.I would like to import .fbx file in Ogre.First, I import the .fbx file in blender.Then,I use the blender2ogre add-ons
to output the ogre format. A lot of file ( include .mesh.xml) can be generated .However, there is no .skeleton file.I do not know why. The .fbx file contains animation.How can I import it in Ogre.
User avatar
Kojack
OGRE Moderator
OGRE Moderator
Posts: 7157
Joined: Sun Jan 25, 2004 7:35 am
Location: Brisbane, Australia
x 534

Re: How can I import animation in Ogre?

Post by Kojack »

The blender exporter for ogre requires that all animations exist as tracks in the non linear animation editor.

For example, it should look something like this:
Image

Loading from FBX may not load them into that system. For example, the ninja character above was loaded from a milkshape file and it came out wrong (it was a single giant animation that did all the different parts). I had to manually create the tracks in blender before it could export. It was a bit painful and a while ago, I can't remember much of what I did.
Post Reply