Qt3D Z Axis Flipping Seemingly Randomly
-
I'm not able to share images of what I'm working on, however, I will attempt describe the issue as best I can.
I am writing a project based off of the
simple-cppexample for Qt3D. I am utilizing the camera and orbital camera controller as defined in that project. Additionally, at the start of the program, I am drawing the axes (X,Y,Z) in different colors. Throughout testing, have found that the Z-Axis flips at what appears to be random times, but also appears somehow related to the motion of the camera controller.At first, I thought I was going crazy. Rotation matrices and quaternions meant to produce a certain rotation would seem fine, then at some point they would reverse. QText2DEntity(ies) that were on one side of an object would pop up on the other side, and sure enough the line representing the Z axis would be going in the opposite direction.
My guess is that I'm misunderstanding how certain rotations or transforms may impact the global X/Y/Z axes, but perhaps there's a simpler solution to this for which I'm simply unaware of the terminology. Any help would be greatly appreciated.