picking and rotations

Okay this problem doesn’t make any sense and it’s really bothering me.

I am using the same function while in both selection mode and render mode, so I know all the transformations should be registered when in selection mode, but they aren’t. Translations work fine and I am able to select object perfectly, but as soon as I try to use glRotate it no longer registers any hits (unless the rotated angle is about less than 0.01).

This makes no sense.

Any suggestions?

To help debug, try using glGetFloatv to get the modelview matrix.


For some reason it wouldn’t work because I had the “camera” initialize with gluLookAt at a position that wasn’t (0,0,0). But now it works. Thanks again.