I got 3d vertices on screen that the user is supposed to be able to select with the mouse. Now they should click on a point and select it.
Ok. Actually I don’t know how to use gluUnproject, so I was hoping someone would know how to use it in my specific situation.
Here’s my situation:
I simply have these points projected, in 3d, and I want to know the 2d screen coordinates of these points as they are projected and see them on the screen. That way I simply compare the mouse cursor to the point.
I’m not yet fluent enough with GL and MS VC++ to start from scratch with a function like this, I could quickly get lost in any errors I make. Could somebody give me the most simple usage of the function? I know how to get the mouse coords.
This would be greaty appreciated.