WebVR.md 1.3 KB

WebVR

LÖVR is able to run in the browser using WebVR. This guide explains some of the differences between running LÖVR on the desktop and running in the browser, and how to get up and running.

First, you'll need to make sure your browser supports WebVR. Visit webvr.info to find a browser that works with your headset.

Next, you'll need a LÖVR project. The Getting Started guide teaches you how to make a simple project with a spinning cube in it.

Now we need to make a .lovr file from our project. To do this, simply select all the files in your project and create a .zip file from them. It is important to zip up all the files, not the folder that contains them. If you want, you can change the extension from .zip to .lovr.

Finally, visit lovr.org/share and drag and drop the .lovr file into your window. Your project should be running in WebVR!

Differences

There are a few differences when running LÖVR in the browser:

  1. Audio is not spatialized.
  2. Controller:newModel will always return nil.
  3. lovr.headset.getBoundsGeometry will return a table with four zero vectors in it
  4. lovr.getOS will return "Web".