Meta XR Simulator does not support OpenGL, while SDK does
Hello, I've tried to launch the hello_xr example from OpenXR-Source-SDK with OpenGL backend. There is the (shortened) output: $ XR_RUNTIME_JSON=/d/meta_xr_simulator/meta_openxr_simulator.json ./hello_xr.exe -G OpenGL [12:03:20.094][Info ] Press any key to shutdown... [Meta XR Simulator][00000.003322][V][arvr\projects\openxr_simulator\src\sim_configurationregistry.cpp:31] Initializing configuration man ager [Meta XR Simulator][00000.003511][I][arvr\projects\openxr_simulator\src\sim_configurationregistry.cpp:43] Configuration path not set, de fault value will be used: D:\meta_xr_simulator\config\sim_core_configuration.json [Meta XR Simulator][00000.003831][I][arvr\projects\openxr_simulator\src\sim_configurationregistry.cpp:148] Persistent Data loaded from " C:\Users\adik\AppData\Roaming\MetaXR\MetaXrSimulator\persistent_data.json" [Meta XR Simulator][00000.004080][I][arvr\projects\openxr_simulator\src\sim_configurationregistry.cpp:179] Configuration loaded from "D: \meta_xr_simulator\config\sim_core_configuration.json" [Meta XR Simulator][00000.004275][I][arvr\projects\openxr_simulator\src\logs\sim_logs_service.cpp:150] Saving log to 'C:\Users\adik\AppD ata\Roaming\MetaXR\MetaXrSimulator\logs\meta_xrsim.log' 16/08 12:03:20.100 {DEBUG} [AnalyticsLifeTime] Pre initialization finished. 16/08 12:03:20.100 {DEBUG} [AnalyticsLifeTime] Post-migration initialization finished. % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 29 0 29 0 0 189 0 --:--:-- --:--:-- --:--:-- 190 [Meta XR Simulator][00000.192175][I][V][arvr\projects\openxr_simulator\src\interface\sim_main.cpp:53] xrNegotiateLoaderRuntimeInterface( ): loaderInfo: minApiVer(1.0.0) maxApiVer(1.1023.4095) [Meta XR Simulator][00000.192363][I][arvr\projects\openxr_simulator\src\sim_xrapistack.cpp:134] Interop is activated. All other graphics API will be supported through the Vulkan compositor [Meta XR Simulator][00000.192504][I][arvr\projects\openxr_simulator\src\sim_xrapistack.cpp:151] Set up XrApiLayers (Product Flavor Publi c, Version 1.77.0, Batchmode 0) [Meta XR Simulator][00000.192858][I][arvr\projects\openxr_simulator\src\plugin\sim_xrapilayer_plugins.cpp:47] [XrApiLayerPlugins] Plugin s folder found: D:\meta_xr_simulator\plugins [Meta XR Simulator][00000.193052][I][arvr\projects\openxr_simulator\src\plugin\sim_xrapilayer_plugins.cpp:20] [XrApiLayerPlugins] Plugin found: InputPlugin ... [Meta XR Simulator][00000.209127][W][V][arvr\projects\openxr_simulator\src\sim_xrapistack.cpp:378] Extension XR_FB_body_tracking is not supported for device type Oculus Rift S [12:03:20.306][Info ] Available Layers: (0) Error [GENERAL | xrCreateInstance | OpenXR-Loader] : LoaderInstance::CreateInstance, no support found for requested extension: XR_KHR_op engl_enable Error [GENERAL | xrCreateInstance | OpenXR-Loader] : xrCreateInstance failed [12:03:20.307][Error ] XrResult failure [XR_ERROR_EXTENSION_NOT_PRESENT] Origin: xrCreateInstance(&createInfo, &m_instance) Source: C:\Users\adik\Downloads\OpenXR-SDK-Source\src\tests\hello_xr\openxr_program.cpp:200 [Meta XR Simulator][00000.211189][I][arvr\projects\openxr_simulator\plugins\InputPlugin\input_plugin.cpp:109] onPluginStateChange(3 -> 4 ) [Meta XR Simulator][00000.211297][I][arvr\projects\openxr_simulator\plugins\InputPlugin\input_plugin.cpp:97] InputPlugin will be deregis tered It clearly does not support XR_KHR_opengl_enable extension. This is surprising, since SDK seems to support it https://github.khronos.org/OpenXR-Inventory/extension_support.html#meta_pc D3D11 hello_xr backend works fine.Solved95Views0likes2CommentsWashed out (double gamma correction) on OpenGL
No matter which swapchain format I specify, my OpenGL application always renders washed out. That implies that OpenGL always thinks it is rendering to a linear render target, while OpenXR always thinks I am submitting an sRGB render target. Changing the swapchain format that I ask OpenXR to create between sRGB and linear makes no difference, and neither does glEnable(GL_FRAMEBUFFER_SRGB).3KViews1like4Comments