Jump to content
  • Advertisement
Sign in to follow this  
Alex

Skinned Meshes

This topic is 4066 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

I'm looking to implement a set of classes to handling loading, animating, and drawing skinned meshes. I understand the theory behind the principle: vertices are mapped to one or more bones with weights ranging up to 100%; The bones are arranged in a hierarchy so that bones further down in the structure are affected by all preceding ones; the hierarchy can be implemented using a matrix stack; and so on... What I'm wondering is how the animating and drawing process should be implemented. What I mean is, I've been reading Jim Adams' book "Advanced Animation with DirectX" where he makes a copy of the mesh each frame and updates the vertices on the CPU. This seems like a slow way of doing things, since I would assume much of the work could be offloaded to the GPU. Is there an efficient way of applying the bone transformation matrices and rendering all in one step in either the fixed-function pipeline or a shader?

Share this post


Link to post
Share on other sites
Advertisement
I would get an animation system running first completely on the CPU, as getting something to animate at all is the tricky part.

You can then worry about writing a vertex shader to animate your object, or use a second thread which with new systems is probably becoming preferable.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!