web xr passthrough on quest2 only works at one specific head position
Hi, I don't know if anyone has had any similar experiences, but I wanted to just have a little play with superimposing some text over the top of the passthrough mode on the quest 2 using web xr.
I tried to use the examples from here: Mixed Reality Support in Meta Quest Browser | Oculus Developers
My quest is on version 51 PTC software and I find the passthrough mode and text is only visible if your head is in exactly one position. If you move your head the screen goes completely black.
My code is:
<html>
<head>
<script src="https://aframe.io/releases/1.3.0/aframe.min.js"></script>
<script src="https://mixedreality.mozilla.org/webxr-polyfill/build/webxr-polyfill.js"></script>
</head>
<body>
<a-scene xrweb="arMode: true">
<a-text value="test" color="black" position="0 1.5 -2" background-color="white"></a-text>
<a-camera></a-camera>
<script>
// Get the XR system
const xr = navigator.xr;
// Check if the device supports immersive-ar mode
xr.isSessionSupported('immersive-ar').then((supported) => {
if (supported) {
// Request a session with local-floor and depth-sensing features
xr.requestSession('immersive-ar', {
requiredFeatures: ['local-floor', 'depth-sensing']
}).then((session) => {
// Start rendering the scene
const renderer = document.querySelector('a-scene').renderer;
renderer.xr.setSession(session);
});
}
});
</script>
</a-scene>
</body>
</html>
Has anyone seen a similar issue? It just seems like perhaps we could do something cool with web XR and passthrough (If we can get it to work..)
