Results 1 to 5 of 5

Thread: where exactly did i click ?

  1. #1
    Member Contributor
    Join Date
    Nov 2002
    Location
    Oirsbeek,Holland
    Posts
    69

    where exactly did i click ?

    does somebody know, how can i get exact number (axe x,y,z) where did i click ?

  2. #2
    Junior Member Newbie
    Join Date
    Sep 2002
    Location
    Starkville,Mississippi,USA
    Posts
    20

    Re: where exactly did i click ?

    There is a method by which you can restore the screen space x,y coordinates

    gluUnProject maps the specified window coordinates into object coordinates
    using modelMatrix, projMatrix, and viewport. The result is stored in objx,
    objy, and objz. A return value of GL_TRUE indicates success, and GL_FALSE
    indicates failure.

    I tried this but i have not been able to get it to work so did all my transformation math myself and used screen space coordinates to retrive my x,y,z values.

    If anyone has been able to make gluUnproject work do post a code sample in here for reference.

    Thanks
    Gopi
    Dont argue with fools, they bring you down to their level and beat you with experience.

  3. #3
    Member Contributor
    Join Date
    Nov 2002
    Location
    Oirsbeek,Holland
    Posts
    69

    Re: where exactly did i click ?

    so if zou would got it, so please write it here, thank you very much

  4. #4
    Senior Member Regular Contributor
    Join Date
    Nov 2002
    Location
    Sofia,None,Bulgaria
    Posts
    107

    Re: where exactly did i click ?

    Well there is a full sample about that at www.gametutorials.com.If you don't understand it write me a main at Louciersucks@yahoo.com and i'll explain you everything about the pick matrix.
    The pain is coming...THIS SUMMER!

  5. #5
    Member Contributor
    Join Date
    Nov 2002
    Location
    Oirsbeek,Holland
    Posts
    69

    Re: where exactly did i click ?

    I haven't found. Si i tried to write you a mail, but your mail doesn't exist, can you write it one more time ?

Similar Threads

  1. Mouse Click to 3d
    By uniQQQ in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-28-2016, 06:23 AM
  2. 3d coordinates from 2D click?
    By Oceansoul in forum OpenGL ES
    Replies: 0
    Last Post: 07-02-2010, 01:38 AM
  3. Double click
    By Felipe Ruiz in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-09-2010, 05:26 AM
  4. r-click menu in c#
    By yamaeda in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-10-2005, 01:14 PM
  5. where did i click?
    By JernejL in forum OpenGL: General
    Replies: 4
    Last Post: 02-24-2005, 12:01 AM

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