WebXR with any VR Device?


I wanted to know if possible to use for Example the Pico G2 4K for babylonjs VR?
I looked at this for using the controller: Customizing Camera Inputs | Babylon.js Documentation
But I’m not really understanding how I can use this with the Pico Controller? Are there any examples?
I’m also using Firefox Reality on the device.

Thanks in Advance,


adding @raananw

1 Like

If Firefox reality on the device supports XR, then you can use the device. XR is device-agnostic. If it is supported by the browser (and was not blocked by it), you will be able to enter an XR session.
Having said that - I have never tried a Pico, and I can’t remember seeing its controller on the list of XR controllers. It doesn’t mean that it wouldn’t load, it just means that the capabilities will be used (for example “button”, “touchpad”), using the generic model.
Try the simple XR playground from our docs (WebXR | Babylon.js Documentation) . If you are able to enter XR move the controller. you should see the ray and the mesh.

1 Like

Thank you for your answer!
I just tested this playground: https://playground.babylonjs.com/#TAFSN0#260
I achieved to get into the VR Mode, I also saw the Ray of the Controller.
Now I’m wondering how I need to code to make custom inputs of the touchpad? Is there anything special I need to know?

Everything you need to know is here -

WebXR Controllers Support | Babylon.js Documentation

And if it isn’t, please let me know :slight_smile:

1 Like