Overlay an image or video on a minecraft skin in voxel.js
The demo also includes an example WebRTC video chat room. It only requires a server to notify peers of each other as well as things like NAT traversal. The audio/video is all peer to peer in the web browser.
Here is an example with my son and I video chatting in voxel.js pretending to be Max Ogden:
// Create a gamevar game = ;// Create a skinvar dude = gameTHREE 'textures/dude.png';// Use avatar to load your webcam onto the skinvar avatar = gameTHREE;avatar;// Or use your own streamnavigator;
To just get something up and running quickly do:
git clone git://github.com/shama/voxel-avatar.git && cd voxel-avatarnpm installnpm start
This will start a server on port
9000 and a game at
Then you can open multiple tabs and see yourself a bunch of times. If you want
other players to chat then edit
demo.js and change the
serverip to the ip
of your machine, e.g.:
var serverip = 'ws://192.168.1.128:9000';. Then have
the other players goto
http://192.168.1.128:9966. Each will use your server to
discover each other but will all connect directly via p2p.
With npm do:
npm install voxel-avatar
Use browserify to
Copyright (c) 2013 Kyle Robinson Young
Licensed under the MIT license.