Animating a mesh with a physics ragdoll

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
OSasuke
Posts: 8
Joined: Sun Sep 06, 2009 4:54 pm
Location: Algeria
Contact:

Animating a mesh with a physics ragdoll

Post by OSasuke »

Hi,

I would animated the skeletal of a mesh, by passing the position and orientation for every part of the ragdoll ( arms, legs, foots, head, body ...)

So, how to animate the mesh, using 3D position and orientation.

Thanks.
yamashi
Posts: 82
Joined: Sat Jan 03, 2009 4:53 am

Post by yamashi »

You mean procedural animation ?
If that's what you want, you might want to read a lot about walk cycles and the algorithms to do it.
It's not that hard to do if you know very well your physic engine and you can see in 3D.
OSasuke
Posts: 8
Joined: Sun Sep 06, 2009 4:54 pm
Location: Algeria
Contact:

Post by OSasuke »

But how to animate the 3D mesh with irrlicht.

For example, I loaded an AnimatedMesh, and I wish do some animations ( animation are not translation ), for example I would like move the hand of the mesh. But the animation musn't be in the 3D mesh file. I would create animations, not to load it.
yamashi
Posts: 82
Joined: Sat Jan 03, 2009 4:53 am

Post by yamashi »

Yea, you are looking for procedural animations...
So as far as I can tell you don't know what bones and joints are... You will have to learn how to use it and how to set constraints on your joints but I think that Irrlicht won't be enough to do this kind of things, you need a physic engine, such as PhysX or Bullet...
I will be honest with you, the fact that you are asking that shows that you are not ready to go for this kind of things, it's for advanced/expert users, or if you make it, it will take you a long time and you might not be satisfied :/

Good luck to you !
OSasuke
Posts: 8
Joined: Sun Sep 06, 2009 4:54 pm
Location: Algeria
Contact:

Post by OSasuke »

Ok,

But how to animate a 3D mesh in irrlicht, without physics.

How to animate it, which functions shall i use.
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Try the Wiki page about the new animation system. It has the necessary mode setup and tells you how to access and position the joints.
OSasuke
Posts: 8
Joined: Sun Sep 06, 2009 4:54 pm
Location: Algeria
Contact:

Post by OSasuke »

Thanks, I'll have a see. :)
OSasuke
Posts: 8
Joined: Sun Sep 06, 2009 4:54 pm
Location: Algeria
Contact:

Post by OSasuke »

I found just one. He is very interesting, it is exactely xhat i need.

Are there other tutorial. Can you give me some direct link ?

Thanks again.
Post Reply