Search Unity

Oculus Quest black screen after converting to LWRP

Discussion in 'VR' started by nols, Jun 1, 2019.

  1. nols

    nols

    Joined:
    Aug 24, 2018
    Posts:
    3
    I have a project that I was able to deploy on the Quest. I switched over to LWRP to see if it would get better performance but now the screen is mostly black. If I move my head around, then sometimes I can see part of the scene for a frame or so. Any ideas what would cause this? Is it possible that the LWRP is just less performant? I am using Oculus Integration 1.37 with Unity 2019.1.4f1.
     
  2. nol_b

    nol_b

    Joined:
    Apr 1, 2017
    Posts:
    4
    AM-Dev and ROBYER1 like this.
  3. Simone82

    Simone82

    Joined:
    Jun 20, 2016
    Posts:
    2
    Hi, the shader in LWRP is different that the standard shader. OVRManager have a void that make a fade from black at the start.
    Comment line 872 - 875 about OVRManager.cs
    public static void SetColorScaleAndOffset(Vector4 colorScale, Vector4 colorOffset, bool applyToAllLayers)
    {
    OVRPlugin.SetColorScaleAndOffset(colorScale, colorOffset, applyToAllLayers);
    }

    and the problem is solved :)