Closed evaristoc closed 4 years ago
@nicolocarpignoli
Tested outdoors, directly connected to provider (no wifi). Google Maps won't affect behaviour.
The following seems to be the implementation suggested for the existing project:
Are these references to be taken in consideration in order to work around a solution to this issue (in case more tests show it is actually an issue...)?:
Other relevant references:
My TESTS:
_computeCompassHeading
module at gps-camera
module); however the same reference already mentions the gimbal lock issue for that specific example; What about the other implementations recommended by the same reference?
look-controls
method of a-frame, which is based on THREE.js and quaternions in particular
Although I will still check some aspects of this issue, I am turning it into a Closed Issue.
Some aspects of my tests were already worked on in a different project. That project didn't solve the inaccuracies faced with the Location-Based AR.JS, despite of being an improved version. Going further with my tests might "not be like raining but pouring".
Describe the bug There is a chance for the current location-based implementation not to be universal. According to this reference, the orientation algorithm of some devices might be based on a frame of reference that is not absolute to Earth's North, but rather to the position of the device by the time the page opens (relative reference).
So far there is no evidence that the error is present and when. This issue is to explore that the current solution is generalizable.
Expected behavior
Screenshots Please check the aforementioned reference for more information.
To Reproduce
We can start by using the test suggested in the reference, checking the outcome, and then seeing if that might explain what it is observed from opening @nicolocarpignoli examples. A detailed procedure could be as following:
Test for Relative vs Absolute heading using the following link: http://www.grantholtes.com/compass.html (see the aforementioned reference for details) Take note of the result.
Whatever the result, test one of the examples below as given by @nicolocarpignoli at the original repository of the location-based component:
See if the expected result from activty 1 matches what it is seen from activty 2.
In case of results not being as expected by point 1 of EXPECTED BEHAVIOUR, please report? We would interested in the following: Smartphone (please complete the following information):
NOTE Based on this discussion: https://github.com/jeromeetienne/AR.js/issues/663#issuecomment-560033972, #663