Get the camera location: OpenGL

This is a discussion on Get the camera location: OpenGL within the Windows Programming forums, part of the Platform Specific Boards category; How can I retrive the camera location? (In X, Y, X.) Thanks, August....

  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
    Even death may die... Dante Shamest's Avatar
    Join Date
    Apr 2003
    Location
    Malaysia
    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, 09:16 AM
  2. LNK2001 ERROR!!! need help
    By lifeafterdeath in forum C++ Programming
    Replies: 7
    Last Post: 05-27-2008, 06:05 PM
  3. OpenGL Window
    By Morgul in forum Game Programming
    Replies: 1
    Last Post: 05-15-2005, 01:34 PM
  4. OpenGL camera errors..can't find 'em!?
    By psychopath in forum Game Programming
    Replies: 12
    Last Post: 04-22-2004, 07: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21