Jump to content
You must now use your email address to sign in [click for more info] ×

Excellent Guide to Masking in Affinity Photo


Recommended Posts

  • 4 weeks later...
On 6/17/2021 at 7:16 AM, Mark Oehlschlager said:

Here is a very helpful tutorial that illustrates three different masking methods in Affinity Photo.

 

Excellent tutorial.

There is one slightly incorrect information: when you use a pixel layer nested as mask, you state „it does not work as mask“. This is halfway true and false: The alpha channel of this nested layer is actually used as mask, but the color channels are basically ignored. Try it with a pixel layer with alpha below 1 in some areas, e.g. by using the erase brush with 50% opacity.

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

Another comment regarding usage of blend mode difference to compare 2 layers and spot differences.

This gives wrong results when the alpha channel is not fully white for all pixels. Try yourself with a copy of a layer not fully opaque, e.g. using a gradient from 0 to 1 on alpha.

Never the less, you can compare such layers, but you need to compare in 2 phases:

  1. compare rgb channels, after setting alpha to 1 by channel mixer or PT filter
  2. compare alpha channel, after setting RGB=A and A=1

 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

If I'm using a shape (circle, pen tool etc.) as a mask, why can't the mask be inverted or its color value changed? It's either on or off, you can't change the fill color to 50% grey for example. You can't invert it. Doesn't matter what color the fill on the shape is, it always creates the same mask.

White fill.
Black fill.
Both create the same mask.

(I don't want to rasterize the shape...I want to keep the shape as a way of being able to manipulate the mask)

 

mask.png

2.png

Link to comment
Share on other sites

8 minutes ago, MEB said:

Hi @nrx,
Vector masks use opacity (not Luminance) to set the transparency. So in your case change the Opacity (colour opacity) on the bottom of the Colour panel to 50%.

That helps, but how to invert the vector mask layer? In the example below I want to use the mask to create  a round hole in the green layer, but the mask isn't working like that and there's no way to invert it (presumably because its using opacity rather than 0-1 white black.)

 

m1.png

m2.png

Link to comment
Share on other sites

There is currently no way to inverse a vector mask directly (based on unsolved issues).


Never the less, if you follow the process described in the tutorial, it will work perfectly (using groups, blend ranges and blend mode erase).

As this thread is about the tutorial, i would suggest that you create a new separate topic under „questions“ to keep everything organized.  

 

Mac mini M1 A2348 | Windows 10 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

 

Link to comment
Share on other sites

  • Staff

Hi @nrx,
There's no way (feature) to invert a vector mask. But there's ways to do what you want:
1. create a rectangle the size of the document then subtract the circle from it (press alt if you want to create a compound so you can edit the circle independently from the rectangle) then nest it to the Fill layer (drag it over the Fill's layer thumbnail to use it as a vector mask).
2. Drag the ellipse over the fill layer to clip it (not over its thumbnail but over the layer itself) and set the Blend mode of the ellipse to Erase. Note this will be rasterised on export (Erase blend mode).

Link to comment
Share on other sites

5 hours ago, nrx said:

I don't want to rasterize the shape...I want to keep the shape as a way of being able to manipulate the mask

This is a solution for creating non-destructible masks:

 

Link to comment
Share on other sites

16 hours ago, MEB said:

There's no way (feature) to invert a vector mask.

The Affinity community has created a mask that gives this opportunity! You can use it to create a complex design.

Opportunities

  • Nondestructive editing and moving
  • Multiple individual mask parts
  • Vector and raster
  • Color and greyscale
  • Applying adjustments
     

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.