FAO: Mark, rendertweening

BlitzMax Forums/BlitzMax Programming/FAO: Mark, rendertweening

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm pretty sure he accumulates all the matrix transforms. As for tweening, I'm going to guess the best way would be to split the start/end matrices for each entity into start/end quaternions and translation vectors. Then the quaternions are interpolated with SLERP, and the translation vectors are intterpolated with linear interpolation. Finally, the quaternions and translation vectors are converted into matrices. Basically just convert the quat to a matrix, and do a raw memory copy from the vector to the proper location inside the matrix if you're using opengl matrices.