Up and Coming
April 30, 2025
makeXRCompatible errors when creating a createEquirectLayer in Quest 2 Oculus browser
- April 30, 2025
- 1 reply
- 552 views
There is a problem when creating equirect native layers. The Oculus browser in Quest 2 is complaining the context isn't set to XR compatible when it is.
I've made a modification to three to including native media layers to the initial render state update. As a second update on session start was also causing context loss faults but the error still appears.
Example here
https://electroteque.org/dev/threejs/examples/webgpu_xr_media_layer.html
Relevant code showing makeXRCompatible setup before the layer creation
https://github.com/danrossi/three.js/blob/equirect-layers/src/renderers/common/XRManager.js#L862
https://github.com/danrossi/three.js/blob/equirect-layers/src/renderers/common/XRManager.js#L962
