Original Post
I was wondering, if I rotate my matrices one axis at a time, then multiply with the current matrix for each axis, will gimbal lock still be a problem ? Like this :
Or should I calculate a single matrix for all rotations, then load that one ?
MATRIX[0] = COSINE[muntor]; MATRIX[8] = -SINE[muntor]; MATRIX[10] = COSINE[muntor]; MATRIX[2] = SINE[muntor]; glLoadMatrixf(ptMATRIX); make_identity(); MATRIX[0] = COSINE[muntor]; MATRIX[1] = -SINE[muntor]; MATRIX[5] = COSINE[muntor]; MATRIX[4] = SINE[muntor]; glMultMatrixf(ptMATRIX); make_identity(); MATRIX[5] = COSINE[muntor]; MATRIX[6] = -SINE[muntor]; MATRIX[10] = COSINE[muntor]; MATRIX[9] = SINE[muntor]; glMultMatrixf(ptMATRIX);