Jump to content
  • Advertisement


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


Animation trouble

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

I''m trying to implement soft skinning to animate characters with directx. Suppose that this is my coordinate system, p0 = (10,0) the point that i want to manipulate. | | | | --------|---p0--- | | | | I want to rotate p0 around the Z axis and the point (5,0) by 90 degrees, so at the end of the trasformation p0 will be at (5,5) To do that i build a matrix that translate back by (-5,0), rotate by 90 degrees, and then retranslate by (5,0) This is my matrix M0 1 0 ) (1 0 0 ) (5 -5 1 ) Now, if i want to interpolate beetween this matrix and the identity matrix to obtain a smoothed animation, how can i do ? an example code should be very appreciate !

Share this post

Link to post
Share on other sites
lerp and slerp do interpolations of translation and rotation matricies, respectively, see:


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!