Jump to content
Drughi

Interpolating Transformation Matrix Non Linear

Recommended Posts

Just in case someone want's to do something similar. I've ended up just using the spline function. Instead of a matrix I've choose quaternions and the position vector wich gave me quite acurate results.

Edited by Drughi

Share this post


Link to post
Share on other sites

There's no reliable way to slerp matrices as far as I know, typically people will convert the rotation to quaternion then slerp.  You can then store the result as a matrix by converting from quaternion back to matrix.

 

This example shows a lerp of the translates, scales and slerp of rotations with the result converted back to matrix.

image (1).png

Edited by jkunz07
  • Like 3

Share this post


Link to post
Share on other sites

Thanks for your ideas. This is what I came up with in the end. I did only a rough interpolation and then used resample and subdivide to get adaptive and smooth samples.

interpolate_transforms.hiplc

output.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×