Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked ๐ŸŽฎ Unity

animation keyframes

Started by DarkZoulz Apr 7, 2006 at 10:25 PM 1 replies 850+ views
Original Post
DarkZoulz
DarkZoulz
I am reading the keyframes from tiny's standard walk animation. I noticed that each keyframe just contains a transformation matrix. When dealing with animation I should do interpolations on the translation, scaling vectors and rotation quaternion. How do I get this from the transformation matrix supplied in the keyframes?
DXnut
DXnut
Use the D3DXMatrixDecompose function to extract the SRT values.
--------------------------Most of what I know came from Frank D. Luna's DirectX books
DarkZoulz
DarkZoulz
Ah, thanks a bunch! I knew there probably was some D3DX function for it.

Edit: And now my animation interpolation works like a charm, btw! =)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.