If I have some code that looks like this:
glPushMatrix();
glRotated(-roll,0,0,1);
glRotated(-pitch,??,??,??);
glRotated(-yaw,??,??,??);
glTranslated(-dx-eyex,-dy-eyey,-dz-eyez);
glPushMatrix();
do some object rotates here
drawSomeComplexObject();
glPopMatrix();
glPopMatrix();
and I am trying to fly my eyepoint where once I roll,the axes still are in the same position(y up,x l and r, z out of screen) and without using gluLookAt or quaternions, what should I fill in for the question marks. I have been told to use some combination of trig functions, but I don’t know which ones and of what order.
Can anyone help?