It's a simple WebXR VR demo showing Avenga values in VR.
Here you can see the working demo.
Here you can see headset recorded video.
-
Make sure you have webpack installed.
-
Install three.js
npm install three
-
Build
npx webpack
-
Install simple web server
npm install http-server
(tested also on nginx, it's only statis content so should work with other http servers) -
Run web server locally in local project directory, https recommended (required by Oculus headsets)
http-server -S . -p 443 -C cert.pem
- Install WebXR extensions for your browser
https://chrome.google.com/webstore/detail/webxr-api-emulator/mjddjgeghkdijejnciaefnkjmkafnnje - for Chrome
https://addons.mozilla.org/en-US/firefox/addon/webxr-api-emulator/ - for Firefox
-
Open https://127.0.0.1 on local machine to test it.
-
Enable WebXR with developer tools, you can change the position of virtual headset, use controllers, etc.
-
Find out what is the local IP address of your development laptop / Mac / PC
-
Open https://your-dev-machine-address in your headset (i.e. Oculus Browser)
Follow us: