Forum Discussion
JoshKlint
11 years agoHonored Guest
Leadwerks support for Oculus Rift enters beta
Leadwerks Game Engine support for Oculus Rift has entered beta, and is available now in the indie and standard editions on Steam.

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:
Or in Lua:
New Commands
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.
Beta Limitations
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.
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:
Window* window = Window::Create("My VR Game",0,0,1024,768,Window::Titlebar|Window::VRDisplay);Or in Lua:
local window = Window:Create("My VR Game",0,0,1024,768,Window.Titlebar + Window.VRDisplay)New Commands
Four new commands will help you refine your VR experience:
Vec3 VR::GetHeadRotation()
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.
Vec3 VR::GetHeadPosition()
This command is useful if you're doing any line-of-sight tests with the player.
void VR::Recenter()
Recenters the headset orientation according to the current position and rotation.
void VR::HideWarning()
Disable the Oculus warning popup, typically by pressing space or another key.
Beta Limitations
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.
No RepliesBe the first to reply
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 5 months ago
- 5 months ago
- 5 months ago