Develop
Develop
Select your platform

Set Color Space

The ColorSpace API allows developers to set the color space in which they have mastered their app so the appropriate colors are shown when the app appears on the headset’s displays. Once an app’s color space has been set, developers should see that the colors on the headset match the colors in which the app was mastered.
Mastering to a known color space on a monitor and using the ColorSpace API can reduce iteration time during development by minimizing time spent checking and adjusting colors on the device.
For information on color spaces, see the Color and Brightness Mastering Guide.

Set App’s Color Space

The ovr_SetClientColorDesc function is used to set the color space used by the client app. This function takes a pointer to the ovrSession context and a pointer to an ovrHmdColorDesc structure that contains an ovrColorSpace enumeration that declares the color space. Once the app’s color space has been set, the runtime will adjust the color for the headset’s displays. Note that this function only handles color space remapping. It does not affect brightness, contrast, or gamma curves.

Get the HMD’s Color Space

The ovr_GetHmdColorDesc function takes a pointer to the ovrSession context and returns a fixed value in an ovrHmdColorDesc structure specifying the color space of the current HMD. Note that this is not a “get” function for ovr_SetClientColorDesc.
Supported color space values in ovrColorSpace are as follows:
Value
Color Space
ovrColorSpace_Unknown
Default value until client sets calls `ovr_SetClientColorDesc`.
ovrColorSpace_Unmanaged
Specifies that no color correction should be applied. Recommended for research and testing only.
ovrColorSpace_Rift_CV1
Oculus Rift's unique color space.
ovrColorSpace_Rift_S
Oculus Rift S's unique color space.
ovrColorSpace_Quest
The Meta Quest native color space, which is similar to the Oculus Rift CV1 color space.
ovrColorSpace_Rec_2020
Rec. 2020 color space. This color space uses D65 (daylight) for its white point.
ovrColorSpace_Rec_709
Rec. 709 color space. Uses the same primary color coordinates as sRGB.
ovrColorSpace_P3
DCI-P3 color space with D65 white point.
ovrColorSpace_Adobe_RGB
Adobe RGB color space. Similar to sRGB, but with deeper greens using D65 for its white point.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon