(2017-10-23, 4:43)Michael Horvath Wrote: One more question: does the calcRotationMatrix function rotate about the camera's axes or the universe's axes? It's supposed to rotate around the camera's x axis and the universe's y axis, according to the link I provided. Or does the function already take this into account?
Neither. The function creates a matrix that when applied to the matrix stack performs those rotations. It was written for latitude/longitude mode, where it is used to rotate the model about its center, but the matrix itself simply rotates about 0,0,0. For use rotating the model, my code first translates to the center, then applies the rotation.