vtk.js supports virtual and augmented reality rendering via the WebXR device API for most standalone and PC headsets.
Developers without access to XR hardware may find it convenient to install and use the Mozilla WebXR emulator in their browser.
- Install the WebXR extension on either Chrome or Firefox.
- Close and reopen the browser.
- Press F12 to access the browser console.
- Select the “WebXR” tab to selected XR emulated hardware and view controls.
While WebXR has broad industry support, it is not yet implemented in all browsers. Developers may include the WebXR polyfill in their projects for backwards compatibility with the deprecated WebVR API.