How to Capture the x,y,z Co-ordinates through mouse pointer

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.

Murali.B.

With GLUT, you can easily have the x,y coords via glutMouseFunc, and found the z value from the depth buffer.

@+
cyclone

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.

thanks

Murali.B

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).]