Skip to content

VRSetupjs is a library designed to facilitate ThreeJS project integration with the WebVR api in VR-enabled browsers

Notifications You must be signed in to change notification settings

soblenes32/VRSetupjs

Repository files navigation

VRSetupjs

What is it?

VRSetupJS is a consolidation of the code that you will need in order to enable your ThreeJS program to use a native browser VR API.

When would I use it?

You may consider this library if your project meets the following criteria: 1) Your application is written in ThreeJS r68 or a closely related derivative or wrapper (such as physijs) 2) You anticipate that your target audience will be running a VR-capable browser 3) Your project will be tolerant to changes, because changes will be made (a necessary prerequisite for all current Rift development)

How is this different from benvanik's VR.js?

VR.js is designed to be used in conjunction with a separate VR plugin for current versions of Mozilla and Chrome. By contrast, VRSetup.js is a consolidation of boilerplate code needed to harness the native browser VR API. At time of this posting, only branch versions of Chromium and Mozilla support this API, which is still in the process of being defined.

It bears repeating: this library is only suitable if you (and your target audience) are running one of the VR-enabled browser branches.

Tell me more about VR-enabled browsers, and where can I get one?

See this excellent blog post on the subject: http://blog.tojicode.com/2014/07/bringing-vr-to-chrome.html

Why shouldn't I just use the browser's VR API directly?

If you have the time and patience, there's absolutely no reason you shouldn't. This library is simply designed to help you get up and running in about 5-10 minutes, assuming you know your way about ThreeJS.

Credits

Much of this code is a repackaging and consolidation of Brandon Jones' works into a reusable and distributable form.

About

VRSetupjs is a library designed to facilitate ThreeJS project integration with the WebVR api in VR-enabled browsers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published