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 2 of 2

Thread: How to get the coordinate in OpenGL

  1. #1
    Junior Member Newbie
    Join Date
    Feb 2000
    Posts
    2

    How to get the coordinate in OpenGL

    Does anyone could help?
    I had to get the coordinate where the mouse pointed. I tried the gluUnProject function but didn't work. How can I get it?

  2. #2
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Italy
    Posts
    79

    Re: How to get the coordinate in OpenGL

    The fact is that if you point the mouse in the window, let's say at (xw, yw), by projecting in 3d space, you should get a line of infinite points, which is orthogonal to the viewing plane: I had the same problem and couldn't work out something good with the gluUnProject: I have no clear idea how to set up the matrix for this operation.
    --
    Paolo M.

Posting Permissions

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