Posted 03 October 1999 - 02:10 PM
(a while later)
[This message has been edited by mutex (edited October 11, 1999).]
Does anyone know how to determine what 3d object was clicked on from X and Y screen coordinates? I am using Direct3D. I know that Genesis3D has a function that does it (geCamera_ScreenPointToWorld), which "takes a screen X and Y pair, and a camera and generates a vector pointing in the direction from the camera position to the screen point." Problem is, I don't understand what it's doing and I sorta need this info quick. I need to know how the vector is computed, and how to determine if a plane intersects the vector. Thanks in advance...