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
    Member Contributor
    Join Date
    Feb 2000
    Location
    Italy
    Posts
    77

    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.

Similar Threads

  1. Replies: 0
    Last Post: 03-03-2014, 06:44 PM
  2. How to transform a screen coordinate to OpenGL coordinate
    By Caesirekin in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 12-11-2013, 09:29 AM
  3. From Screen Coordinate to OpenGL coordinate
    By apapaxionga in forum OpenGL: Advanced Coding
    Replies: 8
    Last Post: 10-12-2011, 12:39 PM
  4. Transform from window coordinate to OpenGL coordinate
    By Debugger in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-27-2007, 07:24 PM
  5. mapping windows client coordinate to object coordinate
    By sohail in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-19-2003, 07:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean