PDA

View Full Version : my camera method... opinions?



GameMaker
12-10-2002, 06:07 AM
I am just wondering if this is good or bad and what are the consequences if any...

I move my camera around the scene just like any other model so that I can specify it's matrix just like the other models. This makes it easy to position, rotate, etc.

Then, at the beginning of drawing, I take the inverse matrix of the camera matrix and load that, as in glLoadMatrix(myCameraMatrix.Inverse()).

Is this a common way to use the camera? I am thinking that it might be confusing because the stored camera matrix is actually the inverse camera matrix.

It makes it real easy to position the camera this way though.