rdmenezes / cefpython

Automatically exported from code.google.com/p/cefpython
1 stars 0 forks source link

Transparency of window does not work in off-screen rendering mode #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. add background: transparent; css rule to html and body elements.
2. windowInfo.SetTransparentPainting(True)

Text should be visible directly with 3d scene as background.
Instead window background is set to black.

Windows, v0.52

Original issue reported on code.google.com by roxaz...@gmail.com on 21 Mar 2013 at 12:14

Attachments:

GoogleCodeExporter commented 9 years ago
You need to call setTransparency(TransparencyAttrib.MAlpha) on the
texture node. Found a solution through google "panda3d texture 
transparency", the first result [1] suggested this method.

It is not required to add "background: transparent" in html file.

Example updated in revision aecc30ddc344 [2], set TEST_TRANSPARENCY
to True to see transparent background.

[1] http://www.panda3d.org/forums/viewtopic.php?p=66013
[2] 
https://code.google.com/p/cefpython/source/detail?r=aecc30ddc344bb9414570dc15e94
fa54b6044ed5

Original comment by czarek.t...@gmail.com on 28 Mar 2013 at 2:20

GoogleCodeExporter commented 9 years ago
I'm trying to do this exact task on Linux 32 Bit, is it possible?

Original comment by winsto...@gmail.com on 18 Jul 2013 at 9:40

GoogleCodeExporter commented 9 years ago
Yes, it should work on any OS.

Original comment by czarek.t...@gmail.com on 18 Jul 2013 at 10:01