3d geometry: how to interpolate a matrix

前端 未结 6 1856
别跟我提以往
别跟我提以往 2020-12-14 09:25

i store the position of an object in 3d space in a 4by4 transformation matrix. now in order to move the object from the position stored in matrix A to the position stored in

6条回答
  •  隐瞒了意图╮
    2020-12-14 09:34

    Just interpolating the matrix values likely won't give you what you want unless you're only doing very simple transformations (for example, translation or scaling).

    I think there are methods that decompose a matrix into translation, rotation, scaling, etc. and then you could build new matrices that interpolate based on those parameters.

    You could also just do a before and after transformation, and then lerp the verts of the object. This may also not give you the results you're after.

提交回复
热议问题