Hi,

Since a while I'm interested in 3d graphics programming, but my aim is to learn how to make one's own 3d engine, I really want to understand the math behind it .

I've created a camera which works quite well, the only problem i have is how to obtain proper rotation of it. When i rotate it about a Z axis then X and Y rotations are following the global axises (not the rotated X Y axises of the camera). When I try to do it in the reverse order, then I get false result with Z axis.
My question is : how to rotate camera around its own coordinates, not the word coordinates?

I'll appreciate any help,
best regards , gorgh