• Stars
    star
    151
  • Rank 246,057 (Top 5 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Template for multiplayer three.js scenes with integrated WebRTC capabilities.

This three.js template allows multiplayer three.js scenes with integrated audio/video capabilities. It uses a node server running socket.io to provide multiplayer functionality as well as WebRTC signaling.

image of multiplayer 3D scene

Quickstart:

  1. Download the repository to your computer:
    $ git clone https://github.com/AidanNelson/threejs-webrtc.git
  2. Navigate into the local folder and install Node dependencies:
    $ cd threejs-webrtc
    $ npm install
  3. Start the server:
    $ npm start
  4. Navigate to http://localhost:1989 on your browser.

Technology:

This space is built using a number of technologies, including:

  • three.js provides rendering / 3D environment interaction
  • socket.io provides the three.js multiplayer functionality, and acts as a WebRTC signaling server
  • WebRTC provides video / audio chat functionality
  • Simple Peer provides a friendlier API for WebRTC

Credits:

This template uses code from a number of sources, including: