Animation and md2 file

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
voldor

Animation and md2 file

Post by voldor »

Hello everybody,

Can anyone tell me how to play a specific animation within a .md2 file given the name of the animation instead of playing all ?

Thank you very much for your Help
wolfsb
Posts: 26
Joined: Sun Dec 26, 2004 1:51 pm
Location: Berlin, Germany

Post by wolfsb »

Get yourself the Quake Model Editor (MDL.EXE) which should be freeware. When loading a MD2 model (for example: sydney) it tells you in the bottom section the total number of frames. you can toggle through the frames and at the same time you will see the animation section names (stand, run etc.). the RUN-Animation would hence be -> frame 40 thru frame 46 (run001 - run006) etc. ; switching to "attack" would be -> attack1 thru attack8 (ie. frame 46 - frame 53). you would then use

sydneyNode->setFrameLoop(46,53);

to make it happen.

wolfsb berlin, GY
Post Reply