Jump to content
  • Advertisement
Sign in to follow this  

Managed Direct3D Bone Animation

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

Greetings everyone, This may be a silly question. I don't currently have my project available so I can not test things at the moment, but I'm trying to do some planning and am stuck at this question. For awhile now I've been working on my mesh viewer which supports attachments and swapable skinned mesh parts and now I'm about to expand it into a game. The problem which I have run into, in my mind, is that my current demo only has one animated entity at any time. If I were to make a game it's quite obvious to me that you would only need one copy of each mesh type for any amount of items that use that mesh. All human entities for example would have pointers to the human mesh skin. However, each human entity would need it's own instances of the AnimationController and the frame skeletal hierarchy. Obviously, different entities will be using different animations at different times, and their frame position matrices will be different. So, when I load up an X file I get a MeshContainer with the Mesh, SkinInfo, BoneCombinationTable, AnimationController, and frame skeleton. Each mesh that wants to use this MeshContainer only needs pointers to the Mesh, SkinInfo, and BoneCombinationTable, but needs it's own instances of the AnimationController and frame skeleton right? And if so... how do you copy an AnimationController and frame skeleton (Which is just a parent->child setup of frames) and have that AnimationController set to update the new frame skeleton when you call AnimationController.AdvanceTime(...)? Part B: Once the above is solved, then I'd like a little more info on the AnimationController. If I _DO_ make a copy of it for every entity of that type, I don't need to copy the animation data, just the current animation settings. Would the copy have taken that into account? Or if there are 100 people on screen do I have 100 copies of all the "Human_Run" animation? This might not even be an issue, depending on how the above is solved. Thanks,

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!