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

Thread: gluLookAt() usage

  1. #1
    Newbie Newbie
    Join Date
    Jan 2014
    Posts
    3

    gluLookAt() usage

    Hello, I need some help with the gluLookAt(); usage. I read a lot but I didn't find any simple example to understand how to use it so I would like to ask for one here. I understood that the default value of it is (0, 0, 0, 0, 0,-1, 0, 1, 0); and let's say that I want to change the point of view to be farther behind so the object would look smaller. This is the first example I would like to understand if I have other questions I will ask them later.
    Thank you.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,124
    Quote Originally Posted by hbkmad View Post
    Hello, I need some help with the gluLookAt(); usage. ... the default value of it is (0, 0, 0, 0, 0,-1, 0, 1, 0); and let's say that I want to change the point of view to be farther behind so the object would look smaller.
    With each triplet of values, you specify: 1) where are you, 2) which direction are you looking, and 3) which direction is up (all in world space). So change the first 3 values to some other world-space position

Posting Permissions

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