Hi all.
I’m having troubles with my picking stuff.
I’ve decided to use the “ray method” instead of using opengl picking functions (names, colors…).
What I want is to get the mouse’s position thanks to a Listerner and then to use GluUnProject() so that I get the 3D position (in my scene) of the mouse click (on the screen).
The goal is to find out a straight line and then to figure out the position of the intersection of this straight line with a plane (z=0).
My problems are:
- Which point(s) (mouse click, camera…?) do I have to use with GluUnProject?
- How to use GluUnProject()
Sorry for being such a newbie.
Thanks