-
Notifications
You must be signed in to change notification settings - Fork 208
Gyroscope support #92
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
Comments
Very nice suggestion indeed! I'm however afraid, that such hardware values are not yet available to Javascript in browsers (but I may as well be mistaken, please correct me if so). I will therefore label this ticket as unlikely and we will see what the future will bring in terms of browsers' accelerator APIs. However in a PhoneGap (or similar) situation, it should already be possible to bind the accelerometer to Reel control events like |
In fact, this info is already available to javascript in browsers. I used your reel plugin in here (http://www.adidas360.com/player-65.html) and take a look at the code and the page in iOS with gyroscope (iPad2 or iPhone 4/4s) |
Interesting 8) Thanks for making me aware of this! Well, feature it is then ;) |
…orientation"` event on `play` and triggers Reel's `orient` event with alpha, beta and gamma angles as arguments. #92
…Should receive a dedicated example later on. #92
…and flags `oriented` if functional, to disable animation, which would otherwise interfere with the orientation-based position. #92
Ok, so I've added Code is available in gyroscope branch for testing. However, this support is very preliminary and basic shall I say. More configuration is required to work well with non-looping panos and to enable the same for the vertical axis too. |
Merged into development branch awaiting release in version 1.3 |
…orientation"` event on `play` and triggers Reel's `orient` event with alpha, beta and gamma angles as arguments. #92
…Should receive a dedicated example later on. #92
…and flags `oriented` if functional, to disable animation, which would otherwise interfere with the orientation-based position. #92
Released today as part of v1.3.0 |
How about detecting gyroscope for natural rotation sliding?
The text was updated successfully, but these errors were encountered: