Search Unity

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

Bug SteamVR + OpenXR + OpenGlCore doesn't work

Discussion in 'VR' started by SleepingFurrBall, Jul 21, 2023.

  1. SleepingFurrBall

    SleepingFurrBall

    Joined:
    Feb 2, 2023
    Posts:
    3
    Hi!
    I'm beginning on VR and wanted to test with a basic config:
    Opened Unity hub -> new project -> set unity to 2022.1.23f1 and use the VR project preset.
    After the project opened, I changed the windows graphics API to OpenGLCore. (I'm on a Window10)
    selected steamVR as runtime in the XR manager of openXR.
    Started the SteamVR application and plugged a Valve Index in.
    When I start the editor, I get the warnings in the screenshot and nothing happens in the HMD, moving the HMD doesn't affect the preview in unity.
    I have ensured that the color range is indeed set to Linear.
    I have managed to run OpenXR and steamVR using the directX graphics API as a test and it worked well but i need to use OpenGLCore for what i want to do. Screenshot (1).png
    Thanks in advance!
     
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,865
    Why do you need openGLCore?
    I don't know any steamvr project that runs on openglCore on windows.
    Also worth trying a recent unity version, this one is old
     
  3. SleepingFurrBall

    SleepingFurrBall

    Joined:
    Feb 2, 2023
    Posts:
    3
    Thanks for your feedback!
    I need to use OpenGLCore because I'm using a low level plugin interface to run code relying on openGL.
    According to the openXR documentation it should work for version since 2020 LTS and from what i found, the SteamVR Plugin is different from the steamVR support.
    I've just tested the latest available unity version with the same process and got the same results.
     
  4. Pierre-Olivier-Pigny

    Pierre-Olivier-Pigny

    Joined:
    Sep 5, 2018
    Posts:
    2
    Hi, I have the exact same problem.

    OpenGL seem to be incompatible with OpenXR on windows.

    It should not !

    I have tryed Occulus, SteamVR with OpenGLCore and OpenGLES3 with and empty project only DirectX is working.

    with this configuration we stay in home in the headset, change to directx and it works.

    Is Opengl only supported for building android app for quest ?
     
  5. Pierre-Olivier-Pigny

    Pierre-Olivier-Pigny

    Joined:
    Sep 5, 2018
    Posts:
    2
    The solution i found is to create a Unity 2019 project (and not use xr plugging management), the old built in VR system in playerpref works.
     
  6. SleepingFurrBall

    SleepingFurrBall

    Joined:
    Feb 2, 2023
    Posts:
    3
    Thank you for your reply, I might have to do the same even if this particular LTS ended in 2022 which was my reason to attempt using XR plugin management instead.