Jump to content


Hand animation in DirectX or OPenGl


7 replies to this topic

#1 servo

    New Member

  • Members
  • Pip
  • 5 posts

Posted 12 October 2005 - 09: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.

#2 zavie

    Member

  • Members
  • PipPip
  • 91 posts

Posted 12 October 2005 - 10:18 AM

servo said:

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.

#3 R-12

    New Member

  • Members
  • Pip
  • 3 posts

Posted 12 October 2005 - 10:45 PM

Servo.. You Make graphits in 3d studio max?

#4 servo

    New Member

  • Members
  • Pip
  • 5 posts

Posted 13 October 2005 - 06:20 AM

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?

#5 geon

    Senior Member

  • Members
  • PipPipPipPip
  • 891 posts

Posted 13 October 2005 - 11:13 PM

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.

#6 NeZbiE

    Member

  • Members
  • PipPip
  • 61 posts

Posted 14 October 2005 - 01:51 AM

lib3ds supports animation keyframes and materials, if that's what you're looking for.
http://lib3ds.sourceforge.net/

#7 Apocalypse

    New Member

  • Members
  • PipPip
  • 24 posts

Posted 14 October 2005 - 06:59 PM

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:
Apocalypse, the End of the World.

#8 servo

    New Member

  • Members
  • Pip
  • 5 posts

Posted 17 October 2005 - 03:23 AM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users