Results 1 to 2 of 2

Thread: glLookAt, the up vector

  1. #1
    Guest

    glLookAt, the up vector

    How exactly does the up vector affect the camera? I know it tilts it to the side but is that all it does?

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

    Re: glLookAt, the up vector

    Yes, that's all it does. A direction only (which you get form the eye and target position) is not enough to get a unique transformation. You need something to determine the roll about the direction vector, and that's what the up vector is for.

Similar Threads

  1. glLookat, you see what?
    By reader1 in forum OpenGL: Basic Coding
    Replies: 14
    Last Post: 04-29-2015, 08:20 PM
  2. glLookat
    By joker40 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-11-2011, 08:44 PM
  3. gllookat() not working!
    By in forum OpenGL: Basic Coding
    Replies: 12
    Last Post: 12-17-2001, 03:36 AM
  4. Fog + glLookAt() ??
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-23-2001, 06:57 PM
  5. about glLookAt
    By lxb in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-27-2000, 06:52 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