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!
Ogre animation
-
hybrid
- Admin
- Posts: 14144
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.
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.
-
hybrid
- Admin
- Posts: 14144
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.