Author Topic: RASPBERRY PI transparent window with transparent PNG overlay (demo_gles2_v2.xml)  (Read 5787 times)

0 Members and 1 Guest are viewing this topic.

bobtarask

  • Newbie
  • *
  • Posts: 9
    • View Profile
Hello,

We are using geexlab to display partly transparent overlays on the raspberry pi.

We are using the demo demo_gles2_v2.xml  (http://www.geeks3d.com/hacklab/20151207/how-to-control-the-window-opacity-on-the-raspberry-pi/)

It is working with full transparency (alpha = 0) but our PNG image has variable levels of transparency. As an example if a pixel is partly transparent (alpha = 0.5), it will appear on the screen fully opaque (alpha = 1).

Please could you give us some hints what we should modify on the demo to make it work with our transparent image?


Thanks and best regards,

Etienne






JeGX

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2004
    • View Profile
    • Geeks3D.com
I played with RPi transparency long time ago  :P

Ok... do you output the right alpha value in the pixel shader? According to what I wrote in the article, if rpi_alpha_flag="0", you should control the opacity with the alpha value generated by the pixel shader.

bobtarask

  • Newbie
  • *
  • Posts: 9
    • View Profile
HELLO putting rpi_alpha_flag="3" solved the problem