Results 1 to 2 of 2

Thread: Little problem with gluUnProject

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

    Little problem with gluUnProject

    I finally got gluUnProject working, it works great, but there is yet a little problem about it. I calculate 3d position of place where i clicked, but when i move camera the position changes.
    I get the modelview matrix and stuff right after moving camera(glTranslatef and glRotatef) and calculate the position just when i click.

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

    Re: Little problem with gluUnProject

    Hi !

    I am not sure what the problem is, yes it does change when you change the camera, but that's expected, I mean you change the view when you move the camera.

    What you do need to look out for is the usual problem with unproject/project, the Z value is tricky to get it right.

    Mikael

Similar Threads

  1. problem using gluUnproject
    By abhijit in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 05-06-2005, 11:04 AM
  2. Problem with gluUnProject
    By Aquileo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 02-11-2004, 10:06 AM
  3. Little problem with gluUnProject
    By jirkamelich in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-28-2002, 12:25 PM
  4. problem with gluUnProject
    By jirkamelich in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 12-16-2002, 06:15 AM
  5. gluUnProject problem
    By nstod in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-26-2002, 12:42 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