Changeing MD2 Animation during runtime and...

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
CBMFreak
Posts: 4
Joined: Fri Feb 04, 2005 8:14 am

Changeing MD2 Animation during runtime and...

Post by CBMFreak »

Changeing MD2 Animation during runtime and continuing with the newly
selected animation :

Hi.. I am a newbie to this awesome engien, but I must admit, that the engien is very very cool indeed...

I have a problem that I have been struggling with...

When I try out the toturials on the homepage, I can get them all to work, no problem and I can modify them and that works also, giving me a very basic understanding of its functionality... but

when I modify the first example to achieve that the quake 2 model
doesnt something different after a while.. then something weird happends..

I have a test variable that I increment in the main and then I let the value control what animation I want...

I use the "node->setMD2Animation(scene::EMAT_WAVE);" command to
set the animation to a wave first,

that works fine... the model waves... then after the test value has reached a certain value, I invoke this command :

"node->setMD2Animation(scene::EMAT_RUN);"

But the model doesnt begin to run, instead the model freezes

when the value reach a certain value I "reset" the value to 1.

When I invoke the next setMD2Animation commands, the model just changes between non-animated poses (no animation anymore).

What do I do? How to prevent it from stopping the animation?

I have tried all sorts of stuff, but it doesnt work..

Thanks for any help in advance...

Regards from CBMFreak.


Btw. I am coding this in microsoft visual c++ .NET.
Post Reply