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 WebXR Locomotion (player movement) to tesseract_viewer_python #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

johnwason
Copy link
Contributor

tesseract_viewer_python has long supported VR headsets using WebXR, however it has not been possible to move the player position except by physically walking around. This PR adds "locomotion" (player movement) using the right controller thumbstick to turn and move forward/backward. It also adds "drag" locomotion, where the player can "drag" the scene around by holding the "B" button on the right controller. This is inspired by the "Gadgeteer" game controller scheme (https://gadgeteergame.com/). The scene will move with the controller when B is held. Hold and release in sweeping motions for large movements. The locomotion was tested using an Oculus Quest 1.

WebXR requires HTTPS if not accessed using localhost. The shapes_viewer_ssl_webxr_headset.py example shows how to use the new ssl_context parameter to use HTTPS. The user will need to accept the security warning to use the self-signed certificate when connecting to the viewer web server.

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.

1 participant