I used a .js to avoid landscape view from mobile device. I edited a white full-screen image saying "this site is not thought to be viewed in landscape mode, please turn your device" to be shown each time I rotate my device from portrait to la...
I am currently building a small panoramic photo viewer which has an option to navigate the scene with a gyroscope.  I am taking the data from the deviceOrientation event and turning the euler angles into a rotation matrix, and then putting that throu...
I'm trying to smooth the data I'm getting from the deviceOrientation API to make a Google Cardboard application in the browser.   I'm piping the accelerometer data straight into the ThreeJs camera rotation but we're getting a lot of n...
Anyone with DeviceOrientationEvent experience and a phone/tablet handy?  Running the following code snippets on a gyroscope-having device, I notice gamma (rotating left/right along y-axis) gets large and unpredictable as beta approaches 90deg (device...
Anyone know why the device orientation detection is not working in Mozilla Firefox? And no I'm not using mozOrientation.It works just fine in Chrome.  Any help would be greatly appreciated!...
I am writing a mobile application for Windows Phone in HTML5. I want to detect the phone's rotation around the z-axis (I mean the rotation that is used for example in Doodle jump to make the character jump to the left or to the right).  In my app...
I'm trying to shift an image around based on the device orientation. But the values are very jumpy at rest, going between -1 to +2 with no movement, and I need a way to smooth it out a bit.   Is there an easy way to make this less jittery by aver...
I am trying to fire deviceorientation event of javascript but event is not firing in my android device.    please check out event documentation here    window.addEventListener('deviceorientation', function(event) {   console.log(event.alpha...
I'm trying to alert mobile device users on my site to use their devices in landscape mode. I have an alert pop up but it seems to be getting caught in an infinite loop. How would I go about stopping that loop after the user has clicked ok?  Here...
I'm using DeviceOrientationControls to attach to and rotate an Object in Three.js  By default, these controls will rotate the object on all three of the XYZ axes.  Is there any way to disable rotation on the X and Y axes, so that the object only...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.