I have set up a camera where all I do is change the position, view, and up-vector coordinates of a camera, and the change the view using glLookAt. Well, when i run glUnProject from where the mouse clicks on the window, it returns the incorrect 3d coordiantes in relation to the window space coordinates that the mouse is actually at. Does anyone have any idea what I may be doing wrong with the amount of info I’m giving? If you need more info, I can give it, but I don’t know how much you need. ANY feedback would be greatly appreciated.
There has been a lot (and I do mean a lot) of posts recently to do with gluUnproject. If you haven’t done a search yet, Do one for the last five or so weeks for “gluUnproject”, “Selection” or “Picking” and read what they have said. Then if you still have a problem, post your picking code and let’s see what we can make of it.