Skip to content
This repository has been archived by the owner on Mar 27, 2020. It is now read-only.

transparent white appears gray #58

Open
codl opened this issue Apr 23, 2018 · 6 comments
Open

transparent white appears gray #58

codl opened this issue Apr 23, 2018 · 6 comments
Labels

Comments

@codl
Copy link

codl commented Apr 23, 2018

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
@NexAdn
Copy link
Collaborator

NexAdn commented May 18, 2018

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 NexAdn closed this as completed May 18, 2018
@NexAdn
Copy link
Collaborator

NexAdn commented May 18, 2018

Accidentially clicked on close^^

@NexAdn NexAdn reopened this May 18, 2018
@NexAdn NexAdn added the wontfix label May 19, 2018
@MichaelTunnell
Copy link

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.

@codl
Copy link
Author

codl commented Aug 14, 2018

@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

@lulou
Copy link

lulou commented Nov 14, 2018

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.

@AlexDaniel
Copy link

Any news? This is still an issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants