OpenComposite OpenXR

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

  1. Gary Layhe

    Gary Layhe New Member

    Joined:
    Oct 5, 2022
    Messages:
    1
    Likes Received:
    0
    Hi. Loving the work. I have a problem though.....
    In game when the HUD and menu are both off I can see the plane that they are both on. Kind of like a ghost of the menu/HUD darkening the image per panel. Anybody know how to get rid of it?
    Pimax 5K+ using OC and OpenXR.
    Thanks
     
  2. MickT

    MickT Active Member AMS2 Club Member

    Joined:
    Jun 5, 2021
    Messages:
    271
    Likes Received:
    75
    @Frank Alexandre was telling me on Discord that if you run in Windows 7 compatibility mode, it'll use SteamVR
     
  3. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    Noted, thanks. I'll give that a go next chance I get
     
  4. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    Confirmed that when I changed the compatibility properties of both the AMS2 exe files to Windows 7 compatibility mode, the game would start in SteamVR when I selected that mode from the Steam desktop app. However, when I tried to run OpenComposite (from the OpenComposite.exe) I got an error. Might try the per game installation with the dll
    upload_2022-10-22_11-55-37.png

    EDIT: Nope. Same error with the per game installation. Also tried disabling OpenXR Toolkit - no difference
     
    Last edited: Oct 22, 2022
  5. Steve Young

    Steve Young Active Member

    Joined:
    Jan 5, 2020
    Messages:
    106
    Likes Received:
    51
    removed
     
    Last edited: Oct 22, 2022
  6. MickT

    MickT Active Member AMS2 Club Member

    Joined:
    Jun 5, 2021
    Messages:
    271
    Likes Received:
    75
    You'll need to check the logs (%localappdata%\opencomposite\logs), but I think Frank was getting the same error, which seemed be related to some things running as admin, and others not.
     
  7. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    Can't make any sense of this:
    2022-10-22 12:02:55.638] Config::Config:206 - Checking for global config file...
    [2022-10-22 12:02:55.639] wini_parse:171 - No config file found at D:\SteamExternal\steamapps\common\Automobilista 2\x64\opencomposite.ini
    [2022-10-22 12:02:55.639] Config::Config:225 - Checking for app specific config file...
    [2022-10-22 12:02:55.639] wini_parse:171 - No config file found at D:\SteamExternal\steamapps\common\Automobilista 2\opencomposite.ini
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_D3D11_enable
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_D3D12_enable
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_opengl_enable
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_vulkan_enable
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_vulkan_enable2
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_composition_layer_depth
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_win32_convert_performance_counter_time
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_convert_timespec_time
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_composition_layer_cube
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_composition_layer_cylinder
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_composition_layer_equirect
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_visibility_mask
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_KHR_composition_layer_color_scale_bias
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_EXT_win32_appcontainer_compatible
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_OCULUS_recenter_event
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_OCULUS_audio_device_guid
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_FB_color_space
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_FB_display_refresh_rate
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_OCULUS_ovrsession_handle
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_OCULUS_perf_stats
    [2022-10-22 12:02:59.324] DrvOpenXR::CreateOpenXRBackend:114 - Extension: XR_EXT_debug_utils
    [2022-10-22 12:02:59.325] DrvOpenXR::CreateOpenXRBackend:119 - Num layers available: 0
    [2022-10-22 12:02:59.325] DrvOpenXR::GetXRAppName:64 - Setting application name to OpenComposite_AMS2AVX
    [2022-10-22 12:02:59.945] oovr_abort_raw_va:206 - Abort!
    [2022-10-22 12:02:59.945] DrvOpenXR::CreateOpenXRBackend:208 - OpenXR Call failed, aborting. C:\projects\openovr\DrvOpenXR\DrvOpenXR.cpp:208 CreateOpenXRBackend. Error code: -51
    xrCreateInstance(&createInfo, &xr_instance)
     
  8. Wolfgang Herold

    Wolfgang Herold I Like Liveries :) AMS2 Club Member

    Joined:
    Apr 3, 2016
    Messages:
    2,425
    Likes Received:
    1,448
    Windows 7 is 12 years old and outdated.
    Its time t0 upgrade ;)
     
  9. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    Running Windows 10. Just had to run AMS2 in compatibility mode to get OpenVR version to run, otherwise Oculus version runs despite selecting SteamVR version. Back to Oculus for now with compatibility mode off.
     
  10. MickT

    MickT Active Member AMS2 Club Member

    Joined:
    Jun 5, 2021
    Messages:
    271
    Likes Received:
    75
    Try disabling OpenXR Toolkit to see if that works. Not saying that should be end state, but may help zeroing in on the problem.
     
  11. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    Yeah, had already disabled that (in my edited post above)
    Opencomposite just doesn't seem to want to work with Oculus. I couldn't get it to run on AC either
     
  12. mbucchia

    mbucchia New Member

    Joined:
    May 23, 2022
    Messages:
    8
    Likes Received:
    5
    Your error -51 means "runtime unavailable" which points to some sort of misconfiguratio most likely.
    Try to:
    1) Make sure Oculus is set as your OpenXR runtime and use AirLink or Link cable: OpenComposite
    2) Disable all OpenXR API layers: OpenComposite (not the OpenXR Toolkit part, jump to the 2nd part with the registry edit)
    Hopefully one of these 2 help.
     
  13. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    Cheers Mathieu, Oculus is definitely OpenXR runtime and working fine in iRacing (thank you!) and dirt rally 2. I'm on Rift S not Quest 2 so not sure the Airlink is relevant, but I'll have a read though those links and report back how I go. I think the main issue though is I can't even lauch in SteamVR mode without Oculus over riding unless I run in Windows 7 compatibility mode, which introduces other issues.

    Of topic, but I also have problems with OpenXR Toolkit v1.2 in rf2. Opencomposite and the Toolkit run fine and can use world scale and post processing, but FFR results in a floating pixelated transparent box on the screen <sigh>
     
  14. MickT

    MickT Active Member AMS2 Club Member

    Joined:
    Jun 5, 2021
    Messages:
    271
    Likes Received:
    75
    I noticed that the other day too - fairly sure it's recent as I hadn't seen it before the last rf2 update.

    btw, someone else claiming to have succeeded in forcing steamvr/OC:
    https://www.reddit.com/r/AUTOMOBILISTA/comments/yb5sxe/comment/iuezsse/?context=3
     
  15. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    Hmmm, so not sure if it is the OVR advanced settings or the --force_steam_VR launch option that did it or a combination of both, but I did notice the latter mentioned on Matthieu's website and had planned to try that. We'll see if I get some time this afternoon to try it out.
     
  16. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    No joy unfortunately with either method for me. Checked both those registry settings and they all appear okay (see screenshots). Tried the --force_steam_vr launch option in a desktop shortcut and no good, it would just launch in desktop mode.

    Tried the OVR Advanced Tools (also with lauch option in SteamVR) and although it would indeed start in SteamVR mode when launching from SteamVR (or Steam desktop with SteamVR already running) I could not get OpenComposite to run when I tried that, either from the exe (just started in SteamVR mode) or from the per game dll file (error -13). Oh well....
    [​IMG]
    [​IMG]
    [​IMG]
     
  17. MickT

    MickT Active Member AMS2 Club Member

    Joined:
    Jun 5, 2021
    Messages:
    271
    Likes Received:
    75
    The VR Gods really don't want you to use OC with AMS2.
    Just to be sure though - make sure you removed the win 7 compatibility settings, and I think that parameter is case-sensitive, so make sure it's exactly the same.
     
  18. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    Yes, did that and used all lower case. I haven't yet tried praying or human sacrifice though...
     
    • Funny Funny x 1
  19. MickT

    MickT Active Member AMS2 Club Member

    Joined:
    Jun 5, 2021
    Messages:
    271
    Likes Received:
    75
    Exactly would mean using some capital letters though? --force_steam_VR
     
  20. UrsineSaturn9

    UrsineSaturn9 Active Member

    Joined:
    Sep 2, 2022
    Messages:
    100
    Likes Received:
    26
    Hmmm, dyslexia intensifies! This is worth another look...
     

Share This Page