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: gluUnProject returns wrong values

  1. #1
    Junior Member Newbie
    Join Date
    Apr 2004
    Posts
    1

    gluUnProject returns wrong values

    Hi,

    I'm using gluUnProject to convert Screen coordinates to OpenGL. For most of the time it works fine but sometimes the function returns wrong value.

    For example I move mouse around the screen and Z value are Ok until the cross -120. Then the Z value is suddenly -630. The X value is OK.

    I would be grateful for any tip what can cause this problem.

    Regards.

  2. #2
    Junior Member Regular Contributor
    Join Date
    Jan 2004
    Location
    Los Angeles, CA, USA
    Posts
    216

    Re: gluUnProject returns wrong values

    Could this be an issue of Z precision in the depth buffer. (I'm honestly not sure, but I feel like there might be something like that going on...)

Posting Permissions

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