A Google Daydream remote Andriod app clone for Javascript based VR experiments.
Best used with a cutout cardboard overlay. There's an A4 PDF in the ./assets folder. Use the thickest card you have.
To size the graphic to your overlay use the input in the top left corner. Set it to 1, measure the width of the graphic in cm, then divide 4.6 by your measurement. Put this figure into the input.
Notes : ES6. Development only. Contributions welcome.
Install
npm install --save-dev git+https://git@github.com/edwinwebb/daydream-remote
Run NPM Script and start the server
scripts :{
"dreamremote" : "node ./node_modules/dream-remote/index.js"
}
Load on phone
http://localhost:8081
Connect to in VR app
new WebSocket(`ws://${window.location.hostname}:8081/`)
const newEvent = {
'type' : 'touch',
x,
y
};
const newEvent = {
'type' : 'orientation',
alpha,
beta,
gamma,
absolute
};
const newEvent = {
'type': 'click'
};