A simple framework for creating VR with Lua
LÖVR projects work on Windows, macOS, and Linux. You can run the same code on an HTC Vive or an Oculus Rift, and there's even a drag and drop tool for exporting projects to WebVR.
LÖVR is minimal, clean, and really easy to pick up. It's scripted with Lua, a fun little scripting language. Most common tasks are reduced to just a few lines of code, and everything is designed for VR.
LÖVR is open source software, meaning it's 100% free to use and doesn't require accounts, paid licenses, or royalties. The code can be found on GitHub and is released under the MIT license.
function lovr.draw() lovr.graphics.print('oh wow', 0, 2, -3, .5) end
function lovr.load() sound = lovr.audio.newSource('darude.ogg') sound:play() end
function lovr.draw() controllers = lovr.headset.getControllers() for _, controller in ipairs(controllers) do x, y, z = controller:getPosition() lovr.graphics.sphere(x, y, z, .1) end end
function lovr.load() skybox = lovr.graphics.newSkybox('sky.jpg') end function lovr.draw() skybox:draw(lovr.headset.getOrientation()) end