I am working on a project for tracking the rotation on a phone “glued”/attached to a piece of cardboard. For this, I am using OSC outputs to try to mimic the rotation of the phone+cardboard inside TouchDesigner.
I’m using ZIG SIM on a Samsung phone and importing the X, Y, Z, W quaternions into TD using the OSC In CHOP. From there, I’m feeding the XYZW channels into the Angle CHOP with input set to Quaternion and output set to degrees.
But I get the Quaternion Gimbal Lock and I do not know how to solve it.
I saw a lot of projects using this technique, but I do not know how can I implement it in the project.
Any help is much appreciated!
What do you mean by getting quaternion gimbal lock? Quats can’t be gimbal locked to my knowledge, is the resulting Euler angles doing something weird that you can explain or show?
Is it correct in other orientations like screen facing you, top edge of the phone pointing up? Or is it incorrectly calibrated across all orientations?