Solution to the gimbal lock!!!

BlitzMax Modules Forums/MiniB3D/Solution to the gimbal lock!!!

Well it's hard to see just by eye that the rotation is incorrect, usually all you'll see is that indeed the rotations add up.
But they don't add as they should. You'd need to compare with rotations done with equivalent matrixes, all multiplied.
Also I suggest you search google for Pitch/Yaw/Roll or "euler Angles", you should find a lot of information on the problem.

But again, maybe I overlooked something. The last time I did 3D was literally in another life.

And concerning the gimbal lock per se, you'll find even more information. Needless to say, lots of smart people have studied the problem, so rest assured this was not an imaginary problem that can be solved with a simple modulo.