I have a simple animation of a door opening and closing in an md2 file having 30 frames at 50 the door is opened completely and on 0 and 30 it is closed. My problems are
1) When I try to get the total frames in my animation, it returns 218 frames when I only have 30 in the md2.
2) I am trying to allow user to open the door by pressing the space bar. I have coded the intersection stuff and key handling. Based on users proximity to the door, i get the current door and play its animation using
Code: Select all
node->setFrameLoop(0, node->getFrameCount()/2);
Code: Select all
node->setFrameLoop(0, 120);
My question is Is this the correct way of doing such a thing or are there better alternatives?
3) What other options do i have apart from md2 , ms3d and b3d? What are others using ?
Thanks
Mobeen