Question on Trackball


Im try do implement a Tracball in opengl.I get the Quaternion an making a 4x4 Matrix than i do:

glMultMatrixf( my 4x4 Matrix)

to Rotate the Camera around the Origin. This works fine.

So now my Problem how i get the Postion of the Camera and the up-Vektor to work with it?


Take a look at the trackball in the end of chapter 4 of Interactive Computer Graphics by Edward Angel. There’s a nice and simple explanation of how to build a trackball.