2D TextureMask

2D TextureMask

Define a 2D Mask applicable on any 2D Renderer Allow to actually display a 2D Layer Read More or 2D Modifier Modify a 2D image Read More

2D masks can be applied on any 2D Modifier Modify a 2D image Read More to modulate its application on a per-pixel basis. Traditional alpha-masking is obtained as a particular case of this, by using the modifier Mask TextureMask a part of your image Read More .

Creating a mask

To create a 2D mask in order to mask some parts of a 2D Layer A single 2D Layer Read More , right click on this layer and select menu Masks :


Select Placement mask Solid mask that has a 2D Placement Read More for example.
  • This mask has 2D Placement Defines a placement in 2D space Read More that can be changed (green circle) to get more advanced shapes.
  • It also got Feather parameters that are illustrated here. You can change the feather link in order to manage the feather of each side of the mask independently (red circle).
  • The feather exponent allow you to change the mask feather curve. This will be particularly effective when a mask is applied over Distort Modifiers Change pixels coordinates Read More .
  • You can also change it's scale mode (blue rectangle) in order to give it a value relative to the medias on which it is applied (scale factor) or absolute (size):


Note that two different elements are created:


In this example, Mask TextureMask a part of your image Read More designates the 2D modifier and Placement mask Solid mask that has a 2D Placement Read More designates the mask that is applied to this modifier.
Masks can also be grouped with a 2D Group mask Blend multiple 2d masks together Read More .

Multiple masks on a modifier

A 2D Modifier Modify a 2D image Read More can have multiple masks. To add a mask to a modifier, right click on that modifier and select menu Masks . to duplicate masks. In this example, multiple masks are added to the same Placement mask Solid mask that has a 2D Placement Read More modifier:

Note that, to build the example above faster, it is also possible to use [CTRL] + [D] to duplicate masks.

Masks and Distort modifiers

For most modifiers, the effect of masks consists in interpolating between unmodified pixel colors and modified pixel colors. Since Distort modifiers act on geometry rather than on color , they follow a different rule: for each pixel, the mask controls the amount of the geometric distortion applied to the pixel (from "not distorted" to "fully distorted" ).
As an example, consider 2D Transform Change pixels position using translate, scale and rotate parameters with Read More . In itself, this effect is nice but rather bounded. In combination with masks, the number of possible geometric distortions becomes very large. Here is a small sample of the kind of things you can obtain:

Scale transform with radial mask


Position transform with placement mask


Checkerboard transformed with the Mona Lisa picture as a Mask


With noise mask


With Polygonal Mask


With quantized noise mask


% vs px units to make precise masks

Do not forget if you want a precise mask that you can put Smode in pixels units and use mask size (absolute size) instead of scale factor (relative to the layer on which it is applied):

Here is a short video to show the basics of mask manipulations, using Placements, edition mode and several little tricks :

Parameters to all 2D TextureMasks

  • Opacity (Percentage) : Overall opacity of the 2d texturemask
  • Inverse (On/off option) : Enable this option to invert the 2d texturemask

CATALOG

Masks that are placed in 2D space:

Placement mask - Solid mask that has a 2D Placement Defines a placement in 2D space Read More

Linear mask - Mask defined through a linear fade along a segment

Radial mask - Mask defined through an ellipse

Noise mask - Mask defined through a Noise Function Define a procedural noise function Read More

Polygonal mask - Define a 2D mask with a polygonal selection

Gradient mask - Gradient Mask

Masks that depend on pixel attributes:

Color mask - Select each pixel depending on its color

Depth mask - Select each pixel depending on a associated depth-value

Other masks:

Function mask - Compute a sub-mask and then apply a Function Function that maps a number (percentage, time, etc.) to a value Read More on it

Layer mask - Turn any 2D generator into a mask

2D Group mask - Blend multiple 2d masks together

Display Angle Mask - Mask any content or modifier relatively to the angle of a stage element

Other:

Position in Shape - Define how the modifier is applied

People Mask - Clip a person in frame

See Also: