MozillaReality / WebXR-emulator-extension

INACTIVE - WebXR emulator extension
Mozilla Public License 2.0
463 stars 55 forks source link

WebXR Samples Hit test examples doesn't work correctly #223

Closed takahirox closed 4 years ago

takahirox commented 4 years ago

How to reproduce the problem

  1. Select an AR device in WebXR Emulator extension devtool panel
  2. Visit https://immersive-web.github.io/webxr-samples/hit-test.html
  3. Click "Start AR" button to enter AR mode
  4. Place a flower on the floor
  5. Rotate the tablet device and you see the problem like the following screenshot. It seems the tablet screen refresh doesn't work correctly?

image

The examples seems to work correctly on the realy Samsung S8+ Chrome canary so I speculate this is a WebXR emulator extension side bug.

takahirox commented 4 years ago

I guess the problem is from that the extension doesn't implement properly this behavior?

The buffers attached to an opaque framebuffer MUST be cleared to the values in the table below when first created, or prior to the processing of each XR animation frame. This is identical to the behavior of the WebGL context’s default framebuffer.

https://www.w3.org/TR/webxr/#xrwebgllayer-interface