Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: gluUnProject

  1. #1
    Junior Member Newbie
    Join Date
    May 2002


    hi, something wrong appends when i get the z value from a hit selection because the value is up than 1.0 and when i pass this value to the gluUnproject() method, of course the x, y, z coodinates of the scene are wrong??

    Is this pb coming from the z value returned?

  2. #2
    Intern Contributor
    Join Date
    Jul 2002
    Seri Kembangan, Selangor, Malaysia

    Re: gluUnProject

    Actually i still testing on this method..
    so.. i'm not sure my way is correct or not!!!
    but i can share it with u ...

    Try to set the far clipping plane to large value... and u will get a big volume on your projection....

    Try to put all the objects within the far and near clipping plane...and draw a line from near clipping plane to far clipping plane...

    Try to make an intersection within a line and the objects which are collide... then u will get the exact x, y ,z...

    [This message has been edited by cwc36 (edited 08-06-2002).]

Posting Permissions

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