PDA

View Full Version : Converting world to window coords and vice versa



Corillian
03-05-2001, 02:18 PM
I am trying to write a GUI for my 3d engine. I need to know how to convert the world XY coordinates into a left-handed screen position. Does anyone know how to do this or if there is a better way to know if the mouse cursor is over a button? Thanks,

-Corillian

RandyU
03-05-2001, 07:48 PM
gluUnProject/gluProject
Another way is using selection buffer.