Lua Virtual Reality Engine
Go to file
bjorn 4cd0bf06c8 Remove osvr; Use openvr; 2016-09-06 10:13:49 -07:00
src Remove osvr; Use openvr; 2016-09-06 10:13:49 -07:00
.gitignore Separate Lua API; 2016-08-09 23:28:17 -07:00
CMakeLists.txt Remove osvr; Use openvr; 2016-09-06 10:13:49 -07:00
README.md Update README; 2016-08-10 01:27:51 -07:00

README.md

LÖVR

LÖVR is a framework for making VR games with Lua! Inspired heavily by LÖVE. Still under heavy development.

Example

In a directory called myGame, create a file called main.lua:

function lovr.update(dt)
  print(lovr.headset.getPosition())
end

Then, start the OSVR server and run your game:

$ cd path/to/myGame
$ lovr .

Dependencies

  • LuaJIT
  • GLFW (3.2+) and OpenGL (3.2+)
  • assimp
  • OSVR-Core

Compiling

Windows (CMake)

cd lovr
git clone --recursive https://github.com/bjornbytes/lovr-deps deps

Finally, build using the CMake GUI or using the CMake command line. Make sure you pass the OSVR_PATH option:

mkdir build
cd build
cmake -DOSVR_PATH=/path/to/osvr-core ..

This should output a Visual Studio solution, which can be built using Visual Studio or by using CMake:

cmake --build .

OSX (tup)

brew tap OSVR/osvr
brew install assimp glfw3 luajit osvr-core
tup