Results 1 to 7 of 7

Thread: gluLookAt

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2008
    Location
    Türkiye :)
    Posts
    7

    gluLookAt

    gluLookAt( GLdouble eyeX,
    GLdouble eyeY,
    GLdouble eyeZ,
    GLdouble centerX,
    GLdouble centerY,
    GLdouble centerZ,
    GLdouble upX,
    GLdouble upY,
    GLdouble upZ )



    can you explain me what "center" and "up" are? please don't use technical expressions because beginners don't understand that

    it is enough if you tell me how to look at a 3D object from exactly the top of it.(with angle of 90)


    thx

  2. #2
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: gluLookAt

    http://www.opengl.org/documentation/...lu/lookat.html

    center is the target of your camera, and eye is the center of the camera

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2008
    Location
    Türkiye :)
    Posts
    7

    Re: gluLookAt

    thx but i don't understand what "up vector" is : /

  4. #4
    Senior Member OpenGL Pro Zengar's Avatar
    Join Date
    Sep 2001
    Location
    Germany
    Posts
    1,931

    Re: gluLookAt

    Up vector is wgere the top of yur head looks at Imagine it liek this: when you have a camera, you can rotate it around it's view vector (the eye and the target point are the same!). The up vector explains this rotation. Usually you want the camera head to look "up".

  5. #5
    Junior Member Newbie
    Join Date
    Jun 2008
    Location
    Türkiye :)
    Posts
    7

    Re: gluLookAt

    hmm

    can we say that eye-up states the direction of our head and center is the actual place that we want to look?


    thank you very much if i understand correcty
    and if i don't, still thank you very much

  6. #6
    Senior Member OpenGL Pro dletozeun's Avatar
    Join Date
    Jan 2006
    Location
    FRANCE
    Posts
    1,367

    Re: gluLookAt

    SOrry I read too fast, I forgot the up vector...

    can we say that eye-up states the direction of our head and center is the actual place that we want to look?
    Yes, you can think that the up vector is the vertical rotation axis of your neck when you do a camera panning movement.

  7. #7
    Junior Member Newbie
    Join Date
    Jun 2008
    Location
    Türkiye :)
    Posts
    7

    Re: gluLookAt

    thx thx thx

Similar Threads

  1. gluLookAt
    By CoolBeanJ in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 03-27-2011, 11:19 PM
  2. how to use gluLookAt()
    By vamsee kanth in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-13-2004, 02:43 AM
  3. gluLookAt
    By littledevore in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-22-2001, 10:46 AM
  4. gluLookat , where to use it ?
    By cartilago in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 05-24-2001, 02:32 PM
  5. gluLookAt
    By Lord Chaos in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-06-2000, 06:50 AM

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