cancel
Showing results for 
Search instead for 
Did you mean: 

OpenXR and Gamma Color Mode in Unity

AndyKorth
Level 3

We have a VR app we'd like to bring to Oculus platforms, and it's made in Unity using the gamma colorspace. We're finding that the OVRGradleGeneration build step reports the following:

 

"Oculus Utilities Plugin with OpenXR only supports linear lighting. Please set 'Rendering/Color Space' to 'Linear' in Player Settings"

 

It's not practical for us to convert our app to linear color space at this time. Is there a timeline for gamma color space support in Unity with OpenXR? Is it intended to only ever support linear color space? Any potential workaround for this? We are using OpenXR on other platforms, so we're not enthusiastic about moving to non-OpenXR options on Oculus. 

1 ACCEPTED SOLUTION

Accepted Solutions

AndyKorth
Level 3

Well, we ended up putting in the work to upgrade to Unity 2021. We're using the Vulkan renderer, which works in Gamma color space. Still on Oculus XR plugin version 1.11.2, from the package manager inside Unity. So it all works, and the Unity upgrade was pretty easy for our project this time.

View solution in original post

2 REPLIES 2

AndyKorth
Level 3

I forgot to mention. We're using Unity 2020.3.31f1 and the recommended Oculus XR plugin from the package manager, which is Version 1.11.2. It's hard to make sense of this, but I think that corresponds with "v33" on the Oculus site. 

AndyKorth
Level 3

Well, we ended up putting in the work to upgrade to Unity 2021. We're using the Vulkan renderer, which works in Gamma color space. Still on Oculus XR plugin version 1.11.2, from the package manager inside Unity. So it all works, and the Unity upgrade was pretty easy for our project this time.