Skip to content

Augmented reality app in WebXR, built on top of Three and React.

Notifications You must be signed in to change notification settings

luigimannoni/webxr-earthday

Repository files navigation

WebXR Earth Day

Build Status

WebXR Earth Day Demo

What's this?

This repo contains a (rather quick and ugly) refactor in pure WebXR of one of my previous projects, Earth Day AR 2020 which originally ran through 8thwall's SLAM library.

Built on top of Threejs and React

Requirements

At the moment you need a WebXR-capable browser, that means probably you need an Android device with Chrome 81 at least. Prior versions can still make the experiment run fiddling and enabling 2 flags on chrome://flags*

  1. WebXRDevice API (#webxr)
  2. WebXR Hit Test (#webxr-hit-test)

Forking, development and stuff

As usual, type in npm install and run npm run dev to start your Dev server on https://localhost:3000, you must have an Android phone running with the debug flag on, attached via USB. Head over to chrome://inspect and enable Port Forwarding from 3000 to localhost:3000.

Navigate on https://localhost:3000, accept any untrusted SSL warnings on your device and you are all set.


Asset credits

Models

Sounds

Original project

The original project is cross-browser compatible but runs obviously less efficently than the WebXR counterpart. It can still be accessed through this link

* You're responsible for any changes on your browser