obs-linuxbrowser icon indicating copy to clipboard operation
obs-linuxbrowser copied to clipboard

transparent white appears gray

Open codl opened this issue 7 years ago • 6 comments
trafficstars

when something transparent white is in a page, it appears gray in the scene. compare this test page:

  • in chrome: 2018-04-23t18-14-03-0000
  • in obs-linuxbrowser (overlaid over white for clarity): 2018-04-23t18-13-40-00oo

codl avatar Apr 23 '18 16:04 codl

CEF seems to be using premultiplied alpha values. It doesn't detect any background colors: http://magpcss.org/ceforum/viewtopic.php?f=14&t=13763

NexAdn avatar May 18 '18 15:05 NexAdn

Accidentially clicked on close^^

NexAdn avatar May 18 '18 15:05 NexAdn

this is because the individual website has not added a background color and for some reason expect all browsers to use white as a default. I made a custom css file to compensate for this but yea that is quite a pain to have to do.

MichaelTunnell avatar Aug 14 '18 00:08 MichaelTunnell

@MichaelTunnell that's not what my issue is about. i build custom pages to overlay on my stream. i intentionally made something transparent white, but it comes out transparent gray

codl avatar Aug 14 '18 00:08 codl

I think this is becouse of a pixelformat missmatch. Pixelformat should be set to RGBA8888. temp fix might be in src/browser/browser-app.cpp within the function BrowserApp::OnBeforeCommandLineProcessing add this line to the end of the function commandLine->AppendSwitch("transparent-painting-disabled"); Test whether this solves your problem. I will look into this, on how to implement a proper pixelformat.

lulou avatar Nov 14 '18 15:11 lulou

Any news? This is still an issue.

AlexDaniel avatar Feb 11 '20 23:02 AlexDaniel