Jump to content


Photo

Alphablending between screens


  • Please log in to reply
21 replies to this topic

#1 DimitarCC

  • PLi® Contributor
  • 1,574 posts

+70
Good

Posted 25 January 2023 - 17:54

Hello! Since the hardware nowdays is capable of alphablending i want to ask is alphablending between screen supported in openpli?
I see it is supported in DreamOS on dreambox but not matter what i try cant make it work on openpli.

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: Alphablending between screens #2 DimitarCC

  • PLi® Contributor
  • 1,574 posts

+70
Good

Posted 1 February 2023 - 21:12

Hmmm no one care to express statement here?

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: Alphablending between screens #3 neo

  • PLi® Contributor
  • 715 posts

+48
Good

Posted 1 February 2023 - 22:41

Perhaps nobody knows? I for one don't, so my reply is rather poinless...



Re: Alphablending between screens #4 DimitarCC

  • PLi® Contributor
  • 1,574 posts

+70
Good

Posted 2 February 2023 - 07:52

Well the devs should know.... otherwise is kind of strage to not know their own software


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: Alphablending between screens #5 Loui (PD1LOI)

  • Senior Member
  • 4,620 posts

+146
Excellent

Posted 4 February 2023 - 12:16

Ik heb al eerder iets gevraagd over bijvoorbeeld een soort shortcut naar een afbeelding, maar ik heb hier ook nog nooit iets over gehoord.



Re: Alphablending between screens #6 littlesat

  • PLi® Core member
  • 57,221 posts

+701
Excellent

Posted 4 February 2023 - 12:49

Ik heb totaal geen idee wat hier mee bedoeld wordt…. Als je bedoeld animaties tussen de schermen daar hebben wij inderdaad niet voor gekozen daar het nogal wat spul van enigma2 overhoop gooit terwijl het buiten nerveuze overgangen niet echt iets toevoegt. Je zet het eigenlijk snel weer uit. 

[translation]
I have absolutely no idea what you mean….
If you mean animations between the screens, we have indeed not opted for that as it messes up quite a bit of enigma2's stuff while it doesn't really add anything outside of nervous transitions.
You actually turn it off quickly.
[/translation] 

maar dit is geen alphablending….

[translation]
But this is not aplhablending.
[/translation]

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Alphablending between screens #7 Tech

  • Forum Moderator
    PLi® Core member
  • 14,927 posts

+486
Excellent

Posted 4 February 2023 - 13:29

Ik heb al eerder iets gevraagd over bijvoorbeeld een soort shortcut naar een afbeelding, maar ik heb hier ook nog nooit iets over gehoord.

Alphablending is a little different than creating symlinks to pictures so has nothing to do with this question, maybe you should start your own thread about it?


Aan de rand van de afgrond is een stap voorwaarts niet altijd vooruitgang....

On the edge of the abyss, a step forward is not always progress....

Hardware: 2x Daily used Vu+ Ultimo 4K - Vu+ Duo 4K SE and a lot more.... - VisioSat BiBigsat - Jultec Unicable Multiswitch 4 positions: 19.2/23.5/28.2 East - Diseqc motorized flatdish antenna

Software : HomeBuild OpenPLi Develop and Scarthgap builds, local cards driven by OsCam

Press the Geplaatste afbeelding button on the buttom right of this message ;)

Have you tried our wiki yet? Many answers can be found in our OpenPLi wiki


Re: Alphablending between screens #8 DimitarCC

  • PLi® Contributor
  • 1,574 posts

+70
Good

Posted 4 February 2023 - 19:25

I mean for example when you do skinning of volume control dialog and you choose for a background a transparent png... Then you open the channel list for example and with it open pump volume up in transparent areas of the volume screen is rendered with Black background or you can see the channel picture. So when a screen is over another screen the two doesnt blend since the top screen doesnt know what is under (in case of openpli).
Do you understand what i mean?

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: Alphablending between screens #9 littlesat

  • PLi® Core member
  • 57,221 posts

+701
Excellent

Posted 4 February 2023 - 20:32

I still do not understand what you mean as the issue you describe I do not experience at all… Mauve you need to show screenshots or your skin has mistakes…


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Alphablending between screens #10 DimitarCC

  • PLi® Contributor
  • 1,574 posts

+70
Good

Posted 4 February 2023 - 21:56

OK. Let me try to provide screenshots from my skin...

 

 

Here is my channel selection screen with volume control over it.

Attached File  0.png   625.8KB   1 downloads

 

Here in red circles you can see the black background that should be actually transparent and to see channel selection background instead.

Attached File  1.png   55.03KB   1 downloads

 

Same as above in red circles.

Attached File  2.png   66.2KB   1 downloads

 

On this screenshot the artifacts are small since the rounding of the background images are small but that is very noticeable when with have background images with large corner rounding.

 

Using the same skin on DreamOS for example doesn't have anything like this and the screens blend eachother very well. But i couldn't do this on OpenPLi.

 

P.S. the volume control screen have completely transparent background color and a rounded png for the background image.

