Allow for selection between multiple VRDevices

Description of the problem

Currently sets to first device found.

Three.js version
  • Dev
  • r76
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
  • Chromium VR (
  • [] All of them
  • Windows
  • Linux
  • Android
  • IOS
Hardware Requirements (graphics card, VR Device, …)

With both Oculus CV1 and HTC Vive connected, both enumerate as devices, but we should present some kind of UI to select between the devices.

Author: Fantashit

1 thought on “Allow for selection between multiple VRDevices

  1. Just FYI: this issue can probably be closed (and deferred until WebXR spec changes to allow multiple devices, but it probably won’t any time soon).

    So, in WebXR (the sucessor to WebVR v1.1): navigator.getVRDisplays().then(displays => { enterVR(displays[0]) }) is to be replaced with navigator.xr.requestDevice(device => { enterVR(device) })

    The Chrome team got this working actually behind a flag already. Check it out, and these examples, and look who’s contributed! 😄

Comments are closed.