Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

steve_bruce

Animation in 3D

This topic is 5855 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi Guys Has anyone here bought the excellent book OpenGL superbible 2nd edition. It''s a great read and I''ve learnt a lot from it. Anyway here''s the question... I''m starting a game like Diablo and Baldurs Gate but in full 3D so you can move the camera around and see different angles. But how would I go about animating a 3D character (in OpenGL) created in something like 3DSMax. How do you tell OpenGL to move the arms and legs so you can make him walk and swish his sword etc. Would the arms,legs and head have to be seperate objects. And could you somehow do specific animations in say 3DSMax of him swishing his sword and somehow incorporate that into OpenGL somehow. Pheww lot''s there, but I hope someone can help. I don''t want to start something I can''t finish.

Share this post


Link to post
Share on other sites
Advertisement
For every frame you have to use glPushMatrix() for each limb, then make the transformations to put it into the correct position with the correct orientation, draw it and call glPopMatrix() to get again the original matrix which was on top of matrix stack before glPushMatrix.

Visit our homepage: www.rarebyte.de.st

GA

Share this post


Link to post
Share on other sites
From what I''ve learned, you do all the animation in 3ds or what ever software.. and you load them into opengl and interpolate each frame. Of course you will have to write you own loader.

Share this post


Link to post
Share on other sites
Use skeleton animation... You should first set skeletons and its animations of your cherectors and load it into your program just like quakeIII does... I think it''s the best way to animate your cherectors...

You can use MilkShape3D to do that , ''cause the model file is very easy to load... You can also find source code to load its model file on its site
HERE
...

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!