Please help me with rotation of an object with mouse input :
I have a ‘Intermediate’ quaternion which goes from ‘Initial’ quat to ‘Final’ quat through SLERPing.
Intermediate = QuaternionSLERP(
ALPHA); // goes from 0.0 to 1.0
// ObjectAxis is a ‘Vector’,
// ObjectAngle is a ‘float’
Then, somewhere in DrawGL() loop :
// RTOD = (180.0/PI)
// draw a sphere
Can someone please let me know as to how I could apply the same ‘SLERP’ technique for rotating the object via MOUSE input in Win32 ?