Results 1 to 4 of 4

Thread: about glLookAt

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2000
    Location
    Montreal
    Posts
    1

    about glLookAt

    Could anyone be so kind to specify the way to find the equivalent commands to glLookAt(1.0,1.0,1.0,1.0,0.0,1.0,1.0,0.0,1.0)?
    Thank you for your help!
    Chris

  2. #2
    Senior Member OpenGL Guru zed's Avatar
    Join Date
    Nov 2010
    Posts
    2,466

    Re: about glLookAt

    check mesa's source code prolly www.mesa.org or someit like that

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

    Re: about glLookAt


  4. #4
    Senior Member Regular Contributor
    Join Date
    Sep 2000
    Location
    Austin, TX, USA
    Posts
    142

    Re: about glLookAt

    I assume you mean the gluLookAt() function.

    The first three coordinates are the position of the eye in the world. The second three coordinates are the center which the eye is looking at in the world. The final three coordinates are the up vector. Like so:

    gluLookAt(0.0, 10.0, 10.0,
    0.0, 0.0, 0.0,
    0.0, 1.0, 0.0);

    This would position the camera to a point at 0x, 10y, 10z and be looking "down" at the origin of the scene (0x, 0y, 0z), and be situated so that positive along the y axis (0x, 1y, 0z) was the "up" direction.

    Hope that helps. By the way, bookmark this page for any questions about function specifics. I find it very helpful. http://www.iro.umontreal.ca/~dift3730/docs/GL/

    Regards,

    Glossifah


    [This message has been edited by Glossifah (edited 11-27-2000).]

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. Understanding glLookAt
    By IssamTP in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 12-05-2014, 04:54 PM
  3. glLookAt problem
    By donmitz in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 01-06-2013, 12:46 PM
  4. glLookat
    By joker40 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 04-11-2011, 08:44 PM
  5. Fog + glLookAt() ??
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-23-2001, 06:57 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