Combine two multiply masks and textures?

Hello

Most of the time i have used only pbr textures,i want to advanced myself on texturing to being able to combine multiply textures and masks.

1
In this photo i have created a mask for 2 different textures.


In the second photo i have created a second mask.
In order to combine 2 different textures.
But a thing what i want is that i dont want the second mask to take an effect on top layer, just want to take an effect on bottom, What i want is creating a mask whithin a mask, I know that i can seperate them by slots but is there is anyway that i can make all this in same slot.

How is this possbile to make?

Hello !

You lost me :slight_smile: can you create a set of simple images with the expected result ? and someone will likely make a working example in blender nodes…

:smile:
Lets go with the color easier to undertsand.
1


This is the mask top and bottom.
And i have created additionaly mask only in bottom.

So now in the bottom layer i want to have only 2 different texture, Example red and green so the green texture will be added in noise texture.
On top i want to have only blue texture. Hopefully i am understanable :smile:

Lol , sorry I’m a bit confused again …
Here’s how I tend to work, maybe it will answer your question…

In Krita / PS I prepare masks like so :

I can use 3 different layers using RGB channel, it’s like packing 3 different BW images in one…
When some shapes overlap I use the addition blending mode.
Obviously each layer needs to be fully red, green, or blue, as any different color will leak to other channels…

I avoid jpg as image format as it can introduce artifacts, png works fine for me…

Now I can use separate RGB to access my masks :


I set orange as a base color, and add some noise using the red mask…


I can add a brick texture using the blue channel…


This time I added a white color, I used a multiply node to dial the opacity, multiply by 0 = completely transparent , multiply by 1 = fully opaque…

You can combine two mask using the maximum operation :

Or get the intersecting parts using the minimum :

You can subtract two shapes :

Subtracting the result to 1 invert the shape :

Obviously you don’t always need to create your masks in a paint app, and you can generate them with gradient, noises and so on…

Hope that helps,

Good luck !