LÖVR
An open source framework for rapidly building immersive 3D experiences.
-
🕶
Designed for VR
Out of the box you get fast stereo rendering, VR controllers, hand tracking, haptics, spatial audio, 3D physics, PBR materials, SDF fonts, and more.
-
🎈
Super Lightweight
The entire engine fits in a couple of MB and uses LuaJIT, a super fast Lua implementation. Projects are just folders with code and assets, organized however you want.
-
🤔
Beginner Friendly
You can write 3 lines of Lua and drag and drop a folder onto an exe to get a working VR scene. Lua is a really simple language, making LÖVR great for learning and prototyping.
People are using LÖVR for game jams, commercial projects, tools, education, and VR/3D/2D prototyping. Some daring souls have even embedded LÖVR inside of Unity, ported the engine to other languages, and gotten it running on tiny microcontrollers. With LÖVR, you can turn virtually any idea into reality.
Hardware Support
LÖVR is powered by OpenXR and Vulkan, so it's compatible with a wide variety of hardware and platforms. It can also simulate a VR headset using keyboard and mouse, so you don't need any VR hardware to get started.
- 🕹
- HTC Vive
- Valve Index
- Oculus Quest
- Oculus Rift (S)
- Windows MR
- Pico Neo 3
- Pico 4
- PSVR 2
- Magic Leap 2
- Ultraleap
- Keyboard/Mouse
- 🖥
- Windows
- macOS
- Linux
- Android
Sample Projects
-
Hello Virtual World
function lovr.draw(pass)
pass:text('hello', 0, 1.7, -1, .5)
end
-
Spinning Cube
function lovr.draw(pass)
local angle = lovr.headset.getTime()
pass:cube(0, 1.7, -1, .5, angle)
end
-
Tracked Hands
function lovr.draw(pass)
for i, hand in ipairs(lovr.headset.getHands()) do
local x, y, z = lovr.headset.getPosition(hand)
pass:sphere(x, y, z, .1)
end
end
-
Audio
function lovr.load()
song = lovr.audio.newSource('darude.ogg')
song:play()
end
-
Skybox
function lovr.load()
sky = lovr.graphics.newTexture('sky.hdr')
end
function lovr.draw(pass)
pass:skybox(sky)
end
-
3D Model
function lovr.load()
model = lovr.graphics.newModel('monkey.gltf')
end
function lovr.draw(pass)
pass:draw(model, 0, 2, -3, 2)
end