I’m trying to retrieve “the real world” coordinates when mouse is clicked in my 3d scene with gluUnProject and they are wrong…
1.I wonder if that my depth is 1500 and not 1 could be a problem?
(if yes how to fix it?)
2.My scene is rendered - “eye” and “look to” coordinates are changing all the time,so the same pixel can be 2 diffrent coordinates:
a)when z(depth) is greater and y(height) is 0
b)when z(depth) i smaller and y(height) > 0
Can gluUnProject deal with this properly?
3.My need is like this: I want to display in status bar the real world coordinates when user clicks mouse on the specific point on the screen ( but this action is not required , I mean application is not waiting for input, it is like an info feature)
Is gluUnProject standard solution for it?
What about using select or feedback mode (glRenderMode)?