Archived Documentation

This version of the guide is out of date. Click here for the latest version.

Preparing for Development: Rift

We recommend Rift developers begin by reviewing our Intro to VR and the PC Developer Guide to become familiar with the Oculus Rift development environment. It is not strictly necessary, but can help orient you to fundamental Rift concepts.

Recommended Configuration

We recommend the following settings in your project:

  • On Windows, enable Direct3D 11. D3D 11 exposes the most advanced VR rendering capabilities. D3D 9 and OpenGL do not currently work in VR with Unity. D3D 12 is currently available as an experimental feature.
  • Use the Linear Color Space. Linear lighting is not only more correct for shading, it also causes Unity to perform sRGB read/write to the eye textures. This helps reduce aliasing during VR distortion rendering, where the eye textures are interpolated with slightly greater dynamic range.
  • Never clone displays. When the Rift is cloned with another display, the application may not vsync properly. This leads to visible tearing or judder (stuttering or vibrating motion).