View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001488||OBS-Studio||XComposite Capture Source (Linux)||public||2019-06-15 13:53||2019-08-28 15:00|
|Platform||OBS Studio||OS||Linux||OS Version||(Other)|
|Target Version||Fixed in Version|
|Summary||0001488: [Linux] Window capture is semi-transparent for some applications|
|Description||On modern linux distros, some applications are captured as semi-transparent surfaces.|
It seems that is's related to glXFBConfigs changes in recent Xorg/drivers, details here: https://obsproject.com/forum/threads/regression-rocket-league-capture-too-dark.106402/
The suggested workaround works only with proprietary Nvidia drivers, with recent mesa version you get black screen if you enable "Use alpha-less texure format (Mesa workaround)".
Rocket League (native) - I don't have that game myselft, but it's mentioned on forums
Quacke Champions (steam/proton/dxvk) - It's 100% transparent, except for some loading screens
Stormworks (steam/proton/opengl) - It's semi-transparent while in-game.
|Steps To Reproduce||Launch an affected application and try to capture it's window with XComposite plugin|
|Tags||No tags attached.|
||Another report with similar symptoms: https://obsproject.com/forum/threads/cannot-capture-shadow-warrior-2013-with-xcomposite-translucent-gray-or-black-overlay-on-top-of-capture.106362/|
||Thanks for the report, i was actually looking to see if we had a bug report for this issue a while back and couldnt find one.|
On AMD Mesa drivers I am now able to work around this issue by simply adding a Luma Key with default settings.
I encountered this bug after upgrading drivers to Mesa 19.0.1 and it persisted after downgrading back to 18.2.8. I'm using a fully up to date Kubuntu 18.04.2 with a Radeon RX 570 and Xorg 1.20.1
In most of my testing it seemed to primarily affect Vulkan games, but I recently learned that Battletech is also affected. I believe Battletech uses OpenGL.
Xcomposite window capture interprets some layers of the image as transparent, leading either to black backgrounds, blacked out menus, or significantly darker ingame scenes. XShm works perfectly and is not affected.
For more details and video on this bug, here's my bug report to the Mesa driver's tracker: https://bugs.freedesktop.org/show_bug.cgi?id=110539
||Cannot find the Quake Champions post referenced above, and cannot replicate on nvidia drivers (dxvk doesnt work on mesa). Is there a forum post you were referencing?|
||I was able to replicate the issue with nvidia drivers on rocket league.|
||There was no post. AFAIK, Mesa does not include Vulkan implementation only for nvidia, it should work for AMD and Intel GPUs.|
||To clarify in this bug, There are two workarounds. Either enable "Swap red and blue" and "Use alpha-less texture format" (only nvidia or older mesa drivers?), or add a Luma Key (other filters will preserve the alpha channel) with default settings (Luma Max 1.0, Luma min 0.0).|
||I didn't know about Luma Key workaround. I confirm it works with AMD card and latest Mesa, but it only works correctly if you use black background.|
||https://github.com/obsproject/obs-studio/pull/1934 anyone who can get a chance to test this and drop a comment if it works for you (especially amd and ubuntu users) id certainly appreciate it. Currently it works on my machine (nvidia/nouveau). And ill be testing intel soon.|
||Alright, the PR now contains a working fix for all the hardware i could test. If any AMD users can test it I would appreciate it.|
kurufu's PR absolutely works on a variety of tested games which were previously affected, both native Vulkan and DXVK.
As said above, I'm on Mesa 19.1.0 and Kubuntu 18.04 with a Radeon RX 570.
||+1 on kurufu's PR, worked perfectly for a variety of OpenGL games, including Minecraft and all Source engine games.|
||PR Has been merged, this can probably be closed now.|
|2019-06-15 13:53||rndltrz||New Issue|
|2019-06-15 14:06||rndltrz||Note Added: 0004590|
|2019-06-15 18:14||kurufu||Note Added: 0004591|
|2019-06-17 03:48||Kon||Note Added: 0004594|
|2019-06-24 05:53||kurufu||Note Added: 0004621|
|2019-06-24 06:11||kurufu||Note Added: 0004622|
|2019-06-24 17:55||rndltrz||Note Added: 0004623|
|2019-06-25 00:46||kurufu||Note Added: 0004627|
|2019-06-25 04:53||rndltrz||Note Added: 0004628|
|2019-06-25 06:47||kurufu||Note Added: 0004629|
|2019-06-28 21:30||kurufu||Note Added: 0004635|
|2019-07-01 09:12||Kon||Note Added: 0004637|
|2019-08-05 21:01||OtterGauze||Note Added: 0004691|
|2019-08-11 20:38||kurufu||Note Added: 0004698|