Search code examples
virtual-realitypolyfillswebvrwebxr

Flickering when viewing WebXR content


In android Chrome 80, when the WebXR device API flag is disabled, I expect the Webxr polyfill should play the VR output. But the content is flickering and I am not able to hit any object in VR world. Any idea why this is happening?

If the WebXR device API flag is enabled, I am getting the output correctly. I included the webxr polyfill (https://github.com/immersive-web/webxr-polyfill) , but not sure whether it is working or not. How to check whether polyfill is giving the correct output? Do we need to build the WebXR Polyfill separately to support chrome 80?


Solution

  • I fixed this issue by setting the preserverDrawingBuffer flag to true while creating the renderer https://threejs.org/docs/#api/en/renderers/WebGLRenderer.preserveDrawingBuffer