immersive-web / webxr-samples

Samples to demonstrate use of the WebXR Device API
https://immersive-web.github.io/webxr-samples/
MIT License
987 stars 474 forks source link

Anchors sample bug - stuck after lots of clicks #122

Open De-Panther opened 3 years ago

De-Panther commented 3 years ago

What happens: Generating lots of anchors by clicking on screen. After some clicks, the 3D scene is gone and I see only the camera input. Click back allows me to return to flat screen, and clicking "Enter VR"(should change to AR?) the AR experience works again.

Expected: Anchors will stop at a limit? going over the limit would delete old anchors?

Device: Samsung Galaxy S10e Browser: Chrome 90

Looking at the source, there's MAX_ANCHORED_OBJECTS = 30, but I guess the device anchors limit is lower?

Regarding the "Enter VR", seems like the button text is set before isSessionSupported.