This project is derived from:
Follow the instructions below to install webvr_osc:
git clone https://github.com/ianpetrarca/webvr_osc.git
cd webvr_osc
npm install
To start locally sending OSC data use the following command:
npm run local-osc
Then in another terminal run:
npm run start
This command starts a Node.js server that listens to HMD rotation data on localhost:9900
To start sending HMD data to an external OSC server, use the following command:
npm run external-osc
Then in another terminal run:
npm run start
This command will now send HMD data over OSC to the server specified in external_server.js. To change the OSC server/port change the variables on lines 3 and 4 in external_server.js
const EXTERNAL_SERVER_ADDRESS = '192.168.1.215';
const EXTERNAL_SERVER_ADDRESS_PORT = '9900';
The WebVR link should be opened in Firefox. The OSC server must be running before the web-server is started. If you reload the page you will need to restart the OSC server.
Testing: 6.3.18 - Demo compatible with MacOS and Windows