Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.
Перейти к файлу
Robert Long c8e554e102 Update threejs, add bundle analyzer as npm script for verification. 2019-02-05 17:07:05 -08:00
.circleci Store artifacts from build in Circle CI 2018-09-05 15:39:31 -07:00
.vscode
doc Get image rotation and rotate the resulting object accordingly. 2018-09-04 15:09:17 -07:00
scripts Fix build script 2019-01-30 03:14:48 +00:00
src Merge master 2019-02-05 16:11:11 -08:00
.babelrc Add browser targets to babel for better transpile 2018-11-21 17:47:00 -08:00
.env.defaults Add ability to whitelist domains which do not need CORS proxying 2018-12-29 01:13:29 +00:00
.eslintignore
.eslintrc.js
.gitignore Un-revert npm-to-yarn PR 2018-07-26 16:45:38 -07:00
.htmlhintrc
.prettierignore
.prettierrc.json
.stylelintrc Scale canvas 200% wide so no eye buffers on desktop 2018-11-04 18:09:30 +00:00
Jenkinsfile Add missing references to tracking id 2019-01-30 02:26:05 +00:00
LICENSE
PRIVACY.md Update Privacy Policy to 3.1 2018-10-31 14:23:39 -07:00
README.md Update README.md 2019-01-23 16:38:55 -08:00
TERMS.md Fix title of Terms of Service 3.0 2018-10-16 13:33:18 -07:00
package-lock.json Update threejs, add bundle analyzer as npm script for verification. 2019-02-05 17:07:05 -08:00
package.json Update threejs, add bundle analyzer as npm script for verification. 2019-02-05 17:07:05 -08:00
webpack.config.js Update threejs, add bundle analyzer as npm script for verification. 2019-02-05 17:07:05 -08:00

README.md

Build Status

The client-side code for https://hubs.mozilla.com/, a multi-user experience in WebVR. Built with A-Frame.

Getting Started

To run the client, run:

git clone https://github.com/mozilla/hubs.git
cd hubs
npm ci
npm start

Then visit https://localhost:8080

Note: When running the Hubs client locally, you will still connect to the development versions of our Janus WebRTC and reticulum servers.

Building Static Files

To bundle javascript and generate the html templates, run:

npm run build

Sharing Your Changes

When running a local copy of Hubs as-is, you'll use Mozilla's "dev" Reticulm and Janus servers for storing your room information and relaying messages between users in the room.

This also means you can upload a modified copy of Hubs to a hosting provider as-is, and use it without having to set up your own servers. Simply run:

npm run build

and then upload the files in the dist folder to your hosting provider.

If you are running your own servers, you can modify the environment variable RETICULUM_SERVER when building to point Hubs to your own infrastructure.

See .env.defaults for the full set of environment variables that can modify Hubs' behavior at build time.

hubs.local Host Entry

When running the full stack for Hubs (which includes Reticulum) locally it is necessary to add a hosts entry pointing hubs.local to your local server's IP. This will allow the CSP checks to pass that are served up by Reticulum so you can test the whole app.

Query Params

  • allow_multi - Allow multiple instances off the app in the same browser session
  • avatar_scale - Scale your self!
  • quality - Either "low" or "high". Force assets to a certain quality level
  • mobile - Force mobile mode
  • no_stats - Disable performance stats
  • vr_entry_type - Either "2d", "vr", or "daydream". Used internally to force a VR entry type. Add "_now" to the end of the value to skip the audio check.
  • disable_telemetry - If true disables Sentry telemetry.
  • log_filter - A debug style filter for setting the logging level.
  • debug - If true performs verbose logging of Janus and NAF traffic.
  • debug_log - If true, enables an on-screen debug log and console. Useful for debugging on mobile devices.
  • userinput_debug - If true, enables an on-screen userinput debug status panel. Press "L" on your keyboard to show the panel.
  • disableTunnel - Tunnel vision is on by default. Disable the tunnel vision by this parameter.

Additional Resources

Waffle.io - Columns and their card count