Lua Virtual Reality Engine
Go to file
bjorn 2267396e5a Render to window if headset unavailable; 2016-10-24 13:43:07 -07:00
doc Notes about compiling gotchas; 2016-10-18 13:02:02 -07:00
src Render to window if headset unavailable; 2016-10-24 13:43:07 -07:00
.gitignore Ignore Tupfile; 2016-10-04 15:03:21 -07:00
CMakeLists.txt Notes about compiling gotchas; 2016-10-18 13:02:02 -07:00
README.md Link to documentation site; 2016-10-14 17:47:38 -07:00

README.md

LÖVR

LÖVR lets you make VR games with Lua! See http://bjornbyt.es/lovr.

Example

In a folder called myGame, create a file called main.lua with this in it:

function lovr.update(dt)
  t = (t or 0) + dt
end

function lovr.draw(eye)
  local x, y, z = 0, .25, -2
  local size = 1
  local angle, rx, ry, rz = t * 2, 0, 1, 0

  lovr.graphics.setColor(128, 0, 255)
  lovr.graphics.cube('line', x, y, z, size, angle, rx, ry, rz)
end

Drag the myGame folder onto a shortcut to lovr.exe. You should see a spinning purple cube!

Supported Hardware

  • HTC Vive

Support for other hardware will happen eventually.

Compiling

See the compilation guide.