OpenComposite OpenXR

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

  1. tonaz

    tonaz New Member

    Joined:
    Jul 4, 2020
    Messages:
    20
    Likes Received:
    0
    oh i see, so i have to uninstall this?
    Get OpenXR Tools for Windows Mixed Reality from the Microsoft Store
     
  2. MickT

    MickT Active Member AMS2 Club Member

    Joined:
    Jun 5, 2021
    Messages:
    271
    Likes Received:
    75
  3. ChrisFilter06

    ChrisFilter06 New Member

    Joined:
    Dec 12, 2022
    Messages:
    1
    Likes Received:
    0
    Just a note to say, firstly, thanks very much for everyone’s effort and advice. I had the issue where it wouldn’t load as SteamVR or OculusVR kept taking over, but using the advice on here I finally got there. Sadly I couldn’t get settings that worked for me (always looked super shimmery no matter what I did) but I learnt a bit about VR along the way!

    The other reason for my post is a public service announcement for Meta Quest 2 users. I found that I get much better graphics using Oculus than OpenComposite or SteamVR. But you must use Oculus Tray Tools to find the right sweet spot of super sampling and FOV multiplier. For me that’s super sampling at 1.4 and FOV multiplier at 0.8 and 0.65. In the AMS2 settings I’ve got for mostly high but cars on ultra. That runs at a pretty solid 120fps with ASW on. Very very occasional drops to 60fps. obviously you need to enable 120 fps in Oculus Home.

    That’s with a 3600x and a 3070ti.

    Hopefully saves someone going down a rabbit hole like me when Oculus is actually, for me, much better visuals and much simpler.
     
    • Informative Informative x 1
  4. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,422
    Likes Received:
    1,448
    always use native Oculus system if a game supports it.
    SteamVR on Oculus is only needed, if the game doesn't support oculus directly, e.g. F1 22
     
    • Like Like x 1
  5. g.copettini

    g.copettini New Member

    Joined:
    Dec 21, 2022
    Messages:
    10
    Likes Received:
    0
    hi everyone, i recently bought automobilista 2 and i love it but i have a problem....
    I use a Pimax 5K+ with PimaxXR+OpenXR+OpenComposite and the game runs very well BUT I have two rectangles (one inside the other) in the center of the VR and it seems to me the size of the menus; these two rectangles are red and almost transparent but they are very noticeable.
    I don't know if it happened to anyone, I tried searching but I couldn't find anything.
    I hope to solve it, with open wheel cars it is very annoying!!!
    If i take a screenshot by OpenXRTollkit i can't see the double rectangle instead i see it in VR. So isn't a render problem and confirm that the rectangle have the same size of menu (when in pause) and the same size of total HUD...
    I try SteamVR but i have a significant loss of frame (10 about) and a very loss when there is rain (20 or more) so i want use OpenXR!!!
     
  6. MickT

    MickT Active Member AMS2 Club Member

    Joined:
    Jun 5, 2021
    Messages:
    271
    Likes Received:
    75
    I think that bug came with pitool 283, and currently the only fix is to downgrade to 281. I don't have the headset myself; just passing on what I saw in the openxr toolkit discord.
     
    • Like Like x 1
  7. g.copettini

    g.copettini New Member

    Joined:
    Dec 21, 2022
    Messages:
    10
    Likes Received:
    0
    Hi MickT, i have 271 version because during upgrade brick my Pimax and so i return at this version...
     
  8. DaWorstPlaya

    DaWorstPlaya Active Member

    Joined:
    Aug 5, 2020
    Messages:
    356
    Likes Received:
    160
    Sounds like a Pimax problem, I think you may find better support for this issue in the Pimax forums/discord group. This is exactly the reason I avoid Pimax headsets, it seems like their software support is all over the place.
     
  9. NuScorpii

    NuScorpii Well-Known Member

    Joined:
    Apr 7, 2020
    Messages:
    433
    Likes Received:
    471
    • Like Like x 1
  10. g.copettini

    g.copettini New Member

    Joined:
    Dec 21, 2022
    Messages:
    10
    Likes Received:
    0
    Hi NuScorpii, I don't know this software, I use OpenXR Toolkit+PimaxXR+OpenComposite and Pimax 5K+...
    Does this software replace one of the ones I use? What advantages does this software have?

    WAIT....maybe I understood.... is for being able to record video with OBS?
     
  11. NuScorpii

    NuScorpii Well-Known Member

    Joined:
    Apr 7, 2020
    Messages:
    433
    Likes Received:
    471
    Yes this for recording VR in OpenXR directly to OBS.
     
  12. Jp t

    Jp t New Member

    Joined:
    Jan 11, 2023
    Messages:
    1
    Likes Received:
    0

    Can you explain how you were finally able to make it works? Is it using steamOVR and forcing to launch in SteamVR?

    Was able to make it works with ACC, DR2 but ams2 and AC, still looking to find a way..

    Thx
     
  13. Kdaneracer

    Kdaneracer New Member AMS2 Club Member

    Joined:
    Mar 29, 2020
    Messages:
    18
    Likes Received:
    2
    Does it work with the VIVE PRO2?
     
  14. Wykster

    Wykster New Member

    Joined:
    Dec 28, 2022
    Messages:
    9
    Likes Received:
    1
    I am having trouble finding an answer anywhere as to whether or not installing OC is beneficial for AMS2 if launching the game via Oculus mode. Any assistance on this would be greatly appreciated.
     
  15. TheMattyOnline

    TheMattyOnline Active Member AMS2 Club Member

    Joined:
    May 31, 2019
    Messages:
    249
    Likes Received:
    179
    Specifically, using OpenComposite/OpenXR will do nothing at all when launching in Oculus mode with a Rift S or Quest etc. It doesn't use it at all when launching via the Oculus SDK.

    When launching a game through SteamVR (OpenVR), then OC/OXR intercepts the calls and launches the game through OpenXR, bypassing Steam/OpenVR.

    Now the issue with all this on an Oculus headset is AMS2 has a problem here. If it detects an Oculus device, it simply will not allow the game to launch in Steam/OpenVR no matter what launch option or launch parameters you use. I and many others have asked why the game can't launch through SteamVR on an Oculus headset, but there's never any answer to this.

    There are workarounds however.

    I have a Rift S. I have replaced the OpenVR.dll in the X64 folder with the OC/OXR one.
    Use either a small program off github, called Oculus killer, or Advanced OVR settings, a free program on Steam, that you can set to kill the Oculus runtime and force SteamVR.
    In SteamVR, you have to set SteamVR as the OpenXR runtime, and make sure SteamVR is open when launching AMS2 in SteamVR mode.

    I do the above, so that i can use the OpenXR toolkit for various reasons.

    What i'm not really sure about, is the performance disadvantages of doing the above. Clearly, SteamVR is open, so my Rift S is still using that to access AMS2, but the toolkit is open in the HMD, so it's also clearly using OXR.

    A rather long winded way of saying i'm not really sure to your question!
     
  16. MickT

    MickT Active Member AMS2 Club Member

    Joined:
    Jun 5, 2021
    Messages:
    271
    Likes Received:
    75
    Depends if you're a glass half full or half empty kind of person.
    Your method still incurs the cost of going through SteamVR. In my experience with a reverb g2, avoiding SteamVR by using OC gave me a 10-15% reduction in gpu frame times. I was able to get at least the same again using FSR in the OpenXR Toolkit. So, you're missing out on that initial 10-15%, but still able to benefit from the features of OpenXR Toolkit. That said, you could probably just use vrperfkit for that, only need one tool instead of two (OC & OXRTK), and still be able to use things like SteamVR overlays etc. that don't work through OpenXR.
     
    • Like Like x 1
  17. Wykster

    Wykster New Member

    Joined:
    Dec 28, 2022
    Messages:
    9
    Likes Received:
    1
    Thank you much for taking the time to respond so thoroughly, it's enough for me to shrug and feel that it runs well enough in Oculus mode. I don't yet have the confidence or tech knowledge to attempt rewriting how games are launched. Thank you again.
     
  18. Wilfred de Ruijter

    Wilfred de Ruijter Active Member AMS2 Club Member

    Joined:
    May 10, 2020
    Messages:
    251
    Likes Received:
    98
    I recently got a Pico 4 headset and I didn’t read anything about it in this thread.
    Installing it went well. Running it was something else. I did a system wide install of OpenComposite, but after receiving a -2 error-code I had to install it just for AMS2.

    With OpenXR I couldn’t get the menu to pop up. After changing the navigation keys from F1+F2+F3 to UP, Left, Right and DOWN I got it to pop up and set some settings. I am still fine tuning the image.

    The first instance it worked I saw the menu way down. While driving I could adjust the seat height, but the menu was still too low. I had to bind a key in AMS2 to recenter the VR headset. That way the menu is shown at the right spot.

    At the moment I run it, but the text (e.g. fastest lap) from the game apears really very small. I think it has to do with OpenXR/OpenVR because before I started to use OpenXR the text size was fine.
    upload_2023-1-27_16-42-2.png
    Does anybody know how to solve this?
     
  19. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,422
    Likes Received:
    1,448
    the fps text comes from OpenXR overlyy.
    All the others are from ingame hud.
    The size of ingame hud is not editable, but you can set the plane where it is projected nearer to you or set the scale.
    Afaik, it cannot be done in the game itself, but open the file openvrsettings.xml in documents\Automobilista 2 in an xml-editor and edit this line
    <prop name="HUDSettings" offSetX="-0.011293" offSetY="-0.042027" offSetZ="-0.310825" scale="0.303003" rotateX="-0.231001" rotateY="0.003453" rotateZ="-0.001319" rotateW="0.972946" />
    "offsetZ" and "scale" should be the right ones to edit for your needs
     
  20. Wilfred de Ruijter

    Wilfred de Ruijter Active Member AMS2 Club Member

    Joined:
    May 10, 2020
    Messages:
    251
    Likes Received:
    98
    It worked, but with some fine tuning the text is readable. Danke schön!
     
    • Friendly Friendly x 1

Share This Page