Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.11 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.11 KB

PuppetMaster

A Pusher, PeerJS, Google Cardboard experiment.

What the hell is this?

It's an experiment in control and out-of-body VR.

Two clients connect:

a. The Puppet

b. The Controller

The Puppet

  • Captures video through their camera
  • Sends their camera feed to The Controller
  • Receives move instructions from The Controller

The Controller

  • Views the camera from The Puppet
  • Captures movement instructions by moving their head left/right
  • Sends the instructions to The Controller

The easy part of this was sending instructions from one client to the other, using Pusher and a simple Node server as a message relay. The hard part was hooking up WebRTC over PeerJS to send the video from client to client.

Server side

The server is a NodeJS server, using ExpressJS.

npm install express body-parser pusher
APP_ID='foo' APP_KEY='bar' APP_SECRET='baz' node server.js

How cool do we look?

What we can see: