Skip to content

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

Closed
arathael opened this issue Jan 25, 2012 · 6 comments
Closed

Gyroscope support #92

arathael opened this issue Jan 25, 2012 · 6 comments

Comments

@arathael
Copy link

How about detecting gyroscope for natural rotation sliding?

@pisi
Copy link
Owner

pisi commented Feb 2, 2012

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 "frameChange".

@arathael
Copy link
Author

arathael commented Feb 3, 2012

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)

@ghost ghost assigned pisi Feb 3, 2012
@pisi
Copy link
Owner

pisi commented Feb 3, 2012

Interesting 8) Thanks for making me aware of this! Well, feature it is then ;)

pisi added a commit that referenced this issue Oct 13, 2012
pisi added a commit that referenced this issue Oct 13, 2012
…orientation"` event on `play` and triggers Reel's `orient` event with alpha, beta and gamma angles as arguments. #92
pisi added a commit that referenced this issue Oct 13, 2012
…Should receive a dedicated example later on. #92
pisi added a commit that referenced this issue Oct 13, 2012
…and flags `oriented` if functional, to disable animation, which would otherwise interfere with the orientation-based position. #92
@pisi
Copy link
Owner

pisi commented Oct 13, 2012

Ok, so I've added orientable option, which is disabled (false) by default. When enabled (true) and on a compatible device, it will tie the alpha angle (compass) to Reel's fraction value.

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.

pisi added a commit that referenced this issue Oct 13, 2012
@pisi
Copy link
Owner

pisi commented Feb 20, 2013

Merged into development branch awaiting release in version 1.3

@pisi pisi closed this as completed Feb 20, 2013
pisi added a commit that referenced this issue Feb 20, 2013
pisi added a commit that referenced this issue Feb 20, 2013
…orientation"` event on `play` and triggers Reel's `orient` event with alpha, beta and gamma angles as arguments. #92
pisi added a commit that referenced this issue Feb 20, 2013
…Should receive a dedicated example later on. #92
pisi added a commit that referenced this issue Feb 20, 2013
…and flags `oriented` if functional, to disable animation, which would otherwise interfere with the orientation-based position. #92
pisi added a commit that referenced this issue Feb 20, 2013
@pisi
Copy link
Owner

pisi commented Nov 5, 2013

Released today as part of v1.3.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants