Open gk1089 opened 8 years ago
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, fromRotationY
, and fromRotationZ
to generate the B
, C
, and D
matrices from the article.
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? https://github.com/AnalyticalGraphicsInc/cesium/issues/3256
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.