Sign in to follow this  
polyfrag

.ms3d skeletal problems

Recommended Posts

polyfrag    2502

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this