Examples » Oculus VR

Integration of the Oculus SDK into Magnum.

Image

Note that there is also a WebVR 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.

Source

Full source code is linked below and also available in the magnum-examples GitHub repository.