[Algorithms] Keyframe data
Brought to you by:
vexxed72
|
From: Dirk G. <di...@di...> - 2002-11-21 13:02:35
|
Hi, I have imported a skinned mesh out of a x-file into my application. The keyframe data is split into three parts: Vector3D Scale; Vector3D Translation; Quaternion Rotation; Given an arbitrary time t. How do I interpolate the keyframe data? My guess is to SLERP the rotation part and to LERP the scale and the translation parts. Finally, how can create a matrix out of this information? Is it simply converting the interpolated quaternion back to a matrix and then inserting the interpolated translation? For the scale part I have only a very unsure guess. Do I have to add the interpolated scale value to the elemts of the trace of the matrix? Or will this work: Build a scale-, translation-, and rotaionmatrix out of the interpolated data and then multiply the results? But in which order? Hope this is not Off Topic!! Kind regards Dirk |