Stencil buffer on Oculus Quest

Hi.

I’m trying to get the ‘portal’ example ( PlayCanvas Examples) working on the Oculus Quest. But unfortunately, it doesn’t seem to work. I see the example working in the Oculus browser but as soon as I switch to VR, the portal-plane disappears and the scene renders with the sphere and cube mixed. Is this a known issue? Or do I need to set a specific property somewhere?

Thanks,

Sorskoot.

Edit: Included 2 screenshots. On the left you see what is rendered in VR. On the right, just the Oculus Browser.

Edit 2: Here’s the code: sorskoot/js13kgames_2021

@mvaligursky or @moka , any idea why stencilling doesn’t work in VR?

Could be related to this … perhaps the framebuffer that is created does not have stencil?WebXR AR experience doesn't look like it depth tests · Issue #3031 · playcanvas/engine · GitHub

1 Like

this seems to be working now, see WebXR AR experience doesn't look like it depth tests · Issue #3031 · playcanvas/engine · GitHub

1 Like