A matte object will not be directly visible in the scene; instead, the background color will be shown in its place. It will still appear normally in reflections and refractions and generate indirect illumination based on its actual material. Matte objects are useful for integrating rendered images into real footage.
The setup involves 3 components - the environment, a dome light and the matte object itself.
- Create a simple scene with 2 PrimitiveCreate nodes and one CameraCreate node
- Name the two PrimitiveCreate nodes pc_plane and pc_sphere
- Merge the three nodes together
- Change the name of the Merge node to merge_geometry
- Set the name of the pc_plane node to '/root/world/geo/plane'
- Set the type to 'poly plane' and scale the plane
- Set the name of the pc_sphere node to '/root/world/geo/sphere'
- Set the type to 'poly sphere'
- Move the pc_sphere above the plane
- Move the camera to make sure that both the plane and the sphere are visible in the render
- Follow the DomeLight HOWTO to setup IBL for this scene
- Merge the merge_geometry and the MaterialAssign node for the dome light
- Change the name of this merge node to merge_all
- Create NetworkMaterial node and name it nm_env
- Add environment terminal to the nm_env node
- Create VrayShadingNode and name it env_settings
- Set nodeType to SettingsEnvironment
- Connect env_settings.out to the environment terminal of nm_env node
- Connect the nm_env node to the merge_all node
- Create MaterialAssign node and assign the nm_env to the CameraCreate node
- Connect the bitmap.out to the env_settings.bg_tex
- Create a VrayObjectSettings node and assign it to the pc_plane node
- Set the matte_properties.matte_surface parameter to Yes
- Set the matte_properties.alpha_contribution to -1
After you execute these steps you should get something that looks like the image below: