Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Setting up WebVR with THREE.js

Michael Chang edited this page Sep 15, 2016 · 5 revisions

Though it's out of the domain of this project, there are many resources to getting you started.

Examples

In our examples we use a minimal boilerplate called three-vr-viewer.

Include three.js and three-vr-viewer.js script in your html using the <script> tag.

Then, somewhere in another script:

const { scene, camera, renderer, events, toggleVR, controllers, vrEffect } = VRViewer({THREE});

This will give you a simple starting point for having VR view and controllers.

Clone this wiki locally