How can I retrive the camera location? (In X, Y, X.)
Thanks, August.
How can I retrive the camera location? (In X, Y, X.)
Thanks, August.
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.