<screen name="Volume" position="710,65" size="474,50" title="Volume" zPosition="1" flags="wfNoBorder" backgroundColor="transparent">
		<ePixmap position="0,0" zPosition="-11" size="474,50" pixmap="vol_bg.png" alphatest="blend" />
		<ePixmap position="2,2" zPosition="-10" size="470,46" pixmap="vol_overlay.png" alphatest="blend" />
		<ePixmap position="8,6" zPosition="-9" size="42,38" pixmap="menu/audio_icon.svg" alphatest="blend" />
		<eLabel backgroundColor="progress" position="67,24" size="343,4" zPosition="1" transparent="1" />
		<widget name="Volume" position="67,24" zPosition="2" size="343,4" foregroundColor="blue" transparent="1" orientation="orLeftToRight" />
		<widget backgroundColor="background" font="Bold;28" foregroundColor="white" halign="left" position="423,4" render="DEVolumeText" size="60,40" source="global.CurrentTime" transparent="1" valign="center" zPosition="20" />
	</screen>

Edited by DimitarCC, 4 February 2023 - 22:02.

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: Alphablending between screens #11 scriptmelvin †

  • PLi® Contributor
  • 720 posts

+46
Good

Posted 4 February 2023 - 22:42

Another example. The InfoBarWeather plugin is a Screen that sits on top of the InfoBar (also a Screen). It has its own background that matches the background of the InfoBar exactly:

Attached File  with-bg.jpg   116.95KB   1 downloads

 

When I remove this background (the InfoBarWeather background becomes fully transparent) the InfoBar background should show up there. Instead, the video is shown and it looks like this:

Attached File  without-bg.jpg   186.37KB   1 downloads

 

Apparently, alpha/transparency means alpha/transparency within the same screen, and relative to the video.

 

DreamOS apparently has fixed this, but we cannot read their source to see how they did it.

 

Als read this: doc/SKINS#transparency.


Sorry to inform you this member, my brother, passed away.

Re: Alphablending between screens #12 DimitarCC

  • PLi® Contributor
  • 1,574 posts

+70
Good

Posted 5 February 2023 - 07:55

Hmmm but i think the current situation is not exactly like in the docs since the current hardware is capable of alphablending and that is not issue or performance hog anymore. Thats why i am asking this...

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: Alphablending between screens #13 littlesat

  • PLi® Core member
  • 57,221 posts

+701
Excellent

Posted 5 February 2023 - 08:38

Not an issue here with the standard skin….

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Alphablending between screens #14 DimitarCC

  • PLi® Contributor
  • 1,574 posts

+70
Good

Posted 5 February 2023 - 09:18

Ofcource! Because standard skin have sharp corners and is based mainly on background colors and no 32bit alpha channel pngs!

That not means the problem is not there. Just try with pngs (with antialiased corner rounding) and transparent background color and you will see how it breaks.

The screenshot with mute screen i showed above uses exactly the same png like in standard skin. and it not works.

Maybe you dont see it on standard skin because background color is too dark there.


Edited by DimitarCC, 5 February 2023 - 09:19.

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: Alphablending between screens #15 Sharp987

  • Senior Member
  • 184 posts

+120
Excellent

Posted 5 February 2023 - 09:28

I am reading the thread and since I am also trying to make skins I can say that I often have this problem with screens when they are with pictures and are on top of each other with transparency. This is most often seen with the volume screen, so I always make the volume screen non-transparent. The standard skin doesn't have this problem simply because there aren't two picture screens on top of each other and the screens are "eLabel" not "ePixmap". Try to change alphatest="blend" or alphatest="off" or alphatest="on"



Re: Alphablending between screens #16 littlesat

  • PLi® Core member
  • 57,221 posts

+701
Excellent

Posted 5 February 2023 - 09:52

Now we finally start to understand the issue what was meant here…

dmm is closed source for this part and also the drivers likely need help/support here.

I have no idea of there exists Some open source enigma2 project and/or drivers that might support it.

Likely just alphatest=“on” instead of blend does the job.


Edited by littlesat, 5 February 2023 - 09:56.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Alphablending between screens #17 DimitarCC

  • PLi® Contributor
  • 1,574 posts

+70
Good

Posted 5 February 2023 - 10:31

Well changing alphatest to on instead of blend doesn't change anything. 

This seems to be a general issue yes...

Regarding DreamOS it could be something to do with the drivers itself.

What i was thinking... couldn't be done to trick the skinning engine by rendering the screens as a panels of a global screen (desktop). In that way the skinning engine will think that everything are widgets of one and the same screen and alphablending will work just fine?

Ofcource this approach (if is possible) will require code changes ;)


Edited by DimitarCC, 5 February 2023 - 10:37.

Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: Alphablending between screens #18 littlesat

  • PLi® Core member
  • 57,221 posts

+701
Excellent

Posted 5 February 2023 - 10:56

No idea. DMM is closed source so no idea how they did it…. And when drivers need to support and it is not in I think we should not spill our energy..:
AlternativLy blending via software might help but that slows stuff down…

Edited by littlesat, 5 February 2023 - 10:58.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Alphablending between screens #19 DimitarCC

  • PLi® Contributor
  • 1,574 posts

+70
Good

Posted 5 February 2023 - 10:58

Yes we don't know how they did it. But maybe my approach can work without driver change if someone willing to invest time in that.


Vu+DUO4KSE, DM920UHD, Vu+Uno4KSE, SF8008Mini, 2xPulse4K, Vu+Solo2, Dreambox DM500HD, Triax 78 (7E,9E,13E,19.2E,23.5E) & 2xTriax 78 (39E)


Re: Alphablending between screens #20 littlesat

  • PLi® Core member
  • 57,221 posts

+701
Excellent

Posted 5 February 2023 - 11:26

What is your approach?

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W



2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users