Hi all,
Revisiting this thread, we’ve determined that the issue described above was likely due to serving examples over an unsecured HTTP context by default. WebXR requires a secure context to run (see the WebXR security explainer).
To resolve the issue we’ve added a script to run examples locally over HTTPS with a self-signed SSL certificate in 79d7927f. Use the following steps to run vtk.js WebXR examples from your local PC:
- On the host PC, serve an example locally over HTTPS:
path/to/vtk-js> npm run example:https -- WebXRVolume
...
<i> [webpack-dev-server] Project is running at:
<i> [webpack-dev-server] Loopback: https://localhost:9999/
<i> [webpack-dev-server] On Your Network (IPv4): https://xxx.xxx.xxx.xxx:9999/
...
- In a browser with WebXR support on the XR device, navigate to the IPv4 address given above, optionally adding URL arguments for the example
Please let us know here if you experience further issues in running vtk.js WebXR examples.