Skip to content

sushack/PuppetMaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: