View Full Version : Convert X,Y (Window) to X,Y,Z World Coordinates (OpenGL)

08-09-2002, 01:11 PM
How do i convert a windows coordinates (X,Y) to OpenGL coordinates (X,Y,Z)? I have heard about gluUnProject(..) but i'am not using C and i don't know how to get this function (file) for Delphi!

08-10-2002, 04:02 AM
The Opengl - Delphi site: http://koci.opengl.cz/angopengl.htm
has a delphi source / tutorial called >>Aiming - function 'glReadPixels'<<
I have used this to transfer the object coordinates to a statusbar, when the mouse is over an object.

Håber det hjælper dig http://www.opengl.org/discussion_boards/ubb/wink.gif