How to set .x format file's animation

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
Arthaslonely
Posts: 2
Joined: Sat Apr 09, 2011 12:04 pm

How to set .x format file's animation

Post by Arthaslonely »

I mean that if i load a .x model to IAnimatedMeshSceneNode ,then i want to use one animation of all animations in the file,how can i do?
for example,the .x model have some animations like"walk,attack"and so on,if i want to show the "attack" animation ,how can i do?
thank you ,first.
Lunacore
Posts: 18
Joined: Sun May 30, 2010 4:01 pm
Location: Berlin (Germany)

Post by Lunacore »

I don't know, if it works with names, but you can use:
IAnimatedMeshSceneNode->setFrameLoop(s32,s32) and for only one loop IAnimatedMeshSceneNode->setLoopMode(bool)
But therefore you have to know the exact framenumbers from your different animations.
Image
Ravi08
Posts: 249
Joined: Thu Jul 17, 2008 12:25 pm

Post by Ravi08 »

Continuing from what Lunacore said, i suggest having a look at Tutorial 4: Movement.
"Hey Baby Wobbling Wobbling"
-Russell Peters
Arthaslonely
Posts: 2
Joined: Sat Apr 09, 2011 12:04 pm

Post by Arthaslonely »

thank you ,and i'll have a try.
Auradrummer
Posts: 260
Joined: Thu Apr 17, 2008 1:38 pm
Location: Brasopolis - Brazil

Post by Auradrummer »

Arthas,

I had a problem here that only text .X files was able to play animations.
Professional Software Developer and Amateur Game Designer ;-)
Post Reply