SOLVED

Gamma/brightness wrong when using Unity with HDRP on Windows Mixed Reality

Copper Contributor

Hi I have a scene in Unity 2020, which I am trying to get working with Mixed Reality XR Plug-in. So far I imported MRTK, enabled "Windows Mixed Reality" in Project Settings -> XR Plug-in Management, got hmd position and controller input working again by following migration notes by Unity. I have an HP Reverb headset (gen 1). The problem I am facing right now is that scene looks visually different in HMD when working with Windows Mixed Reality natively. It is much darker than in editor window and overall ugly. If I switch to SteamVR plugin, the picture in the device looks exactly like it is supposed to look (using the exact same headset). Here is a screenshot of the problem:

Steam VR XR Plug-inSteam VR XR Plug-inMixed Reality XR Plug-inMixed Reality XR Plug-in

The scene is exactly the same, I used the camera rig that comes with MRTK in both cases, I didn't touch any of the settings (light, quality, render, HDRP,...), the only difference is in the XR Plug-in Management:

correct visual output using steamcorrect visual output using steamincorrect visual output using Mixed Realityincorrect visual output using Mixed Reality

Can you please point me to the right direction to solve this problem? Are there some settings that should be different for Mixed Reality to work correctly with HDRP?

 

Thank you for your help.

3 Replies

@BDarVirtu Color Space is configurable depending on the platform (in Build settings), I'm guessing one is set to linar, the other is set to Gamma.

More info here : Unity - Manual: Linear or gamma workflow (unity3d.com)

@valentinlgsThe render settings are the same, the platform is the same. Gamma is set to linear. The only difference is in the XR plugin management. Literally, you can just switch the plugin in XR management, hit play and you can right away see the change in HMD. (even though in the editor everything looks the same)

best response confirmed by BDarVirtu (Copper Contributor)
Solution

@BDarVirtuSo finally I was able to pinpoint the problem. The Gamma settings actually need to be different, for the render to look the same. If I use Open VR, and the Color space in player settings is set to Linear, the render looks correctly. If I switch to Mixed reality, I need to switch the color space to Gamma. But I would be happier with a solution that lets me use Linear color space and somehow informs mixed reality that this is a color space I am actually planning to use, not the other way around... Hopefully, this is just a bug or can be adjusted somewhere in Windows Mixed Reality settings...

1 best response

Accepted Solutions
best response confirmed by BDarVirtu (Copper Contributor)
Solution

@BDarVirtuSo finally I was able to pinpoint the problem. The Gamma settings actually need to be different, for the render to look the same. If I use Open VR, and the Color space in player settings is set to Linear, the render looks correctly. If I switch to Mixed reality, I need to switch the color space to Gamma. But I would be happier with a solution that lets me use Linear color space and somehow informs mixed reality that this is a color space I am actually planning to use, not the other way around... Hopefully, this is just a bug or can be adjusted somewhere in Windows Mixed Reality settings...

View solution in original post