Using this playground
I’ve already tried this example in about two weeks ago and all were working fine but now it throws some error. Maybe it’s because of my last Chromium’s update.
I use chromium-browser: Version 112.0.5615.49 (Official Build) Built on Ubuntu
It shows me the error right after 1 second after I enter the VR-mode (Babylon’s icon at the right bottom of the screen).
Babylon.js v6.2.0 - WebGL2 - Parallel shader compilation webxr-polyfill.js:3169 TypeError: Failed to construct 'PointerEvent': Failed to read the 'screenX' property from 'MouseEventInit': The provided double value is non-finite. at e.simulatePointerMove (babylon.js?t=1683271423811:1:484044) at t.simulatePointerMove (babylon.js?t=1683271423811:1:523563) at c.callback (babylon.js?t=1683271423811:1:2872290) at e.notifyObservers (babylon.js?t=1683271423811:1:67564) at Object.renderFunction [as callback] (babylon.js?t=1683271423811:1:1802159) at XRSession$1.<computed>.onDeviceFrame (webxr-polyfill.js:3166:28)
Looks the problem with Immersive VR emulator since webxr-polyfill.js is the ImmersiveWebEmulator’s script.