This page provides information on the Override Material node.
|
|
|
This example shows how the use of a GI material affects the rendering.
This simple interior scene represents a room lit by two rectangle V-Ray Lights - one hidden top light and another back fill light - as well as by three disc V-Ray Lights for the pendant lamps above the sinks.
A wooden V-Ray Material from the Chaos Cosmos library is applied on the floor, and a default V-Ray Material with Diffuse Color (128, 128, 128) is applied on the rest of the scene objects, except for the glass objects (mirror and pendant lamp plafonds).
In the first image, it is visible that all walls, objects, and the ceiling are rendered in some light brown color, despite having a light-gray material assigned to them. This is due to the color bleeding, generated by the GI calculations.
In the second image, the scene is rendered with a V-Ray Override GI material assigned to the floor. The V-Ray Override contains in itself the initial two V-Ray materials: the wooden V-Ray Material as base and the default V-Ray Material as GI material. The rest of the scene objects keep the default gray V-Ray Material. So now V-Ray knows that while calculating the GI it has to use the GI material (in this case: V-Ray Material with Diffuse Color (128, 128, 128) and during rendering it uses the Base material (in this case: the wooden V-Ray Material). The result of that is quite different from the previous render as the Color Bleeding is gone. Of course this depends entirely on your choice for the GI material. For instance, if you had chosen a bluish colored material, the final result would also be tinted slightly to blue, like in the first render with the pale brown colors.
In this simple scene, the result of the second render can be produced, with a pre-saved irradiance map, calculated with just the walls' material assigned to all the geometry.
For a much more complex scene, with lots of different geometry, shaders, textures, etc., using the V-Ray Override material can be very helpful.
The following example uses a very simple scene. It contains five chairs and a light source in a studio type environment. Each chair has a V-Ray Override material assigned, but only the Base Material is active. The rendered chairs are the same in their diffuse colors and reflections.
Now each of the chairs has a different material assigned in their Override Reflection Material. The first one has a green diffuse color, the second one has black, the third one has blue, the fourth - purple, and the fifth has a red diffuse color. V-Ray uses those materials when the objects are seen in reflections. In our project, the environment is actually a reflective surface, so the chairs are being reflected. On the other hand, you can also notice that the base material of the chairs is also reflective (Fresnel type), and the fourth chair is seen with its Override Reflection material in the middle chair.
The next render is even more complex as the chairs' Override Refraction Material is activated as well. From left to right follow: a blue and a red diffuse color. Those materials are set so that when seen through refraction, V-Ray considers and renders the objects with them. As you can see the Reflection materials are still affecting the render image. If you take a closer look at the glass chairs' edges you will notice the green reflection, which is actually the reflection material of the right chair. While V-Ray had been tracing the rays on the chairs' surfaces, those polygons on the edges had first captured a reflection, so that's why there are green traces.