Jump to content
  • Advertisement
Sign in to follow this  
KaiserJohan

Simplifying skinning transforms?

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

Correct me if I'm wrong but as I understand it the following is the bone transformation procedure:

R = current anim key rotation matrix
T = current anim key translation matrix
R1 = next anim key rotation matrix
T1 = next anim key translation matrix
G = transform matrix
G1 = parent transform matrix
I = inverse root matrix
O = bone offset matrix
F = final transform for bone

So:
G = interp(R, R1) * interp(T, T1);
F = I * G * G1 * O;

That is alot of matrix multiplications each frame. Is there anything that can be done to simplify and speed up the process?

 

Are there any matrices that can be "baked" / pre-transformed without causing artifacts during animation (interpolation) ?

Edited by KaiserJohan

Share this post


Link to post
Share on other sites
Advertisement
To speed up you could use quaternions instead rotation matrices, and vectors instead translation matrices.
It's often faster to transform vertices by quats instead matrices too (more arithmetics, less bandwidth), but you should profile.

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!