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

Bug OpenXR Showing Headset Display In World

Discussion in 'VR' started by Johnny-Fuzz, Jun 12, 2023.

  1. Johnny-Fuzz

    Johnny-Fuzz

    Joined:
    Sep 1, 2014
    Posts:
    26
    Hey all,

    I am not exactly sure why I'm seeing this but it happens in the editor and at runtime and I'm thinking it's some sort of debug/visualization setting that I'm just not aware of and/or unfamiliar with.

    Unity is rendering everything as I would expect but for whatever reason it's drawing my Headset display in the world at 0,0,0. It draws it over everything and it only displays it in my headset. I don't see it in the scene view (aka it's not some Unity GameObject or some sort of second display I'm trying to do)

    Here's a picture for reference of what I mean.

    That's captured from the Game View in my HMD upload_2023-6-12_12-4-55.png

    I am guessing this is some sort of setting that I am just not familiar.

    Edit: I think I figured it out: MockHMD package is causing the issue. Even when it's turned off it still renders in scene.

    Thanks for the help,
     
    Last edited: Jun 12, 2023
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,396
    I don't quite understand your issue. Could you phrase it differently?

    Also add stuff like unity version, xr plugin uses, and how the VR player is setup
     
  3. Johnny-Fuzz

    Johnny-Fuzz

    Joined:
    Sep 1, 2014
    Posts:
    26
    Apologies:
    • Version: Unity 2022.2.20
    • XR Plugin: OpenXR
    • Toolkit: Using Unity's XR Interaction Toolkit 2.3.2
    • Unity VR Player setup is the prefab from the Toolkit: 'Complete XR Origin Set Up'
    • URP settings
      • upload_2023-6-12_12-19-42.png
      • Data settings
      • upload_2023-6-12_12-20-25.png

    To go into more details: In the Editor in the Scene view I have the XR Origin Prefab Selected and there's no rendered HDM display, but in the game (and in the headset) I see this blue screen with each eye rendering, in my left eye display I see the left eye and in my right eye I see the right eye... I have no idea why Unity is rendering this in the game. It occurs in the editor and at runtime and it is somehow attached and/or referencing my player position. It seems to be at 0,0,0 at the beginning but as I move the XR Player around it sort of moves with me. I'm going to attempt at looking to see if it's rendering on a specific layer and see if I can not have it render to the HMD at runtime.

    upload_2023-6-12_12-23-30.png
    upload_2023-6-12_12-25-8.png
     
    Last edited: Jun 12, 2023
  4. Johnny-Fuzz

    Johnny-Fuzz

    Joined:
    Sep 1, 2014
    Posts:
    26

    When I turn off every rendering layer... still there - really think this is some sort of debug/visualization option for seeing what the headset sees in Unity I just don't know why it's there and/or how to 'turn it off'
    upload_2023-6-12_12-44-0.png
     
    DevDunk likes this.
  5. Johnny-Fuzz

    Johnny-Fuzz

    Joined:
    Sep 1, 2014
    Posts:
    26
    Okay so I think I narrowed it down... it's 100% something to do with the MockHMD this is the exact render texture that is being run at runtime. Even though I'm not Using the MockHMD = I was using it a while ago and I think maybe that's the issue, that it's rendering at runtime even though I'm not using it.

    upload_2023-6-12_12-45-27.png

    As you can see in my settings
    upload_2023-6-12_12-46-33.png
     
  6. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,396
    Is mockhmd enabled in the xr manager?
     
  7. Johnny-Fuzz

    Johnny-Fuzz

    Joined:
    Sep 1, 2014
    Posts:
    26
    I removed the preview package, even setup my own manual XR Startup to make sure I was only loading one loader (generic OpenXR one), still shows up! It is not selected and I don't even have it 'installed' anymore but yet I believe it's still here lurking in the shadows.

    upload_2023-6-12_13-20-9.png upload_2023-6-12_13-20-42.png
     
  8. Johnny-Fuzz

    Johnny-Fuzz

    Joined:
    Sep 1, 2014
    Posts:
    26
    I'm going to upgrade to the latest 2022.3 tech stream just to be on the latest version of Unity to try and reduce other things - maybe it will reimport everything and clean itself up. I'm also tempted to start a blank project and see if I repeat the steps if it will show up. I have a lot of multi-media content in this project so this will probably take an hour.
     
  9. lianne13

    lianne13

    Unity Technologies

    Joined:
    Jan 31, 2023
    Posts:
    21
    Hey @Johnny-Fuzz is this still an issue after you? If so could you submit a bug report along with a minimal project that reproduces this issue so we may look into it?