I hace two matrices - normal and inverted for each
object in scene.
suppose I have camera attached to an object.
How to make camera reflect objects rotations.
Currently I do it like that:
matrix, matrix, matrix
matrix, matrix, matrix);
but it works only for rotation around X axis
Please give me a hint.
If I got it right (you want to add some sort of 3rd person camera) then all you need is glLoadIdentity(); before drawing the model + some stuff to remove feeling that everything rotates about cameras axis.
No, I want to add 1st person camera to an airplane.
The idea I’ve found, but not yet implemented relating to spherical coordinations of a point seems not very elegant.