Thread: Get the camera location: OpenGL

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    Smile Get the camera location: OpenGL

    How can I retrive the camera location? (In X, Y, X.)

    Thanks, August.

  2. #2
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    I thought OpenGL doesn't really have a camera and that it was always (0,0,0)? I was under the impression that whenever you scale, rotate or do any other transformation it just modifies the current matrix stack, and "shifts" the coordinate system somewhere else. The "original" coordinate system can be reloaded with glLoadIdentity().

    So I think you'll have to keep track of any camera system variables in your own code.

    I'm not an OpenGL expert though. Maybe you better get Bubba's input on this one.

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Okay...

    So Bubba, what's your input?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. camera rotation matrix
    By Vick jr in forum Game Programming
    Replies: 5
    Last Post: 05-26-2009, 08:16 AM
  2. LNK2001 ERROR!!! need help
    By lifeafterdeath in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2008, 05:05 PM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 12:34 PM
  4. OpenGL camera errors..can't find 'em!?
    By psychopath in forum Game Programming
    Replies: 12
    Last Post: 04-22-2004, 06:17 PM
  5. Camera rotation/movement in 3D world
    By tegwin in forum Game Programming
    Replies: 11
    Last Post: 01-24-2003, 01:43 PM