View Full Version : How to Capture the x,y,z Co-ordinates through mouse pointer

06-26-2001, 04:40 AM
I am a delphi developer. I am working on the OpenGl (beginner) functionality. Please tell me How to capture the x y z Co-ordinates values through the mouse pointer. We draw the scene from the xyz Asci Data File. We are unable to capture the points marked through the mouse pointer.

We will be grateful to this kind of help.


06-28-2001, 10:10 AM
With GLUT, you can easily have the x,y coords via glutMouseFunc, and found the z value from the depth buffer.


07-04-2001, 09:24 PM
Thank for your help,
I donot know about this GLUT, please clear whether it is a class or delphi Unit File.

If it is 3rd Party Class File. then please tell me where to download it.



07-05-2001, 09:36 PM
glut stands for openGL Utility Toolkit. its a windows programing API developed by Silicon Graphics meant to work with openGL. u can get the most up-to-date version here: http://www.xmission.com/~nate/opengl.html , along with information about openGL. Since u said ur new to openGL heres another great openGL sight: http://nehe.gamedev.net

[This message has been edited by ChrisS (edited 07-05-2001).]

[This message has been edited by ChrisS (edited 07-05-2001).]