PDA

View Full Version : picking and rotations



03-24-2004, 03:10 PM
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?

endash
03-24-2004, 05:51 PM
To help debug, try using glGetFloatv to get the modelview matrix.

03-24-2004, 10:51 PM
Thanks!

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.