/holoplay-webxr

WebXR for HoloPlay/Looking Glass (Unofficial)

Primary LanguageJavaScriptApache License 2.0Apache-2.0

WebXR for HoloPlay (Unofficial!)

Implements the WebXR API (using webxr-polyfill) for Looking Glass Factory's HoloPlay devices.

This project contains both a library and a WebExtension that injects the library before page load.

This repo contains builds of both the library and the (unpacked) extension. In order to install the extension, simply clone the repository and point your browser at the directory. (Tested in Chrome 89 and Firefox 86.)

Thanks to WebXR Emulator Extension from which I took the skeleton of this project.

This fork of webxr-samples has been modified to unconditionally use WebXR for HoloPlay instead.

Status

  • Only tested on a single Looking Glass 8.9" dev kit. (Additional testing would be appreciated!)
  • Extension has not been published in the Chrome Web Store or Firefox Add-ons.

Compatibility

  • webxr-samples: Works!
  • Three.js: Technically works, but can only handle 2 views. Often fails to launch in Chrome, due to an unattributed DOMException. (tested page)
  • Babylon.js: Works! Fixed in version 5.0.0-alpha.9. (tested page)
  • Sketchfab: Renders a blank screen (not sure why).

Hacking

  • npm run build to build.
  • npm run serve to serve the demos.