-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device orientation not behaving as expected #4135
Comments
My problem is simply that the VR mode-code is not working as expected. The code you have posted is about getting Roll, Pitch, Direction information from quaternion information, which is related but not exactly what I am looking for. What I need is to understand how I can relate quaternion information to device orientation information (Alpha, Beta, Gamma) of an Android device. |
@gk1089, maybe check out the wolfram mathworld article on Euler Angles. You can use Matrix3.fromRotationX, Quaternion.fromRotationMatrix can make a quaternion from your resulting rotation matrix. |
From my pull request, it seems, you should map:
see here |
@bagnell do you have any insights here? |
Does the issue discussed in the following link have any relation to it? |
I have been trying to implement the Cardboard sample code and am not getting the results as expected. I modified the code so that the Balloon were not visible (file attached)
Cardboard2.txt
Issues that I noticed are:
I understand that this is still a nascent area for Cesium and I am willing to learn and implement it properly. Please nudge me in the right direction.
The text was updated successfully, but these errors were encountered: