MD2 Frames Question
-
- Posts: 2
- Joined: Fri Jun 23, 2006 7:30 pm
MD2 Frames Question
Hi, all. I just picked up irrlicht and started messing around with it and am excited to start creating with it. I have decided to use .md2 as my model of choice as I am familiar with the format and there seems to be alot of support for it in the documentation. There is however something that struck me as rather odd. I noticed that in the the tutorial the frameloop is looping frames 0 to 310 to play the standard Quake2 stand animation. However when I open the model in a model editor (Q2mdlr) The stand animation goes from frame 0 to 39. Does anyone have an explaination for this? I have searched the forum and have found nothing. Any feedback appreciated.
I don't know the specific answer to your question, but I do know that in several file formats, there is not a 1:1 ratio between frames in the original file and the resulting frames in Irrlicht. I have no idea why this is, but I have seen it in several different animations. On the positive side, it does seem to be consistent for a given file format, so you can just hardcode a scaling factor for your expected frame positions once you figure out the exact ratio.