Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

UI Canvas only visible in one eye w/ HDRP + Single Pass Instancing

Discussion in 'AR/VR (XR) Discussion' started by Aaron-Meyers, May 15, 2020.

  1. Aaron-Meyers

    Aaron-Meyers

    Joined:
    Dec 8, 2009
    Posts:
    297
    I'm using HDRP, Single Pass Instancing w/ Oculus' XR Management plugin and an Oculus Quest w/ Link cable.

    My UI (world space render mode) only draws in one eye when single pass instancing is enabled. Draws in both eyes with Multi Pass.

    Any easy fix for this?
     
  2. EwieElektro

    EwieElektro

    Joined:
    Feb 22, 2016
    Posts:
    42
    < same issue :/
     
  3. FREEZX

    FREEZX

    Joined:
    Apr 2, 2013
    Posts:
    61
    Seanmir likes this.
  4. constantinpopp

    constantinpopp

    Joined:
    Jul 21, 2017
    Posts:
    4
  5. ltomov

    ltomov

    Joined:
    Aug 3, 2017
    Posts:
    60
    I had the same issue, turned out one of these UI elements was using a custom shader. The custom shaders need to be modified as described here in order to support single pass instanced:

    https://docs.unity3d.com/Manual/SinglePassInstancing.html

    Once the modification was done, the problem disappeared.
     
    tenconmar and DevDunk like this.
  6. Reahreic

    Reahreic

    Joined:
    Mar 23, 2011
    Posts:
    276
    While custom shaders do certainly need updating, I've now started encountering this issue despite not having a custom shader on any of the offending UI elements.

    It also looks as though the world space canvases camera reference gets cleared when pressing play. (2022.1.15f1 and URP 13.1.8)

    Edit: I've just as a test overwritten the 'Default/UI' shader with the 'Universal Render Pipeline/2D/Sprite-Unlit' shader and it fixes the issue. Looks like the UI & TMPro shaders didn't fully update despite re-importing them.
     
    Last edited: Sep 16, 2022
  7. VRStudy

    VRStudy

    Joined:
    Oct 24, 2017
    Posts:
    6
    I just had this issue with a clean install of Unity 2022.1.20f1 using the 3D URP pipeline, OpenXR and using a Valve Index. All the GUI elements would show in the left eye, floating around and displaying fisheye.

    The previous version of my project was in 2022.1.8f1 and did not experience this issue with the same setup.

    These are the steps that worked in my instance.

    1. First make sure Edit->Project Settings->Graphics->Scriptable Render Pipeline Settings is set to something other than none, I used URP-Balanced

    2. Close the project, exit Unity.

    3. Go to the projects directory and delete all the sub directories/files under these directories. They will be rebuilt when you restart.

    [ProjectName]/Library/PackageCache
    [ProjectName]/Library/ScriptAssemblies
    [ProjectName]/Library/ShaderCache

    4. Now load in your project, let it rebuild and see if it fixes it.

    Hope it helps anyone else who experienced this.