View Full Version : Hand animation in DirectX or OPenGl
servo
10-12-2005, 02:24 AM
Hi everybody. Ok, i have 3d model of hand in 3ds or x file format.
I want my program do animation of this object (like shakehand etc)
How can i do this?
Thanx for help.
zavie
10-12-2005, 03:18 AM
Hi everybody. Ok, i have 3d model of hand in 3ds or x file format.
I want my program do animation of this object (like shakehand etc)
How can i do this?
Wow, you'll have pretty much work to do...
First, does your model include a skeleton? If not, you first have to add one. People usually use the same for the hand so look at other's work.
Then you'll have to choose between hand made animation (hard work and usually not visually convincing for the hand), and using captured motions (then the problem is to find such data, and to use it).
I'll post some names to google for later.
Servo.. You Make graphits in 3d studio max?
servo
10-12-2005, 11:20 PM
Yeah, i have been made hand model in 3ds max.
Include the animation of hand and export in 3ds file format and save with animation feature.
But it doesn't run animation in OpenGL. Why ?
Does any unit of OpenGL that show model include texture and animation what i've done by using 3ds max in any 3d file format?
OpenGL does not handle animation. Neither does it read files, load textures etc. It is simply an interface to draw triangles. The rest is up to you.
NeZbiE
10-13-2005, 06:51 PM
lib3ds supports animation keyframes and materials, if that's what you're looking for.
http://lib3ds.sourceforge.net/
Apocalypse
10-14-2005, 11:59 AM
I know I come a bit too early with this, but it will help just in case you know how to read from files and draw to the screen using OpenGL.
If you want to make parent and child objects, you must apply the transformations in the following order:
glTranslatef(parent_pos_x, parent_pos_y, parent_pos_z);
glRotatef(parent_x, 1.0f, 0.0f, 0.0f);
glRotatef(parent_y, 0.0f, 1.0f, 0.0f);
glRotatef(parent_z, 0.0f, 0.0f, 1.0f);
Draw_Parent();
glTranslatef(child_pos_x - parent_pos_x, child_pos_y - parent_pos_y, child_pos_z - parent_pos_z); // this way, you will rotate the child around the parent(with the rotation matrix on the stack, the one that has the parent rotations)
glRotatef(child_x, 1.0f, 0.0f, 0.0f);
glRotatef(child_y, 0.0f, 1.0f, 0.0f);
glRotatef(child_z, 0.0f, 0.0f, 1.0f);
Draw_Child();
// and so on...
I hope this will help you in the future!:happy:
servo
10-16-2005, 08:23 PM
Mmm i see, still hard and have something to do with vertex of hand that have animation. I must concentrate with vertex by vertex to run animation.
Manual goes hard
vBulletin, Copyright ©2000-2010, Jelsoft Enterprises Ltd.