This repo creates a hologram that can be manipulated with your hand movement using a leap motion device.
To do the magic, you will need your laptop, a mobile device, a leap motion device (and install leap motion in your machine), and a prism.
You will also need node.js and yarn.
- Clone repo
- Run
yarn install
- Push repo to Heroku
- Copy your Heroku URL
- Go to the leap.js file and replace the host ('https://fox-hologram.herokuapp.com') with your own heroku
- Plug the leap motion sensor to the laptop
- Run
yarn run leap
- Visit your Heroku site on your mobile device
- Place the prism on top of the mobile device
- Rotate your hand on top of the sensor and the element in the scene should move
-> There is no mobile device involved when testing locally.
- Clone repo
- Run
yarn install
- Plug the leap motion sensor to the laptop
- Run
yarn run leap-local
- Open new tab in command line and run
yarn run server
- Visit 'localhost:3000' in your browser
- Rotate your hand on top of the sensor and the element in the scene should move