camera position

First, I know that the camera (as if there is one) is always at 0,0,0 and that we move the objects in a scene, but

after a series of translate rotates etc how can I get my camera’s exact position wrt the world

I’m new so this might sound crazy. but if you mean that your modelview matrix and your projection matrix need to be equal to each other you can say

float yourMatrix[16];
glGetFloatv(GL_MODELVIEW_MATRIX, yourMatrix);

I think this is what you are talking about, it might not even work though . Hope it helps.

wait a second, thats nonsense. nevermind, don’t listen to me!

Get the modelview matrix, invert it, and throw (0,0,0,1) at it.
Matrix inversion routines are to be found in these forums (forae?). Search for my name.

(straying from the subject by a mile)i think forum is neuter gender so if i remeber my latin from high school correctly the plural is “fora”.

as if ya’ll care.