OpenComposite OpenXR

Discussion in 'Automobilista 2 - General Discussion' started by NuScorpii, May 15, 2022.

  1. Michael Roth

    Michael Roth New Member AMS2 Club Member

    Joined:
    Jun 20, 2023
    Messages:
    11
    Likes Received:
    1
    Thank you MickT
     
  2. mikesch250

    mikesch250 Active Member

    Joined:
    May 26, 2024
    Messages:
    51
    Likes Received:
    105
  3. Erik Green

    Erik Green New Member

    Joined:
    Dec 4, 2023
    Messages:
    7
    Likes Received:
    1
    May have asked this in this thread but cannot find anything so: Is there a way to get SimHub overlays in my Pimax? I have AMS2 working fine using Opencomposite and FFR via XRToolkit?
    Done a lot of googling but cannot find NE thing spicific except that you 'cannot' do it via OpenComposite. Hope that is not correct?
     
  4. Roy Niessink

    Roy Niessink Well-Known Member AMS2 Club Member

    Joined:
    Mar 27, 2020
    Messages:
    1,608
    Likes Received:
    754
    Yes thats possible, i'm using OpenKneeBoard to have my simhub overlays/discord overlay and streamchat in my VR headset.
     
    • Friendly Friendly x 1
  5. Sojourner82

    Sojourner82 New Member

    Joined:
    Nov 11, 2024
    Messages:
    3
    Likes Received:
    1
    Hey y'all, i have a Quest 3 and ive been playing AMS2 with link cable using open composite (openxr) and openxrtoolkit (although the toolkit options don't show in AMS2).
    Lately i have purchase virtual desktop and have been playing with that. For some reason when i go to launch AMS2 in VDXR it opens the meta quest app and errors. I think it is erroring about openxr, but im not sure what is going on? Im playing LMU and AC using opencomposite and VDXR and they work fine. Im not all that knowledgeable and the details of vr, im just good at following directions and finding a logical way to make it work. i know how to work PCs in general. Any ideas? I would like to switch to VD for a while.
     
  6. dryheat94

    dryheat94 Well-Known Member AMS2 Club Member

    Joined:
    Sep 16, 2021
    Messages:
    582
    Likes Received:
    283
    You need this. GitHub - rodolZ80/bypass-oculus-detector: Windows Library that simulates not having the Oculus service running and having the VR Headset disconnected.
     
    • Informative Informative x 1
  7. Sojourner82

    Sojourner82 New Member

    Joined:
    Nov 11, 2024
    Messages:
    3
    Likes Received:
    1
    Yep i found it just a few minutes ago, thanks!
     
    • Like Like x 1
  8. dryheat94

    dryheat94 Well-Known Member AMS2 Club Member

    Joined:
    Sep 16, 2021
    Messages:
    582
    Likes Received:
    283
    And ignore the part where they say to set the default OpenXR to Oculus. VD takes care of all that, just choose VDXR codec.
     
  9. krisoo7

    krisoo7 New Member

    Joined:
    Dec 2, 2024
    Messages:
    1
    Likes Received:
    0
    Same as me new to VR. Coming from Playstation5, still race ACC in our fantastic 10tenth racing community I am Fed up everytime wasting an hour+ tinkering with all those runtimes. Haven’t even seen openXR toolkit in AMS2. So how do I know if game launched with openXR? Can you make step-by-step manual how you get in AMS2 with openXR now. I believe you learned it. Many thanks, kris
     
  10. Tomek666

    Tomek666 New Member

    Joined:
    Dec 20, 2022
    Messages:
    23
    Likes Received:
    3
    I may have stumbled accross my answer by accident:

    -launch steam
    -launch Mixed Reality Portal
    -launch AMS2 (in steam VR mode)

    Becuase Mixed Reality Portal is already running,
    OpenXR can just hook into it without launching Steam VR first.

    If you just launch AMS2 normaly out of steam (without any VR portal running),
    SteamVR launches to launch Mixed Reality Potral.

    Hope that makes sense.

    Side note, can anyone confirm NIS resolution scaling is not compatible with AMS2?
     
  11. TeiTenga

    TeiTenga New Member

    Joined:
    Feb 1, 2025
    Messages:
    1
    Likes Received:
    2
    Hi!!!
    I'm just writing to thank everyone for the help I've found in this thread. I am a QUEST 3 and AMS2 user, so you can imagine the work it took me to configure it. I had been dedicated to this for 2 weeks, until I found in this thread something related to the DLL that forces the execution of SteamVR for AMS2+OCULUS users.
    Many thanks!!!
    Greetings!!!
     
    • Like Like x 2
  12. Scootju

    Scootju New Member

    Joined:
    Apr 6, 2024
    Messages:
    17
    Likes Received:
    5
    Good morning, everyone!

    I have doubts about whether I have properly configured the system for games to launch through OpenComposite. In fact, this is my setup:

    In the root folder of the game, I have the bypass file "LibOVRRT64_1.dll", and in the game's X64 folder, I have the openvr_api.dll file. In the Meta software, I set the runtime environment to OpenXR, and that's it. I launch the game through SteamVR, but it opens in OpenXR.

    But my doubt is that I can have the OpenComposite program disabled, and it still seems to run through OpenXR. In fact, right now it is disabled, and I just finished playing Automobilista 2, and it ran through OpenXR, with OpenXR Toolkit working perfectly.

    So my question is: Am I doing it right? Shouldn't OpenComposite be enabled for the game to run through OpenXR? Does the bypass "LibOVRRT64_1.dll" replace OpenComposite, and that's why I can have OpenComposite disabled?

    Thank you all so much for your help.
     
  13. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,485
    Likes Received:
    1,478
    there are 2 ways.
    Either you use opencomposite and this copies the dll temporarily to the game folder or you copy the dll yourself permanent to the game folder.
    If you do both, its counter productive ;)
     
    • Agree Agree x 1
  14. Scootju

    Scootju New Member

    Joined:
    Apr 6, 2024
    Messages:
    17
    Likes Received:
    5
    But I don't understand something. Do I download the ".dll" myself from the GitLab download page (Campbell Suter (ZNix) / OpenComposite · GitLab) and, as stated in the instructions, paste that ".dll" into the game's X64 folder?

    Additionally, I also download OpenComposite, which I activate, and also the "LibOVRRT64_1.dll," which I paste into the root of the game's folder.

    Am I doing this twice? If I activate OpenComposite, should I not paste the ".dll" into the game's folder? Should I activate OpenComposite, paste the ".dll" into the game's folder, and not paste the "LibOVRRT64_1.dll" file into the root folder? Am I duplicating the process?

    I would really appreciate it if you could tell me the correct steps to follow to do it properly. Thanks for your response!
     
  15. dryheat94

    dryheat94 Well-Known Member AMS2 Club Member

    Joined:
    Sep 16, 2021
    Messages:
    582
    Likes Received:
    283
    You do one or the other. You either use the per game DLL (which you have done) or you use the OC launcher, not both.

    1: LibOVRRT64_1.dll / required

    2: openvr_api.dll OR opencomposite launcher

    3: open xr toolkit / optional

    I prefer the per game dll as the launcher always grabs the latest version and sometimes they break it. Once you have a working copy of the dll there is really no need to get a newer version.
     
    Last edited: Feb 21, 2025
  16. Scootju

    Scootju New Member

    Joined:
    Apr 6, 2024
    Messages:
    17
    Likes Received:
    5
    I spent an entire morning testing, and in the end, I created a guide for anyone who might need it.

    OpenComposite Guide for Meta Link and Virtual Desktop
    1. Preparation

    To play with OpenComposite using Meta Link (wired) or Virtual Desktop, follow these steps:

    1. Copy the "LibOVRRT" file to the game's root folder. This step is mandatory.
    2. Manage the "openvr_api.dll" file:
      • There are two versions:
        • Original: Installed with the game.
        • Modified: Downloaded from the OpenComposite GitLab page.
      • Both files must be placed in the game's "X64" folder.
    2. Configuration Options

    After pasting the LibOVRRT file and enabling the Meta Link or Virtual Desktop option to set Meta Quest Link as the OpenXR runtime (this is mandatory in both cases), you have two options:

    Option 1: Use the original "openvr_api.dll" file
    • In this case, the game will launch with OpenXR through OpenComposite, depending on its configuration:
      • If OpenComposite is set to "Switch to OpenComposite", the game will use OpenXR.
      • If OpenComposite is set to "Switch to SteamVR", the game will launch through SteamVR.
    Option 2: Use the modified "openvr_api.dll" file
    • With this file, the game will always run with OpenXR, regardless of OpenComposite’s configuration.
    • OpenComposite will have no control over this; the game will launch in OpenXR whether OpenComposite is enabled or disabled.
    Note: This process is the same whether you play with Meta Link or Virtual Desktop.
     
    • Informative Informative x 1
    • Useful Useful x 1
  17. BlackHoleGenerator VR

    BlackHoleGenerator VR New Member

    Joined:
    Aug 21, 2024
    Messages:
    3
    Likes Received:
    0
    Hello.
    I m running ams with the opencomposite dll and openxr tool kit and everything is working fine and I get a major perf upgrade with my 3080.
    The only problem I have now is making motion compensation work with my dofH3. Everything was working f8ne with steam Vr but wasn t able to make openxr motion compensation working with opencomposite in AmS2.
    Did someone find a solution ?
    Thanks a lot
     
  18. BlackHoleGenerator VR

    BlackHoleGenerator VR New Member

    Joined:
    Aug 21, 2024
    Messages:
    3
    Likes Received:
    0
    Edit. I found the solution. I needed to put the motionscompensation api layer after VD API layer.

    Everything is working like a Charm now !
     
    • Useful Useful x 1

Share This Page