This page provides a tutorial on using V-Ray's Render Mask feature.
The Render Mask makes it easy to choose just a part of the image you'd like to rerender. It's more exact and offers more control than Render Region. It can be found in the Image Sampler (Antialiasing) rollout.
Here's our base render:
In the next steps, we will render just a few different objects and not the whole scene again.
Let's dull the chrome material and match the hubcaps to the car body. In the case of the hubcaps, we'll change the diffuse color from pink to blue to match the car.
Next, we'll select the objects to rerender: all the chrome parts, and the hubcaps.
Then we'll go to the Render Setup window under the V-Ray tab, and choose the dropdown for Render mask in the Image Sampler (Antialiasing) rollout.
From the dropdown we have several choices:
Texture – Will use a black and white image to control the rendered areas.
Selected – Will render only the currently selected objects.
Include/Exclude list – Will render only the objects added to the list.
Layers – Will render only the objects from the selected layers.
In our case, we'll choose Selected.
We render the scene, and you'll notice only the selected objects have been rerendered. The rest of the image remains unchanged.
To make it a bit more noticeable, clear the VFB by selecting Clear Image from the VFB toolbar.
In the VFB Confirm dialog that appears, choose Yes to confirm.
Now that we've cleared the VFB, we'll render again.
This time it's easier to see that only the selected objects were rerendered.
If we look at the Alpha Channel, it will be updated as well.
- When rendering animation with Render Mask, the previous render can be cleared by going to the Render Setup window > Settings > System rollout and setting the Previous parameter to Clear.