This sample workflow illustrates how to do the following:
- Use the to create render pass contribution maps.
Although this step is optional, render pass contribution maps give you finer control over light and objects and their passes
relationship. For example, you can use pass contribution maps to easily create a diffuse pass for a specific object that is
illuminated by a specific light.
- Create render passes for each render pass contribution map.
- Render the scene and create the subfolders and filenames for the rendered images.
- Group render passes into render pass sets and render the set.
Note
For a list of available passes, and a list of shaders that is currently supported by the multi-render pass workflow, see Multi-render passes.
Note
The multi-render pass feature is supported for the mental ray renderer. The rendering API allows other 3rd party renderers
and custom renderers to support it moving forward.
Rendering with render pass contribution maps
Creating render pass contribution maps
In this scene (KitchenSinkModel.ma), there is a render layer, named KitchenSink, with two objects, a sink and a bowl, and
a light. A shader is applied to the sink and a shader is applied to the bowl.
- Select the bowl and light in your scene view. In the , right-click the layer and select .
passContributionMap1 is created. Double-click it and change its name to Bowl.
- Select the sink and light in your scene view. In the , right-click the layer and select . Change its name to Sink.
Create render passes for each render pass contribution map
- Open the window and select mental ray as your renderer.
- First, create the render passes for your sink render pass contribution map. Select the tab and click the Create new render pass button to create new render passes. The window appears.
- Multi-select the following render passes: , , , and . In the field, enter Sink. Click the button. The following passes are created: SinkDiffuseNoShadow, SinkReflection, SinkShadow, SinkSpecular. The passes appear
under the section.
- Create the render pass for the bowl render pass contribution map. Select the tab and click the button to create a new render pass. The window appears. Select the render pass and enter Bowl in the field, then click . The BowlDiffuse pass appears under the Scene Passes section.
- Before you can apply these render passes to each pass contribution map, you must first make these passes available to the
current layer. Use the button to move the passes to the section.
- Using the drop-down list, select the pass contribution map that you want to select render passes for, for example, Sink.
- Use the button to move the SinkDiffuseNoShadow, SinkReflection, SinkShadow, and SinkSpecular passes to the section.
- Repeat this procedure to add the BowlDiffuse pass to the section for the Bowl pass contribution map.
- Render the scene. Your rendered images are saved to the images directory of your project file as described below.
Creating subfolders and filenames for rendered images
By default, your rendered images are saved to the subdirectory <RenderLayer>\<camera>\<RenderPass> under the images\tmp directory of your project file. The image file name <scene>.iff is used for each rendered image.
Note
All image output from render passes are saved to the images\tmp directory of your project file unless you run a batch render. Running a batch render saves your render passes output to the
images directory.
Note
If you render using the window, you can also preview your render pass output by selecting .
You may want to customize the subdirectories and filenames for the rendered images instead. For example, you may not want
a folder to be created for each layer and camera. Use the tokens available from the attribute under the section in the Render Settings: Common tab. and combine them with separators such as _ or -.
For example, you may want to use the <Scene>_<RenderLayer>_<RenderPass> tags to create the filenames for your images. In this sample workflow, the following images are produced:
- KitchenSinkModel_KitchenSink_BowlDiffuse.iff
- KitchenSinkModel_KitchenSink_SinkDiffuseNoShadow.iff
- KitchenSinkModel_KitchenSink_SinkReflection.iff
- KitchenSinkModel_KitchenSink_SinkShadow.iff
- KitchenSinkModel_KitchenSink_SinkSpecular.iff
- KitchenSinkModel_KitchenSink_MasterBeauty.iff (This is the default beauty pass for the layer.)
Note
If you use the default directory, Maya creates a MasterBeauty folder to which it saves the default beauty pass for the layer. If you customize the directory, a MasterBeauty.iff image is created for the beauty pass.
Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License