-
Notifications
You must be signed in to change notification settings - Fork 0
TechStack
ThomasJon196 edited this page Oct 30, 2022
·
34 revisions
Converting a Three.js scene to AR using WebXR 5min
additional Resource: AR with WebXR
Hosting application: Firebase - backend as a service.
- Identify output devices
- Translate device movement into usable vectors for application
- Render 3D scenes to devices at appropriate frame rate
- WebXR -> WebApp; ARCore -> Android APP
Getting Started WebXR application
First the steps below have to be completed:
Browser support: Check
-
Check if phone is supported: Supported devices
-
Enable developer mode & debugging via USB here
- additional options include adding dev-tools to phone homescreen. You may want to disable dev mode in some situations.
-
- Access phone via chrome-devtools. (Opening websites/ inspect/ debug)
- Link
chrome://inspect/#devices - Configure port mapping so that the application server port is mapped to mobile localhost-port
-
Set up port forwarding for phone: WebXR requirements
- required if no public dev-server available. (either TLS secured connection (https:) or localhost.) localhost requires port forwarding through USB.
-
Run local server on connected port
- VSCode LiveServer simplest solution.
- Apache/ NGINX
- Phone does not display block... try tomorrow
- Create QR-Codes for easy to distribute URL's