Jump to content

Best way to use lerp on a matrix


photo

Recommended Posts

Posted

the lerp (linear interpolation) function works on floats, all varieties of vec and quats but not for mat4.

What is the best way to interpolate a matrix?

Posted

the lerp (linear interpolation) function works on floats, all varieties of vec and quats but not for mat4.

What is the best way to interpolate a matrix?

 

You could try decomposing the transformations into position and orientation.

 

Lerp them separately, then re-compose the transform.

Posted

lerp will accept mat4 and dmat4.

not in Unigine SDK 2011-05-30 (just tested)... have things changed since?

×
×
  • Create New...