Jump to content
  • Advertisement
Sign in to follow this  
polyfrag

.ms3d skeletal problems

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

Here's how the mesh looks like in MilkShape:

 

aam000.jpg

 

Here's how the keyframe looks like:

 

aam001.jpg

 

Here's how it looks in my game:

 

aam002.jpg

 

Does anybody know why the hand vertices aren't getting transformed by the rotation matrices?

 

Relevant source code:

 

https://github.com/polyf/battlecomp/blob/master/common/draw/ms3d.cpp

https://github.com/polyf/battlecomp/blob/master/common/draw/ms3d.h

https://github.com/polyf/battlecomp/blob/master/common/math/matrix.cpp

https://github.com/polyf/battlecomp/blob/master/common/math/matrix.h

https://github.com/polyf/battlecomp/blob/master/common/math/vec3f.cpp

https://github.com/polyf/battlecomp/blob/master/common/math/vec3f.h

 

[edit]

 

I figured it out. Since the hand bones didn't have any keyframes, I was setting the absolute mesh matrix instead of using the parent matrix multiplied by the relative hand matrix.

Edited by polyfrag

Share this post


Link to post
Share on other sites
Advertisement
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!