I've some troubles with my camera class.
I use quaternion to performe rotation (interactive rotation on unit
sphere with mouse).
But when I translate scene, the rotation seems occur around old center
of scene and not the new center (translated).
double dist = Distance();
// Init matrix (unity)
// Apply translation of camera
// Apply rotation of camera
// Apply translation from center of model
// Compute inverse matrix
m_InvTransform = Invert(m_Transform);
// Model Matrix
The question is quite simple: how to perform the rotation around the
new center (translated) ?
Of course I tried to change order of operation. But nothing seems to
Any idea ?
||10/28/2003 9:16:02 AM