Results 1 to 2 of 2

Thread: Pick up coordinates when Mouse clicked

  1. #1
    Member Contributor
    Join Date
    Apr 2002
    Posts
    52

    Pick up coordinates when Mouse clicked

    Hi,

    I would like pick up the coordinates where the user clicked with the mouse in a GLAnimCanvas... But this coordinates would not be the position in the window size but the position in my system of coordinates...

    Do you know how I can do that ??

    Thanks a lot
    Mat

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: Pick up coordinates when Mouse clicked

    Hi !

    The gluProject and gluUnproject functions convert between 2D and 3D coordinates

    Mikael

Similar Threads

  1. opengl->glut-> draw spheres where mouse pointer is clicked
    By pavankumarm in forum OpenGL: Basic Coding
    Replies: 7
    Last Post: 04-25-2017, 03:42 PM
  2. Draw a polygon when mouse is clicked, issue
    By ramy1989 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-10-2012, 05:39 AM
  3. rotate about the mouse clicked point
    By thinhare in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 08-14-2009, 05:35 AM
  4. Coordinates in 3D on Mouse clicked Object
    By Tscho in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-03-2009, 09:08 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