Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

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

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    Chennai, Tamil Nadu, India
    Posts
    4

    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.

  2. #2
    Intern Contributor
    Join Date
    Jun 2001
    Location
    Montmagny, france
    Posts
    91

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

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

    @+
    cyclone

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2001
    Location
    Chennai, Tamil Nadu, India
    Posts
    4

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

    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

  4. #4
    Junior Member Newbie
    Join Date
    Jul 2001
    Posts
    4

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

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •