Trace Sets allow fine-grained control of what objects can be seen through reflections and refractions. For example, using Trace Sets, you can set the reflections on a particular object to include only a subset of the objects in the scene without affecting the reflections elsewhere in the scene.
A Trace Set represents a group of objects or a set. For covenience, Trace Sets can be configured to be Inclusive or Exclusive:
To better understand and visualize how Trace Sets work, consider the example below. On the left, the scene is rendered without Trace Sets. On the right the same scene is rendered but with an Exclusive Trace Set containing the red box assigned to the "Reflection Trace Set" attribute of the reflective mirror wall.
|
|
Beauty render with no Trace Sets. |
Beauty render with an Exclusive Trace Set containing the red |
In this next example we have asigned an Exclusive Trace Set to the 'Refraction Trace Set' attribute of the glass cube object. The objects in the Exclusive Trace Set (the red box in this example) are not being included in the glass cube's refractions.
|
|
Beauty render with no Trace Sets. |
Beauty render with an Exclusive Trace Set containing the red |
Trace Sets can be created several different ways. In the examples below we use both the Redshift dropdown menu from the Maya menu bar and the other method will use the Redshift Attributes found in the Attribute Editor when you have an object selected.
Redshift dropdown menu with the Trace Sets option selected exposes the "Create Redshift Trace Set" option.
"Create Redshift Trace Set" option in the Redshift menu.
Trace Sets dropdown found inside the Redshift dropdown menu inside the selected object's Attribute Editor menu. Here you can assign a Trace Set to the objects Reflection or Refraction or create a new Trace Set by clicking the box icon. This menu gives you several options including a list of the current available Trace Sets in your scene. The "Create Trace" set will generate a new Trace Set based on the currently selected object. "Disconnect" will remove the selected object from the trace set & "Delete" will remove the connected trace set from your scene.
Trace Sets options inside of the attribute editor. Currently the "rsTraceSet1" is the only Trace Set available which we can include our object to or we can create a new Trace Set.
Once a Trace Set has been created it becomes visible in the Outliner. Here we can easily manage the objects inside of the trace set by dragging and dropping objects into or out of the Trace Set. Clicking the Trace Set will bring up the Trace Set's parameters in the properties panel.
"rsTraceSet1" with two Cube objects together inside the Trace Set.
Objects can be added or removed from the Trace Set by just dragging and dropping them in & out of the Trace Set in the Outliner
When a Trace Set is in exclusive mode, reflection or refraction rays are visable for all objects in the scene except the objects in the Trace Set.
When a Trace Set is in inclusive mode, reflection or refraction rays are visable for only the objects in the Trace Set and all other objects are excluded.
The Trace Set Options Menu lets you switch between "Exclusive" and "Inclusive" Trace Set modes.
The red cube is in the Trace Set for the back wall's "Reflection Trace Set." The red cube is now missing in the reflection when using "Exclusive Mode."
The Trace Set is now using "Inclusive Mode" where all other objects in the scene except the red cube are ignored from the reflection even the ground plane.
The red cube is in the Trace Set for the Glass cube's "Refraction Trace Set." The red cube is now missing in the refraction when using "Exclusive Mode."
The Trace Set example below is now using "Inclusive Mode" where all other objects in the scene except the red cube are ignored from the reflection, even the ground plane and the glass cube itself. This will make it look strange in some situations but is actually the correct response.
In order to make the result more "pleasing" we need to also account for the glass cube and ground plane by including them into the Trace Set along with the red cube. This will result in the blue cube being removed from the refraction while also accounting for the refractions from the ground plane and glass cube itself.
|
|
This result looks strange because every object except the red |
By also including the ground plane and the glass cube into the |
When using Inclusive Mode on the Refraction Trace Set of a refractive object make sure to include the refractive object itself or you will get unappealing results.