Quote:>mouse). I am looking for info on how the movement of the
>mouse, during a mouse drag, relates to the projection matrices
>such that the user gets a smooth and intuitive pan, zoom, or
>rotate.
Well, if you wanted mouse movement to map to rotation, then you'll
probably want left and right mouse movement to map to angles of rotation
about the y-axis. You'll probably also want up and down mouse movement to
map to angles of rotation about the x-axis. These angles would comprise
your modelview matrix.
One way to "zoom" is to simply translate the scene closer to you. This
will not effect projection or field of view, so it's not really zooming -
so I'm not sure it's really what you're loking for. This translation
amount would also effect your modelview matrix. If you really want to
zoom and change the projection, you'll need to affect the projection
matrix.
For panning, again, you would just map left and right, up and down mouse
movements to x and y translations. Then you would affect your modelview
matrix with these new translations.
Steve