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 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 Color correction layers.
When one or more masks are applied to a Folder or Color correction 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 > Color Correction properties > Add new mask layer button

UI Text Box
typenote

Note that you must select a folder or a color correction layer to use masks. Otherwise, the masks are inactive.

 

Image Modified

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 MultiMatte Mask is based on the MultiMatteElement Render ElementMulti Matte render element.

UI Text Box
typenote

Note that this mask may not work on images rendered with older versions of V-Ray.

Use red – When enabled, uses the red channel as a grayscale mask.

Use green – When enabled, uses the green channel as a grayscale mask.

Use blue – When enabled, uses the blue channel as a grayscale mask.

Use intensity – When enabled, uses the pixel intensity as a grayscale mask.

Column
width5%
 
Column
width35%

...

Section
Column
width60%

The Integer Mask is used with VRayRenderIDRender ID, VRayObjectIDObject ID, and VRayMtlID Render Elements, and the output of VRayObjectID and VRayMtlID must be set to integerMaterial ID and Multi Matte ID render elements. You can choose which IDs should be in the mask.

+/- 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 Sows 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/removed from the list below, depending on the Pick mode.

New item – A field to type a mask ID manually and then add it to the current selection with the + button.

+ – Adds IDs to the list.

- – Removes IDs from the list.

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.

UI Text Box
typetip

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

Column
width5%

 

Column
width35%

...

Section
Column
width60%

The Cryptomatte Mask is based on the V-Ray Cryptomatte Render ElementCryptomatte 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 Sows 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%

...