Hit test AR Local test of a codelab demonstration of WebXR

We did a simple test of the capabilities of the WebXR Hit Box API by setting up a local version of this codelab tutorial. If it has an error that greyes out the camera, there is a fix here

Our local version can be found here.

WARNING! Due to the instability of both the API and Chrome’s canary the code above might not work at times.

To set up your phone for testing, here are the requirements:

  • Android phone with Origo 8.0 (or later).
  • The ARCore app installed
  • The Canary Chrome test browser app installed
  • Two flags in Canary must be enabled. Open The Canary browser app, type chrome://flags in the url-field, search for webxr and set ’WebXR Device API’ and ’WebXR Hit Test’ to ‘Enabled’.

If you want to set up this yourself, download this zip-file. The working version will be in the ‘final’-folder. This includes the fix for the greying of the camera.