How to use the advanced animation, like combine animations

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
wuallen
Posts: 67
Joined: Thu Jan 25, 2007 3:07 am
Location: Shanghai

How to use the advanced animation, like combine animations

Post by wuallen »

I just can build a MD2 model and some run, idle animation by Milkshape. I load it into irrlicht and it works.

I also heard about some advanced animation skills, such as combine two animations, like wave hands and run by legs.

How to do this? Can milkshape do this?
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

Milkshape wouldn't do that, i guess you'd just make the two animations in Milkshape and then combine them in irrlicht.
Image Image Image
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

md2 doesn't support more than one animation at a time. You'd have to use skeletal animation for this, or split your mesh into several md3 parts (though md2 would work in that case, too).
wuallen
Posts: 67
Joined: Thu Jan 25, 2007 3:07 am
Location: Shanghai

Post by wuallen »

I look through some post here, and I get some unclear idea.

Milkshape supports the skeletal animation.

1) I build model and skeletal animation by Milkshape.
2) I export a ms3d model to a B3D model.
3) AnimationSceneNode->setTransitionTime(10);
4) AnimationSceneNode->setJointMode(2);
5) IBoneSceneNode* arm = AnimationSceneNode->getJointNode("arm");
6) arm->animateJoints();
7) arm->setFrame("waveHand"); // how to set frame
8) IBoneSceneNode* leg = AnimationSceneNode->getJointNode("leg");
9) leg->animateJoints();
10) arm->setFrame("run");
11) showAll()

Does this work? I havn't tried this, because I don't know how to set two different frame loop in one animated scene node.
wuallen
Posts: 67
Joined: Thu Jan 25, 2007 3:07 am
Location: Shanghai

Post by wuallen »

JP wrote:Milkshape wouldn't do that, i guess you'd just make the two animations in Milkshape and then combine them in irrlicht.
how to combine?
wuallen
Posts: 67
Joined: Thu Jan 25, 2007 3:07 am
Location: Shanghai

Post by wuallen »

Jp , hybrid where are you?
Virion
Competition winner
Posts: 2148
Joined: Mon Dec 18, 2006 5:04 am

Post by Virion »

interesting topic... how to animate the joints separately in modeling software? any tutorial? thanks.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post by JP »

wuallen wrote:Jp , hybrid where are you?
Do you find it strange we weren't online in the middle of the night? ;)

Personally i was tucked up in bed awaiting the new work day!
Image Image Image
wuallen
Posts: 67
Joined: Thu Jan 25, 2007 3:07 am
Location: Shanghai

Post by wuallen »

Virion wrote:interesting topic... how to animate the joints separately in modeling software? any tutorial? thanks.
I want to know it too. But I think Milkshape can't do this, and b3d model can't do this. To do this, you must use some powerful and special tools and special model format.
Post Reply