.md2 animation keyframes (SOLVED)

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
andrei25ni
Posts: 326
Joined: Wed Dec 14, 2005 10:08 pm

.md2 animation keyframes (SOLVED)

Post by andrei25ni »

I'm trying to make an animated character in .md2 format, and I want the key-frames I set in Milkshape to match the predefined states in Irrlicht.
Can someone tell me which are the intervals for those frames ?



EMAT_STAND = 0 - ?
EMAT_RUN = ? - ?
EMAT_ATTACK = ? - ?
EMAT_PAIN_A = ? - ?
EMAT_PAIN_B = ? - ?
EMAT_PAIN_C = ? - ?
EMAT_JUMP = ? - ?
EMAT_FLIP = ? - ?
EMAT_SALUTE = ? - ?
EMAT_FALLBACK = ? - ?
EMAT_WAVE = ? - ?
EMAT_POINT = ? - ?
EMAT_CROUCH_STAND = ? - ?
EMAT_CROUCH_WALK = ? - ?
EMAT_CROUCH_ATTACK = ? - ?
EMAT_CROUCH_PAIN = ? - ?
EMAT_CROUCH_DEATH = ? - ?
EMAT_DEATH_FALLBACK = ? - ?
EMAT_DEATH_FALLFORARD = ? - ?
EMAT_DEATH_FALLBACKSLOW = ? - ?
EMAT_BOOM = ? - ?
Last edited by andrei25ni on Tue Aug 29, 2006 9:47 am, edited 1 time in total.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

I would imagine there'd be some quake 2 modelling website which would tell you, personally ain't got a clue tho!
Image Image Image
andrei25ni
Posts: 326
Joined: Wed Dec 14, 2005 10:08 pm

Post by andrei25ni »

Believe me, I searched a lot before opening this post, but I couldn't find anything. (or didn't searched deep enough)

I think Niko might know something, since he wrote the code, but he's on vacation. :roll:
Mobeen
Posts: 37
Joined: Sat Mar 25, 2006 9:31 am
Location: Karachi, PAKISTAN

Re:

Post by Mobeen »

Hi there,
Its all given in the source file CAnimatedMeshMD2.cpp

Code: Select all

struct SMD2AnimationType
{
	s32 begin;
	s32 end;
	s32 fps;
};

SMD2AnimationType MD2AnimationTypeList[21] =
{
    {   0,  39,  9 },   // STAND
    {  40,  45, 10 },   // RUN
    {  46,  53, 10 },   // ATTACK
    {  54,  57,  7 },   // PAIN_A
    {  58,  61,  7 },   // PAIN_B
    {  62,  65,  7 },   // PAIN_C
    {  66,  71,  7 },   // JUMP
    {  72,  83,  7 },   // FLIP
    {  84,  94,  7 },   // SALUTE
    {  95, 111, 10 },   // FALLBACK
    { 112, 122,  7 },   // WAVE
    { 123, 134,  6 },   // POINT
    { 135, 153, 10 },   // CROUCH_STAND
    { 154, 159,  7 },   // CROUCH_WALK
    { 160, 168, 10 },   // CROUCH_ATTACK
    { 196, 172,  7 },   // CROUCH_PAIN
    { 173, 177,  5 },   // CROUCH_DEATH
    { 178, 183,  7 },   // DEATH_FALLBACK
    { 184, 189,  7 },   // DEATH_FALLFORWARD
    { 190, 197,  7 },   // DEATH_FALLBACKSLOW
    { 198, 198,  5 },   // BOOM
};
Hope this helps
Mobeen
Proud to be a PAKISTANI
andrei25ni
Posts: 326
Joined: Wed Dec 14, 2005 10:08 pm

Post by andrei25ni »

Yes it definetly helps !!!! Thanks !!! :D :D :lol: :D :D

I searched the source too, but didn't find this.
Post Reply