Ogre animation

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
ccloveaa
Posts: 9
Joined: Mon Dec 21, 2009 4:12 am

Ogre animation

Post by ccloveaa »

hey guys
i'm using irrlicht on iphone development, and our modeler use maya, since irrlicht 1.7 for iphone come out, i found irrlicht support ogre mesh, i'm so exciting about this, but when the modeler give me the file export from maya, i can't play the animation, and it's a simple bone animation, just a box with a simple animation, and below is the code i'm using

IAnimatedMesh *mesh = p_smgr->getMesh(N2P("test.mesh"));

p_node = p_smgr->addAnimatedMeshSceneNode(mesh);

p_node->setFrameLoop(0,23);
p_node->setAnimationSpeed(23);

can someone tell me what's wrong about my code or exporting process?

i'm using maya 7 and OgreMayaExporter_maya70_1.6.0

export .mesh and .skeleton file, no .animation file

thanks in advance!
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

I'm not sure about the frame loop, could be that the values are much larger than the ones you've chosen. Maybe just try to load the mesh in the meshviewer example, where the full animation cycle is loaded.
I'm also not sure if any animation data is found outside the .animation file. Maybe you just load the skeleton? You can display the skeleton in the meshviewer as well, check the menu.
ccloveaa
Posts: 9
Joined: Mon Dec 21, 2009 4:12 am

Post by ccloveaa »

Thank you for reply, i'm wondering which type of ogre animation irrlicht supported?

skeleton or Blend Shapes or vertex animation?

and is there any ogre exporter parameter exist?

thanks in advance!
hybrid
Admin
Posts: 14144
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Well, not sure about the whole support actually, but it's probably skeleton animation which is supported. I went along the file information I found and supported all things that I met. It's not that there is much documentation about those things in Ogre, so I don't know if it covers most or only parts of the animation support in Ogre.
Post Reply