Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Section
Column
width60%

The V-Ray Masks are used to refine only selected parts of the rendered image in the New VFB. They can be applied to Color correction layers, the Lens Effects layer, the Denoiser layer, and also to Folders in the VFB layers tree.

V-Ray Mask can be created using the Add layer button. The same option is available in the right-click context menu of the layer tree under the New layer category. There's also a quick Mask creation button in the Properties area of folders and layers.
When one or more masks are applied to the same folder or layer, a mask icon is placed in front of it in the layer tree to signify its presence. The parameters of each mask are available in their own separate tabs to the Properties of the masked layer or folder.

The masked areas are defined by selection of objects, materials, groups, layers, etc. To specify them, respective render elements must be available in the rendered image. Currently, there are three Mask types: Integer Mask, MultiMatte Mask, and Cryptomatte Mask.


UI Path:

||V-Ray Frame Buffer|| > Layers Add button
||V-Ray Frame Buffer|| > Layers > New Layer right-click menu option
||V-Ray Frame Buffer|| > Layers > Select layer or folder > Add new mask layer button

UI Text Box
typenote

Note that you must select a Folder, the Lens Effects layer, the Denoiser layer, or a Color Correction layer to use masks. Otherwise, the masks are inactive.


Image RemovedImage Added

Column
width5%


Column
width35%
HTML
<iframe width="560" height="315" src="https://www.youtube.com/embed/UkfcvZNzk7g" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

...

Section
Column
width60%

The Cryptomatte Mask is based on the Cryptomatte render element.

+/- Pick – Allows you to add/remove items by picking them from the Render View. When activated and the mouse is inside the Render View, a red square indicates where the value is exactly picked.

Value – Shows the mask ID on hover over the rendered frame. If you click on a selection in the Render View, the current ID is added to the list below.

New item – A field to type in a mask ID and add it to the current selection with the + button. The text is case insensitive.

+ – Adds IDs to the list.

- – Removes IDs from the list.

UI Text Box
typetip

Wildcards are allowed in the New item field. The following wildcard characters are supported:

* – matches any number of any characters including none (e.g. "Law*" matches "Law", "Laws", or "Lawyer")
? – matches any single character (e.g. "?at" matches "Cat", "cat", "Bat" or "bat")
[abc] – matches one character given in the bracket (e.b. "[CB]at" matches "Cat" or "Bat")
[a-z] – matches one character from the range given in the bracket (e.g."Letter[0-9]" matches "Letter0", "Letter2")

UI Text Box
typetip

Each item in the list has a color icon. The color corresponds to the one saved in the respective render element.

Separate items in the list can be changed by double-clicking on them and editing their names.

UI Text Box
typetip

You can create Exclude items via the -Pick button. This is possible when you have wildcard items and then try to -Pick an item that is not present in the list. For example, we can add all boxes from the scene with a wildcard Box* and then exclude only Box001 with an Exclude item. Exclude items have a minus in their icon so they can be distinguished.

Column
width5%


Column
width35%


Image Alpha Mask

...

Section
Column
width60%

The Image Alpha Mask is based on the rendered Alpha channel.

Show preview when selected – Shows the preview of the image alpha.

Invert mask – Inverts the mask.

Column
width5%


Column
width35%

Image Added


Notes

...

Fancy Bullets
typecircle
  • Currently, there are masks based only on some V-Ray render elements. The different mask types filter the list of all elements and show only the suitable ones.
  • Currently, masks cannot be placed directly on a render element layer. A color correction layer must be placed first on the render element, and then the mask is added on top. For example, a Hue/Saturation layer is applied on the RGB color or a Light Select Render Element layer and then a mask is added on the correction layer so that only the masked area has the correction applied.