Page 1 of 1

.X animation

Posted: Fri Nov 17, 2006 4:54 pm
by lamer139
I use this code

Code: Select all

node = smgr->addAnimatedMeshSceneNode(smgr->getMesh("123.x"));
node->setFrameLoop(0,10);
but I don't see animation

why?

Thanks

Posted: Fri Nov 17, 2006 5:28 pm
by Redemption
Try multiplying the frames by 160 and setting the animationspeed to 4800 (30 fps * 160).

Posted: Sat Nov 18, 2006 12:20 am
by Luke
also don't use a start frame of 0, use 1

eg:
node->setFrameLoop(1,10);

Posted: Sat Nov 18, 2006 8:41 am
by lamer139
It does not work
It can occurs
Because I did converting from .3ds to .x, can't it ?

Posted: Sat Nov 18, 2006 9:42 am
by Luke
I have no idea what you used to make the mesh, covert the mesh, etc.

But I might be able to help you if you post your .3ds and .x meshes.