Original Post
I was wondering if anyone could help me with some SIMPLE object picking in OpenGL... I''ve read the tutorials out there (NeHe, DigiBen, etc.) about it, and it all seems over-complicated... At least for my purposes. So i was hoping someone could help me - I''d hate to do all that stuff when I could possibly manage with something much more simple.
It''s a 2D OGL game, but it is NOT in Ortho Mode (there is Zooming In/Out, and I''m letting OpenGL handle the size/perspective changes and stuff). ANYWAY, is there some way I could do a simple X/Y Coordinate Picking check for specific objects if I know the objects'' Z distance away, thier difference in X and Y from the Camera''s X and Y position and the Projection Matrix values? I mean... there''s GOT to be a way, but I''m not quite sure how I''d utilize it.
For example, maybe by comparing the X/Y of the mouse on screen to the Screen Resolution and using that with the projection angle of my projection matrix I could do some trig to figure out if an object was selected? Eh, I''m confused tho - thanks for any help you can provide.