Skip to content
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

Add Recenter button #32

Merged
merged 1 commit into from Feb 19, 2016
Merged

Add Recenter button #32

merged 1 commit into from Feb 19, 2016

Conversation

JD557
Copy link
Contributor

@JD557 JD557 commented Feb 9, 2016

This PR adds a "recenter" button that attempts to reset the sensor position.

If it is not possible to reset the sensor, then it sets the manual rotation to be the inverse of the current sensor data, nullifying it.

This is useful in some VR videos that, while recorded at 360º, assume that the viewer is sitting down looking into a certain direction (for example, this cockpit video).

I don't have any device were vrSensor is defined though. This feature was only tested on my PC and on a Nexus 5x with google cardboard.

Adds a recenter button that attempts to reset the sensor positions.
If it is not possible to reset the sensor, then it sets the manual
rotation to be the inverse of the current sensor data, nullifying it.
hawksley added a commit that referenced this pull request Feb 19, 2016
@hawksley hawksley merged commit 7f9b481 into hawksley:master Feb 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants