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.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
.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. |