Skip to content

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

License

Notifications You must be signed in to change notification settings

AidanNelson/threejs-webrtc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:8080 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:

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published