cancel
Showing results for 
Search instead for 
Did you mean: 

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..)

1 ACCEPTED SOLUTION

Accepted Solutions

Tested the problem on a Quest 2 in my lab (v54), and it did not have the issue. I did a factory reset on my personal headset (hold down volume on when you boot for service menu) and the issue is resolved after a factory reset (v56).

View solution in original post

5 REPLIES 5

Hi @johnny_programmer  , not sure if this helps but have you tried the webxr samples - these seem to work for me on the Quest browser.  https://immersive-web.github.io/webxr-samples/

I'm having an issue trying to get it working over Link - seems that it then doesn't work if you use Link, then go to that site on desktop browsers.

Generic_Guy
Honored Guest

Hey there,

I am experiencing a similar problems that seems to come and go. Passthrough will be working perfectly for days at a time, then all of a sudden the background will be solid unless I look up at the ceiling or cover one of the lower cameras on the headset with my fingers. I've experienced the problem across all levels of lighting (dark, normal, bright). I am using an "immersive-ar" session with no background, renderer alpha = true. 

Quest 2 - Problem exists on V55 and V56 (only versions I've tested).
Quest 1 - Works perfectly (V50). 

It seems to be very random. Passthrough in the main OS always works perfectly. This is just a WebXR issue in the Quest Browser.

Tested the problem on a Quest 2 in my lab (v54), and it did not have the issue. I did a factory reset on my personal headset (hold down volume on when you boot for service menu) and the issue is resolved after a factory reset (v56).

Thanks for testing that, Its been a while and now we're on v56 PTC. I'll have another go. If it works then the future for the quest 3 is probably looking good as far as XR is concerned.

kfarr
Explorer

I also had the same experiences on the quest2 and just upgraded to quest3. At the time I reported to webxr discord #browser channel and said this:

> On quest2 browser trying to do passthrough webxr. I'm only seeing black background instead of transparent. I have passthrough set on at OS level. Am I doing something wrong? using this demo https://immersive-web.github.io/webxr-samples/immersive-ar-session.html

> For a very brief moment here and there the black fades out from passthrough when I put my hands or controllers in front of my face, very odd.
> I tried restarting the headset and same issue. Most of the time it is black but I captured a brief moment when it showed pass through and returned.

Here is a video of the issue:

https://youtube.com/shorts/F-PZG33BrQw?feature=share