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 4 of 4

Thread: Newbie with gluLookAt

  1. #1
    Intern Contributor
    Join Date
    Jun 2006
    Location
    Spain
    Posts
    81

    Newbie with gluLookAt

    Hi to all,

    im making some attempts with gluLookAt.

    I have read, the first 3 arguments is the place where im looking at. So if i have drawn something in the center of my space (without any translation operation, of course) and i set those 3 arguments to 0.0, i should see my object. But i dont see anything...

    NOTE: No problems to see my object if i compile my code without gluLookAT.

  2. #2
    Intern Contributor
    Join Date
    Jun 2006
    Location
    Spain
    Posts
    81

    Re: Newbie with gluLookAt

    ups...im sorry...

    the place where i look at are the 4th, the 5th and the 6th argument.

  3. #3
    Advanced Member Frequent Contributor plasmonster's Avatar
    Join Date
    Mar 2004
    Posts
    750

    Re: Newbie with gluLookAt

    Here's a great synopsis (note the caveat in the remarks section):
    http://pyopengl.sourceforge.net/docu...LookAt.3G.html

    Hope that helps.

  4. #4
    Intern Newbie
    Join Date
    Dec 2006
    Location
    China
    Posts
    30

    Re: Newbie with gluLookAt

    What about other parameters in your glLookAt()?
    by default, the object is drawing at orign and your view point is at orign too, so you will see nothing if calling glLookAt like this scenario:
    Code :
    glLookAt(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0)
    because the viewing point and your drawing are at the same plane
    MSN:douglas2008@hotmail.com

Posting Permissions

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