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

Gyroscope support #92

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

Comments

Projects
None yet
2 participants
@arathael

arathael commented Jan 25, 2012

How about detecting gyroscope for natural rotation sliding?

@pisi

This comment has been minimized.

Show comment
Hide comment
@pisi

pisi Feb 2, 2012

Owner

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

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

This comment has been minimized.

Show comment
Hide comment
@arathael

arathael 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)

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

This comment has been minimized.

Show comment
Hide comment
@pisi

pisi Feb 3, 2012

Owner

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

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

Touch devices having `orientable` enabled bind to viewport's `"device…
…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

pisi added a commit that referenced this issue Oct 13, 2012

Same as `pan` event, the `orient` event is also synced to the ticker …
…and flags `oriented` if functional, to disable animation, which would otherwise interfere with the orientation-based position. #92
@pisi

This comment has been minimized.

Show comment
Hide comment
@pisi

pisi Oct 13, 2012

Owner

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.

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

This comment has been minimized.

Show comment
Hide comment
@pisi

pisi Feb 20, 2013

Owner

Merged into development branch awaiting release in version 1.3

Owner

pisi commented Feb 20, 2013

Merged into development branch awaiting release in version 1.3

@pisi pisi closed this Feb 20, 2013

pisi added a commit that referenced this issue Feb 20, 2013

Touch devices having `orientable` enabled bind to viewport's `"device…
…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

pisi added a commit that referenced this issue Feb 20, 2013

Same as `pan` event, the `orient` event is also synced to the ticker …
…and flags `oriented` if functional, to disable animation, which would otherwise interfere with the orientation-based position. #92
@pisi

This comment has been minimized.

Show comment
Hide comment
@pisi

pisi Nov 5, 2013

Owner

Released today as part of v1.3.0

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