react-home-ar
v0.5.103
Published
React Interior AR
Downloads
920
Readme
react-home-ar
Home AR
In a project, to get started call the following in the index.tsx
// Get upload and segment URLs from env vars (defined in .env.*)
cbInitialize({
directUploadUrl: process.env.REACT_APP_CB_DIRECT_UPLOAD_URL,
getUploadUrlsUrl: process.env.REACT_APP_CB_GET_UPLOAD_URLS_URL,
uploadUrl: process.env.REACT_APP_CB_UPLOAD_URL,
segmentUrl: process.env.REACT_APP_CB_SEGMENT_URL
})
To update, this will auto increment the version number and publish to npm
npm publish
MAC OSX fsevents issues:
https://stackoverflow.com/questions/46929196/how-to-solve-npm-install-throwing-fsevents-warning-on-non-mac-os
from project root:
rm -rf node_modules
sudo npm cache clean --force
sudo npm uninstall
sudo npm install git+https://[email protected]/CambrianTech/react-three-fiber.git --no-optional
npm install
Building opencv:
This project contains a configuration file for opencv with the specifically required functions opencv_js.config.py. To rebuild the opencv javascript dependency opencv.js included with this project (includes/opencv.js) run the following:
python [OPENCV_PATH]/platforms/js/build_js.py build_js --config opencv_js.config.py