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

Orbit controls configuration #52

Merged

Conversation

developpeur2000
Copy link
Contributor

the orbit controls default configuration is not fit for the current use in the VR viewer :

  • rotation control seems inverted, as we are inside the sphere we control
  • rotation control is too fast
  • zoom and pan are enabled and if used will disrupt the viewing experience at mininum, eventually leading to getting out of the render sphere

so I added some configuration right after the OrbitControls instance creation

I also set the rendering of the sphere as one sided, rendering on the outside was useless

…s we are rotation the sphere from the inside of it, and disabled panning and zooming as this could lead to exiting the sphere
@brandonocasey
Copy link
Contributor

Good catch here, when I get some time I will test this. The code looks good though.

@brandonocasey brandonocasey merged commit 44b6d41 into videojs:master Feb 20, 2018
@developpeur2000 developpeur2000 deleted the orbit-controls-configuration branch May 16, 2018 14:36
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