Hi.
I use irrlicht 1.2 in linux and in the hello world demo, there is:
node->setMD2Animation ( scene::EMAT_STAND );
Which I think should do STANDing animation but it does all animations in md2 file (stand then walk then run ...) all. No matter which EMAT_* i choose, all animations are played one after another in a loop. I also try specify animation by string name "stand", "walk", ... but the result is the same.
node->setMD2Animation ( "stand" );
What's wrong
md2 animations play all animations instead of choosen one
there's a bug in 1.2 where STAND animation starts at frame 0 which is deemed out of bounds, so the full animation is played instead. it is now fixed in svn.
just change line 316 in CAnimatedMeshSceneNode.cpp to
and recompile irrlicht.
oh, and if you can't set "walk" as an animation, your mesh probably doesn't contain a "walk" animation
just change line 316 in CAnimatedMeshSceneNode.cpp to
Code: Select all
if (!(begin <= end && begin >= 0 && end <= frameCount))
oh, and if you can't set "walk" as an animation, your mesh probably doesn't contain a "walk" animation
-
- Posts: 616
- Joined: Wed Nov 01, 2006 6:26 pm
- Location: Cairo,Egypt
- Contact: