Request for new layer blend modes

Hier diskutieren die Betatester von PhotoLine untereinander und mit den Entwicklern
User avatar
Herbert123
Mitglied
Posts: 1919
Joined: Sat 12 May 2012 21:38

Request for new layer blend modes

Post by Herbert123 » Wed 13 May 2020 19:35

A request to expand the range of layer/paint blend modes. In competing software (Krita, Affinity, Fireworks) a couple of quite handy "new" blend modes are available:

- Soft Dodge (Penumbra B in Krita) - really nice for painting in shadows
- Soft Burn
- Negation
- quadratic blend modes: Reflect, Glow, Freeze, Heat
- XOR
- Interpolation
- Inverse Color Dodge
- Inverse Color Burn

Krita offers more than 95 different blend modes (a 'bit' overkill), but the above ones are quite useful to have.

The (Delphi) formulas can be found here: http://www.pegtop.net/delphi/articles/blendmodes/

I think this is low-hanging fruit that can be quickly implemented.
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait

User avatar
shijan
Mitglied
Posts: 357
Joined: Mon 23 Dec 2019 15:21

Re: Request for new layer blend modes

Post by shijan » Thu 14 May 2020 02:35

Isn't it possible in PhotoLine with opacity +-200% combined with existing blend modes? Or those special blend modes are based on something different?
PhotoLine UI Icons Customization Project: https://www.pl32.com/forum3/viewtopic.php?f=3&t=6302

User avatar
Herbert123
Mitglied
Posts: 1919
Joined: Sat 12 May 2012 21:38

Re: Request for new layer blend modes

Post by Herbert123 » Fri 15 May 2020 05:06

Some can be emulated with a combination of settings, I think, but several are quite specific. Soft Dodge, for example, uses this formula:

f(a,b) = ½a / (1 - b) (for a + b < 1)
1 - ½(1 - b) / a (else)

I can't see how to replicate that blending in PhotoLine (well, I suppose it could be scripted, perhaps?).

Anyway, it wouldn't hurt if PhotoLine had a couple more blend modes in its arsenal. Thinking of which: it would be awesome to have a blend mode in which the user could input their own formulas, or something.
/*---------------------------------------------*/
System: Win10 64bit - i7 920@3.6Ghz, p6t Deluxe v1, 48gb (6x8gb RipjawsX), Nvidia GTX1080 8GB, Revodrive X2 240gb, e-mu 1820, 2XSamsung SA850 (2560*1440) and 1XHP2408H 1920*1200 portrait

JulianZI
Mitglied
Posts: 718
Joined: Tue 19 Dec 2006 19:54
Location: München

Re: Request for new layer blend modes

Post by JulianZI » Tue 02 Jun 2020 15:57

I actually only miss just the blend mode "erase". It would just paint to the transparency so the layer underneath gets a hole.
There is the "Remove" blendmode but I don't know what it does.

Martin Huber
Entwickler
Entwickler
Posts: 3653
Joined: Tue 19 Nov 2002 15:49

Re: Request for new layer blend modes

Post by Martin Huber » Thu 04 Jun 2020 10:39

JulianZI wrote:
Tue 02 Jun 2020 15:57
I actually only miss just the blend mode "erase". It would just paint to the transparency so the layer underneath gets a hole.
Isn't that just a layer mask/clipping layer?
JulianZI wrote:
Tue 02 Jun 2020 15:57
There is the "Remove" blendmode but I don't know what it does.
"Remove" is mostly used to remove color casts from images. Dehaze uses it for its correction layer.

Martin

JulianZI
Mitglied
Posts: 718
Joined: Tue 19 Dec 2006 19:54
Location: München

Re: Request for new layer blend modes

Post by JulianZI » Thu 04 Jun 2020 14:07

Isn't that just a layer mask/clipping layer?

It works inverse to the clipping layer - so it removes everything what's covered and leaves the rest.
It is very useful in combination with vector graphics because it does not modify the vector itself and so does not create new borders with effects or outline.

Martin Huber
Entwickler
Entwickler
Posts: 3653
Joined: Tue 19 Nov 2002 15:49

Re: Request for new layer blend modes

Post by Martin Huber » Fri 05 Jun 2020 08:48

JulianZI wrote:
Thu 04 Jun 2020 14:07
Isn't that just a layer mask/clipping layer?

It works inverse to the clipping layer - so it removes everything what's covered and leaves the rest.
I still don't understand the difference.

JulianZI
Mitglied
Posts: 718
Joined: Tue 19 Dec 2006 19:54
Location: München

Re: Request for new layer blend modes

Post by JulianZI » Fri 05 Jun 2020 10:01

The text layer in my screen shot has the blend mode "erase". In this example there is no grouping involved.
It simply sets the alpha channel of all underlying drawings (or the drawing in current group) to 0.
screen.jpg
You do not have the required permissions to view the files attached to this post.

Martin Huber
Entwickler
Entwickler
Posts: 3653
Joined: Tue 19 Nov 2002 15:49

Re: Request for new layer blend modes

Post by Martin Huber » Mon 08 Jun 2020 09:10

JulianZI wrote:
Fri 05 Jun 2020 10:01
The text layer in my screen shot has the blend mode "erase". In this example there is no grouping involved.
You can do that by making the text a clipping layer/layer mask and inverting its clipping effect in the Layer Attributes:
InvertClipping.png

Martin
You do not have the required permissions to view the files attached to this post.

JulianZI
Mitglied
Posts: 718
Joined: Tue 19 Dec 2006 19:54
Location: München

Re: Request for new layer blend modes

Post by JulianZI » Wed 10 Jun 2020 16:19

Funktioniert, danke.