1- Create Project
$ cd $HOME
$ git clone webar-vue-three-ar # empty project from github
$ vue create webar-vue-three-ar
$ npm install babylonjs --save
+ babylonjs@4.0.3
added 1 package from 2 contributors and audited 24358 packages in 18.094s
$ npm install --save webrtc-adapter
+ webrtc-adapter@7.3.0
added 3 packages from 1 contributor and audited 24358 packages in 15.188s
file vue.config.js
module.exports = {
devServer: {
open: process.platform === 'darwin',
host: '0.0.0.0',
port: 8081,
https: true,
hotOnly: false,
},
}
Note: Open browser https://localhost:8081/
See Zap See Vue. See Configuration Reference. See Three JS . See Three JS Package. See AR.js. See WebXR . See Blog See QR Generator See WebGL Tutorial