Interpolate two transformations - quarterions

Hi,

Some years ago Daniel Piker showed an example how to interpolate transformations matrices for fabrication layouts. Is that example still present somewhere or something similar? I tried to search gh forum without luck

Maybe @DanielPiker him and heā€™ll come hopping :kangaroo:

1 Like

Hello,

you need to convert from matrix(3x3) to quaternion, then use a ā€œslerpā€ function, to interpolate between two quaternions
and then convert back to matrix(3x3) again. This is just for rotation. For location simple use loc+(deltavector * t )
conversions can be found here:

http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToQuaternion/index.htm
http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToMatrix/index.htm
http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/slerp/

be aware that quaternions can be x,y,z,w or w,x,y,z, order. Do you know how get from a rotationmatrix(3x3) to a transformationmatrix(4x4)?

1 Like

See this reply:

1 Like

Thank you very much.