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: What's problem with gluProject and gluUnProject

  1. #1
    Junior Member Newbie
    Join Date
    May 2005
    Location
    China
    Posts
    2

    What's problem with gluProject and gluUnProject

    Hi,

    I have a question about gluProject and gluUnProject under the windows xp system.

    This is the pesudo code snippet.
    --
    glMultMatrixd(...)
    CPoint pnt1(100, 100), pnt2;
    GLPoint glPnt;
    gluUnproject(pnt, glPnt);
    gluProject(glPnt, pnt2);
    --
    I found pnt2 is different with pnt1. Could you please tell me the reason?

    Thanks lot.
    I want to be a free bird.

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000
    Location
    Sweden
    Posts
    3,115

    Re: What's problem with gluProject and gluUnProject

    Neither gluProject not gluUnProject takes a CPoint and a GLPoint as parameters, so unless you have written your own versions of these functions, you better show us the code you're having problem with instead of this non-complete piece of pseudo-code.

Posting Permissions

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