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
    Join Date
    Oct 2004
    Posts
    4,651
    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

Similar Threads

  1. 100% CPU usage
    By Daniel Harrison in forum OpenGL: Basic Coding
    Replies: 17
    Last Post: 07-26-2012, 01:37 AM
  2. CPU usage is about 100%
    By ehsan2004 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-10-2006, 11:41 AM
  3. CPU Usage
    By in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-06-2004, 07:15 AM
  4. 100% CPU Usage
    By Akash in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 11-25-2001, 11:55 PM
  5. cpu usage..
    By jonn in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 07-11-2000, 12:19 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