Hi,
We’re trying to build a web app in which we need to know the direction in which the device camera is pointing, across browser and devices(only phones). Is there a way that we could use three.js to do this? Or some other library that we could use? I tried standardized libraries(gyronorm.js), event.GetOrientationAbsolute(which doesnt work on FF) and some other approaches from SO, but no good. I’ll be very thankful for any pointers
three.js
is a 3D library and can’t help you with this task. Maybe this article gives you some insights . There is also a section about implementing an experimental HTML5 compass.
https://mobiforge.com/design-development/html5-mobile-web-device-orientation-events
Gone through this already, actually… thank you for the reply