Leadwerks Game Engine support for Oculus Rift has entered beta.
Enabling virtual reality mode in your game is very simple. Just add the Window.VRDisplay flag when your game's window is created, and the rest is automatic:
local window = Window:Create("My VR Game",0,0,1024,768,Window.Titlebar + Window.VRDisplay)
Or in C++:
Window* window = Window::Create("My VR Game",0,0,1024,768,Window::Titlebar|Window::VRDisplay);
Four new commands will help you refine your VR experience:
Use this to modify the way your controls work. For example, use the player's head rotation to change the direction they move in when a key is pressed. You do not need to rotate the camera yourself, as this is done automatically.
This command is useful if you're doing any line-of-sight tests with the player.
Recenters the headset orientation according to the current position and rotation.
Disable the Oculus warning popup, typically by pressing space or another key.
Oculus Rift beta support is presently only available for Windows, and does not yet allow 2D drawing in VR mode. We expect to have our implementation complete, for Windows and Linux, by the end of the year.
Leadwerks Game Engine can be purchased for 50% off during the Steam Exploration Sale.