Examples and tutorials » Oculus VR

Integration of the Oculus SDK into Magnum.

Image

Note that there is also a WebXR example and a Leap Motion example.

Usage

This example requires you to have the Oculus Runtime 1.3.0 or newer installed. Since Oculus only supports Windows, the same holds for the example. If you don't own a HMD, you can still try the example. If no device is connected, it will create a debug HMD instead.

Key controls

  • F11 — toggle performance HUD
  • F12 — toggle stereo debug HUD
  • M — toggle mirroring
  • Escape — close the application

Credits

This example was originally contributed by Jonathan Hale. The example makes use of the Oculus SDK, see documentation of the OvrIntegration namespace for license information.

Source

Full source code is linked below and also available in the magnum-examples GitHub repository. This example depends on the OvrIntegration library which is not a part of the core Magnum repository, see its documentation for usage instructions.