Results 1 to 2 of 2

Thread: The Basics of the Camera

  1. #1
    Member Contributor
    Join Date
    Jul 2001
    Location
    Camarillo, CA, USA
    Posts
    58

    The Basics of the Camera

    Would someone take some time and explain to me howthe camera works? I know enough to know that the camera is what we see, it is placed where we want to see...But lets say I want to program I first person environment: Would I be moving the whole world when I move (as I have heard) or just the camera?

    This should really have been called "First Person Help" , but anyway... Im just curious as to the smartest approach to a first person game...

    I wouldnt consider myself a newbie, so dont worry... =) I am relatively new to most of openGL though...

    Thanks!

    ~Jesse
    PROGRAMMERS SHALL RULE THE WORLD

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,595

    Re: The Basics of the Camera

    Hi !

    You cannot move the camera in OpenGL. it is fixed at 0,0,0. When you do transformations you transform all the objects that you render after the transformation.

    The gluLookAt() function is easy to use if you want to feel like you are moving the camera.

    Take a look at the OpenGL faq, this explains a lot of the details.

    Mikael

Similar Threads

  1. Basics
    By chanakya.sun in forum OpenCL
    Replies: 7
    Last Post: 08-24-2011, 04:09 PM
  2. FPS Camera Basics
    By harshad in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-30-2011, 12:56 PM
  3. BASICS
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 06-17-2003, 11:01 PM
  4. basics
    By ramym in forum OpenGL: General
    Replies: 1
    Last Post: 05-29-2003, 10:52 AM
  5. The very basics...
    By in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-09-2001, 09:43 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