This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Clipping Mask Layer Overlay

Tags: None
(comma "," separated)
Reptorian
Registered Member
Posts
62
Karma
0

Clipping Mask Layer Overlay

Tue May 30, 2017 4:44 am
Even though clipping mask is definitely possible within Krita, I haven't been able to find a way to get a simple clipping mask. Right now, I have to go all the way on using multiple erasing layer just to make a clipping mask. Is this planned?

Here's what I'd like to do.

Group Layer 1 - Normal Overlay
Layer 2

And then, I would like to change group layer 1 to clipping mask overlay, and then it'll affect everything below. It's just copying the alpha information from one layer to every layer below. It's also much better than transparency mask in some ways because it requires less clicks to do some stuff. Inherent Mask has the problem of having the mask visible. Another idea I had in mind is linking transparency mask to a layer. If one can do that, the possibility are endless here.
User avatar
artur89sd
Registered Member
Posts
121
Karma
1
OS

Re: Clipping Mask Layer Overlay

Tue May 30, 2017 11:30 pm
To link a transparency mask to layer or a group, just right click the layer or group and go to "Add" > "Transparency Mask"
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS

Re: Clipping Mask Layer Overlay

Wed May 31, 2017 7:10 pm
There's two ways to invoke clipping mask-esque behaviour. The first is alpha inheritance: https://docs.krita.org/Clipping_Masks_a ... nheritance

And the second is the Destination Atop blending mode under "Mix". This will allow you to have the topmost layer act as the source for the transparency. There's also Destination in, where the result is only opaque in the areas that both layers are opaque in(so if only one layer is opaque, the result is transparent)

Then there's also the transparency mask as noted by Arthur.
Reptorian
Registered Member
Posts
62
Karma
0

Re: Clipping Mask Layer Overlay

Thu Jun 01, 2017 3:11 am
TheraHedwig wrote:There's two ways to invoke clipping mask-esque behaviour. The first is alpha inheritance: https://docs.krita.org/Clipping_Masks_a ... nheritance

And the second is the Destination Atop blending mode under "Mix". This will allow you to have the topmost layer act as the source for the transparency. There's also Destination in, where the result is only opaque in the areas that both layers are opaque in(so if only one layer is opaque, the result is transparent)

Then there's also the transparency mask as noted by Arthur.


Alpha Inheritance isn't free from problems. For one thing, if you have a black paint, and you are painting in another layer with alpha inheritance, and you want the black paint to go away, you have to edit away the black paint. Atop is something I was looking for, but I don't see it in my build. Is that an experimental blending mode? Do I have to reinstall?

Also, about the link idea, I was thinking on the line of whatever you do on one layer will automatically affect the other layer transparency mask. I know what transparency mask does. I am not very good at communicating ideas.
User avatar
DNart
Registered Member
Posts
75
Karma
2
OS

Re: Clipping Mask Layer Overlay

Thu Jun 01, 2017 1:30 pm
Can't find Destination Atop or In blending mode in Krita 3.1.4. I recall that they are in mypaint though.


User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS

Re: Clipping Mask Layer Overlay

Thu Jun 01, 2017 2:37 pm
Then they must be in the 4.0 branch only. It's been a while since I coded them.
Reptorian
Registered Member
Posts
62
Karma
0

Re: Clipping Mask Layer Overlay

Thu Jun 01, 2017 3:19 pm
Lots of exciting things are coming on Krita 4, then. I can't wait. I do appreciate the healing brush tool that is coming up. Photomanipulation is something I use Krita for thanks to an abundance of features and a sensible workflow.
User avatar
halla
KDE Developer
Posts
5092
Karma
20
OS

Re: Clipping Mask Layer Overlay

Thu Jun 01, 2017 3:59 pm
Weird... I was looking whether I could backport it to 3.2, when I found this commit from 2011:

commit 8eda6238003ff953b9c607e985ca6ff715eabbc8
Author: Silvio Heinrich <plassy@web.de>
Date: Tue Apr 12 15:58:27 2011 +0200

Removed the Atop blending mode (KoCompositeOpAtop.h).

It was removed because the same result can be archived by disabling
the alpha channel for the specific layer.
User avatar
TheraHedwig
KDE Developer
Posts
1794
Karma
10
OS

Re: Clipping Mask Layer Overlay

Thu Jun 01, 2017 4:08 pm
boudewijn wrote:Weird... I was looking whether I could backport it to 3.2, when I found this commit from 2011:

commit 8eda6238003ff953b9c607e985ca6ff715eabbc8
Author: Silvio Heinrich <plassy@web.de>
Date: Tue Apr 12 15:58:27 2011 +0200

Removed the Atop blending mode (KoCompositeOpAtop.h).

It was removed because the same result can be archived by disabling
the alpha channel for the specific layer.

Yes, that is Source Atop, which is different from Destination Atop. Source Atop is from/to ORA interpreted as Alpha Inheritance(which is what disabling the alpha channel does)


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]