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
Animation and md2 file
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
sydneyNode->setFrameLoop(46,53);
to make it happen.
wolfsb berlin, GY