Some background information, feel free to skip to Controller Input,
if you are familiar with VR and running WebXR Apps on the Oculus Quest.
Once the VR mode is entered after the user pressed the “VR”
button on the bottom right of the screen, the Wonderland Engine
autmatically starts rendering in stereo.
“Stereo” means that there is two views rendered: One for the
left and one for the right eye. The opposite is “mono”, which
is a single view.
When clicking on the “Player” object, you will find the “NonVrCamera”
for mono rendering, and the “EyeLeft” and “EyeRight” objects for
To make the views follow the user’s head, the “EyeLeft” and “EyeRight” have
“input” components set up already (from the default scene).
Input components read various forms of input poses and apply them to the objects
they are attached to.
View on XR Devices
To view on the headset, you need to connect the headset and forward web-traffic
to localhost from the XR headset to your PC:
Make sure you have “USB Debugging” enabled for your device! On Android Devices this
requires tapping the “Build Number” until confirmation shows up, then find the
“USB Debugging” settings and enable.
Chromium Based Browsers (Meta Browser, Pico Browser, Edge)
Devices: Meta Quest 1/2/Pro, Pico Neo 3, Pico 4, HoloLens
Finally, forward port 8080 following this Chrome Port Forwarding Guide.
This way you can access http://localhost:8080/index.html from within the Meta/Pico Browser and
avoid the restriction to “https” for WebXR (this is only possible on “localhost”!).
adb devices # Check if your device is connectedadb tcpip 5555adb shell ip addr show wlan0 # Find the IP address of the deviceadb connect <ip-address-of-device>:5555
# Disconnect USB cabeladb devices # Check that your device is still connected
Now that our application runs on the Oculus Quest, our next step will be to add controllers.