PDA

View Full Version : Selection(?)



Tokage
05-25-2003, 10:09 AM
Is there a way to find the relationship between screen coordinates and world coordinates without doing complex time-consuming trig? And if "selection" isn't this, what is it?

Leyder Dylan
05-25-2003, 10:58 AM
Simply, you click and you select an object.

Tokage
05-25-2003, 01:10 PM
I mean how do you do it in code...

shinpaughp
05-25-2003, 02:31 PM
Look here http://www.opengl.org/developers/faqs/technical/selection.htm

Tokage
05-25-2003, 03:08 PM
Heh, do you have anything a little more idiot-friendly? There are topics in there that I don't think I've learned about yet. Should I just forget about it then?

shinpaughp
05-25-2003, 03:22 PM
Try http://nehe.gamedev.net - they have a picking tutorial... not sure of the tut number. Also, http://www.gametutorials.com/Tutorials/opengl/OpenGL_Pg3.htm under Object Selection

[This message has been edited by shinpaughp (edited 05-25-2003).]

jmikhael
05-27-2003, 10:59 AM
If you just want to transform screen coordinates to world coordinates and vise versa, you should look into gluProject and gluUnproject.