Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Black screen on monitor using open xr

Discussion in 'VR' started by dwatt-hollowworldgames, Dec 9, 2022.

  1. dwatt-hollowworldgames

    dwatt-hollowworldgames

    Joined:
    Apr 26, 2019
    Posts:
    104
    For some reason with 2021.3.15f1 using OpenXR, I am getting a black screen on the monitor when running a built version. I have tried also with 2022.2 and am getting the same issue. I have tried running with SteamVR or occulus and both show nothing on the screen. The view in the headset is working fine but the display mirror is not.
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,865
    Do you get output in the scene view when playing?
    Which OpenXR version?
    Build in/URP/HDRP?
    Do you have the output of the VR camera set to monitor 1?
     
  3. dwatt-hollowworldgames

    dwatt-hollowworldgames

    Joined:
    Apr 26, 2019
    Posts:
    104
    URP : 12.1.8
    OpenXR : 1.5.3
    XRmanagement: 4.2.1
    output of camera is set to display1

    headsets Quest2 and Rift
    Oculus App Version 47.0.0.264.341 (47.0.0.264.341)

    works fine in editor but build versions is displayed only in headset. Oculus mirror does work.
     
  4. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,865
    Hmm basically the same setup as me (although I use openxr 1.6).
    Not sure what it could be sadly
     
  5. dwatt-hollowworldgames

    dwatt-hollowworldgames

    Joined:
    Apr 26, 2019
    Posts:
    104
    well then I shall have to break out my index and see if its an oculus runtime issue.
     
  6. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    399
    1.6.0 of OpenXR plugin fixed an issue with black screen + URP:


    [1.6.0] - 2022-11-29
    Fixed
    • Fixed black game window issue when building a URP project.
     
    wadidi, dNazarikInner and gotiobg like this.
  7. dwatt-hollowworldgames

    dwatt-hollowworldgames

    Joined:
    Apr 26, 2019
    Posts:
    104
    Cool what unity version does it need. I don't see a way to update to that version.
     
  8. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,865
    You need to edit the packages.manifest file
     
    wadidi likes this.
  9. dwatt-hollowworldgames

    dwatt-hollowworldgames

    Joined:
    Apr 26, 2019
    Posts:
    104
    Thank You that fixed it!!!
     
  10. Charlicopter

    Charlicopter

    Joined:
    May 15, 2017
    Posts:
    125
    When will this version enter circulation in the Package Manager?
     
  11. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    399
    Soon.. it's in all the release queues and will be the default back to 2020.3. Don't have exact dates. But for now you can edit package manifest as described above.
     
  12. Charlicopter

    Charlicopter

    Joined:
    May 15, 2017
    Posts:
    125
    Okiedokie.

    The reason I ask is because I don't want to struggle with conflicts or unusual cases with the official push to the PM after updating the manifest manually. Is there anything that I should keep in mind / know about as far as conflicts or special behavior when the default version bumps up to 1.6.0? Will I have to change anything after that occurs? Or will my manual update behave itself after the official update?
     
  13. thep3000

    thep3000

    Unity Technologies

    Joined:
    Aug 9, 2013
    Posts:
    399
    Changing manifest will get you the official update. You won't have to do anything special when the default version is bumped for the editor.
     
    Charlicopter likes this.
  14. laurimikaelsuutari

    laurimikaelsuutari

    Joined:
    Dec 12, 2022
    Posts:
    2
    How do I change the manifest file for openxr? It doesnt display anything related to it in there, in packages-lock.json I can see something similar, but it gets defaulted to 1.5.3 even if I change it :(
     
  15. Charlicopter

    Charlicopter

    Joined:
    May 15, 2017
    Posts:
    125
     
    thep3000 likes this.
  16. gotiobg

    gotiobg

    Joined:
    May 10, 2017
    Posts:
    19
    The file needed to be edited is called "manifest.json" located in your project folder then folder Packages.
    Example: C:\Unity\Project\Packages\manifest.json

    After you edit and save the file, your Unity project will update and you will have to restart the editor for the changes to take place.
     
    DevDunk likes this.