nowrep / obs-vkcapture

OBS Linux Vulkan/OpenGL game capture
GNU General Public License v2.0
519 stars 25 forks source link

Obs don't capture mangohud on Nobara 36 kde #84

Closed tuxtergames closed 2 years ago

tuxtergames commented 2 years ago

Hi!

I just spend a few days trying to capture mangohud with OBS here using vk-capture without success, I'm using Fedora nobara 36 kde, and follow instructions acording communit. I'm using X11 then I run here "OBS_USE_EGL=1 vk_pro obs" in OBS everything seems run fine, but in game-gapture menu, don't show mangohud, if I try to capture full windows works, acording some posts I launch my game with "VK_LOADER_DEBUG=all" to debug log, I just run steam with this "vk_radv obs-gamecapture mangohud %command%" and I try this too, "VK_INSTANCE_LAYERS=VK_LAYER_MANGOHUD_overlay:VK_LAYER_OBS_vkcapture_64:VK_LAYER_OBS_vkcapture_32 OBS_VKCAPTURE=1 mangohud %command%" but nothing works, I'll apreciatte some help here, If theres a different way to get other logs please help to get here. I using a AMD rx 5600 Screenshot_20220808_092416

log attached

avengers steam-997070.log grid 2019 steam-703860.log mudrunner steam-675010.log

nowrep commented 2 years ago

It would be

VK_INSTANCE_LAYERS=VK_LAYER_MANGOHUD_overlay:VK_LAYER_OBS_vkcapture_64:VK_LAYER_OBS_vkcapture_32 %command%

but you also need to copy the layer files from /usr/share/vulkan/implicit_layer.d to /usr/share/vulkan/explicit_layer.d

tuxtergames commented 2 years ago

It would be

VK_INSTANCE_LAYERS=VK_LAYER_MANGOHUD_overlay:VK_LAYER_OBS_vkcapture_64:VK_LAYER_OBS_vkcapture_32 %command%

but you also need to copy the layer files from /usr/share/vulkan/implicit_layer.d to /usr/share/vulkan/explicit_layer.d

Tks a lot man, one week spend trying to fix it, works now! you can close here.....