Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


Matrix Shenanigans and Advanced Animation

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

Hello, I was wondering if anyone could help me. I am writing an animtion system for my game Parp! using Jim Adams'' Advanced Animation. All is well I have one up and running. I am now creating a system to blend animations (from different .x files) together ie a run into a walk etc etc. This is all working too...so what''s my problem? I have uploaded a demo of my problem here http:\\www.jeremypardon.com\parp\downloads\animsystem.zip You''ll see when you run the exe two bones animating. Animation 1 (frame.x) is the bones bending like a flexing arm, Animation 2 (frame2.x) is the bones in a static pose. The code plays each anim for ten seconds before starting the blend into the other anim. Here''s the problem...you''ll notice during the blend that the second bone appears to scale or scew slightly until the blend has finished. I don''t understand why. All I am doing is calculating the matrix for the bone and multiplying it by its blendFactor then adding the matrix from the second anim which has also been multiplied by the blendFactor for that anim ie (blendFactor1 * Mat1) + (blendFactor2 * Mat2). That''s it. My understanding of matricies isn''t brilliant but I can''t see why this would happen? Any help or pointers in the right direction would be much appreciated. Jez

Share this post

Link to post
Share on other sites

  • 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!