-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
Josh Stovall edited this page Dec 3, 2020
·
1 revision
clone the repo to a new folder called XR
git clone https://github.com/xrscript/XR.js XR
cd to the XR.js main directory
cd XR
start the app
node app
now go to http://localhost:4000
Here is the bare minimum you need to get started.
Place the following code in your HTML file.
Remember to use
<script type="module">
<script type="module">
// import XR.js
import * as XR from '/XR.js';
// create a reality
var reality = new XR.Reality();
</script>
See Examples for more.
You can set up Chrome to debug — see Debug USB and Debug WiFi.