• Advertisement

Archived

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

Animation problem

This topic is 5240 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
Advertisement
Could you generate a new matrix for each frame, updating the angle of rotation for each one? (You''d apply the matrix to the original location of the point to generate its location for each frame)

Share this post


Link to post
Share on other sites

  • Advertisement