Skip to content

An example of WebXR and Three.js integration

Notifications You must be signed in to change notification settings

marnore/webxr-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebXR example

This is the code sample of WebXR and three.js integration. Wroks on Android ARCore supported devices with Chrome 81+

Running instructions:

  1. Download three.js srouce code and place it under three.js subdirectory. OR if you don't want to download the full source code:

  2. Install npm

  3. Generate self-signed certificates openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem

  4. Initialize project npm init -y && npm install node-static

  5. Start the server npm start

  6. Make sure your smartphone is connected to the same network as your PC, open Chrome and navigate to https://your_local_ip:3000/webxr-threejs.html

About

An example of WebXR and Three.js integration

Resources

Stars

Watchers

Forks