hawksley / eleVR-Web-Player

A Web Player for 360 Video on the Oculus
Mozilla Public License 2.0
682 stars 195 forks source link

Add Recenter button #32

Closed JD557 closed 8 years ago

JD557 commented 8 years ago

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.