Simple model movement

Moderator
Posts: 133
Joined: 2008.05
Post: #1
I need the basic idea behind making a model of a person run.

My understanding of it from just glancing over other posts is that you have pieces of a person, calf, thigh, torso, arms, head and can manipulate them to make appear to move.

If this is the case, the art won't be a problem(but it'd be nice if someone told me how to reduce the polygon count on a Poser 4.0 model), but the coding I'm not sure of an efficient way to do it. Any examples or some simple pseudo code would be helpful, thanks.
Quote this message in a reply
kberg
Unregistered
 
Post: #2
Pseudocode...

Code:
void Draw_Body_Element(ObjectPtr *currPtr)
{
   glPushMatrix();
   currPtr->ApplyTransformation();
   currPtr->Draw();
   if (currPtr->hasChildren)
      Draw_Body_Element(currPtr->Children);
   glPopMatrix();
}

The basic idea is you represent your articulated object as a tree. You traverse the tree starting at the root and recursing all the way down. By convention, with human figures the hips are usually considered the root.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  3D circle movement LongJumper 6 3,389 Jul 27, 2005 08:50 AM
Last Post: ThemsAllTook
  movement in full 3d reubert 13 4,399 Sep 19, 2004 08:55 AM
Last Post: Mark Levin