Results 1 to 3 of 3

Thread: transformations

  1. #1

    transformations

    Is it possible to truly move the camera in opengl? It seems to me its
    only possible to move the world around the camera to simulate cmera
    moving effects. If it is possible to transform the camera, how? All my
    transformations only effect my models. I read that glulookat just
    encapsulates model transformations to make it "look" like the camera is
    moving. This has been in the back of my mind for awhile and has not
    hindered my programming but i would like to know once and for all.

    Frank

    P.S. by move i mean at run time move the camera in relation to user input.

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Feb 2000
    Posts
    569

    Re: transformations

    There is no camera. But you can think of it that way, or you can think of it like moving objects from a reference point, and you actually get the same results.

    Just use the one that makes you understand how you can place objects.

  3. #3

    Re: transformations

    Originally posted by eckiller:
    P.S. by move i mean at run time move the camera in relation to user input.
    Well yeah, there are different ways to implement a camera. I personally think that a camera view is always just an orientation (including rolling) with some field of vision.
    With glLookAt you'll do just fine. If you need a first-person camera, just keep track of position and target and alter them with the user input. Not too hard. If the player turns, rotate target using position as origin. If he walks forward add the direction vector multiplied by some constant to position and target. And so on. Also you can use camera fov tricks with gluPerspective.

Similar Threads

  1. Hardware Transformations vs Software Transformations
    By killersquirrelz in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 12-05-2004, 04:43 AM
  2. Transformations
    By Balu in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 11-03-2003, 09:31 PM
  3. transformations...
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-05-2002, 10:43 PM
  4. Help on transformations
    By KurtCob in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 09-12-2000, 06:46 AM
  5. Replies: 1
    Last Post: 08-30-2000, 10:54 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