3D animation tutorials

Global illumination, final gathering, caustics, and light emitting materials in Maya, using mental ray.

In the video tutorials on 3DbyBuzz, we look at the basics of creating lights in Maya, using ray tracing, and manipulating shadows.  We also look at the rudiments of global illumination and final gathering.  And we look at depth map versus ray traced shadows. In this posting, we review final gathering and then look at a couple of new things: caustics and irradiance.  Our goal is to look at a few different ways of adding light effects to a scene. We will be using the mental ray renderer for this posting.

Global illumination and final gathering.

We use these two options to add more light to darkened areas of a scene. As a reminder, final gathering, which is an option you can set in the mental ray renderer, adds some extra computations to the ray tracer, and in doing so, fills in dark areas.  These often occur when one part of a model is casting a shadow on itself.  By using final gathering, we put some extra rays in those little spots. If we go to Window, choose Render Editors, and then Render View, we can select mental ray, and then go to the Indirect Lighting tab and choose Global Illumination. We will also turn on Final Gathering, which does a similar job, but is less effective.

 

globalillandfg-2013-02-16-22-21.jpg

 Below, is the before and after. Without global illumination and final gathering.  Notice the area around the brass bolt.

 

 

none4-2013-02-16-22-21.jpg

  With global illumination and final gathering.  Look at the same area:

 

withgifg2-2013-02-16-22-21.jpg

Caustics.

We use caustics to create the harsh light reflections and refractions we often get when light hits a glass object. We will manipulate both the lights in a scene and the mental ray settings to get caustics. We will use a scene that we have seen in the tutorials on 3DbyBuzz.  We have a NURBS curve that has been revolved to make a dish.  On it we have placed the mental ray mia_material, with a ThickGlass preset:

 

mia_material-2013-02-16-22-21.jpg

We apply this material to the dish by selecting the dish in the Main window, then right clicking on the material, and then assigning it:

 

assigningglass-2013-02-16-22-21.jpg

 First, here is a scene without caustics:

 

withoutcaustics-2013-02-16-22-21.jpg

  Now, we turn on Caustics in the mental ray render settings:

 

causticsinmrsettings1-2013-02-16-22-21.jpg

Now, we turn on photon emitting in the attributes of the dominant light in the scene, which happens to be a spot light with a wide cone.  The other light in the scene is also a spotlight with a wide cone, but its intensity is much lower.

 

photonsinlight-2013-02-16-22-21.jpg

  Now, we render the scene again:

 

causticswithlessintensity-2013-02-16-22-21.jpg

 Light emitting materials: Irradiance.

First, we choose a highly reflective material from the mental ray list of materials.

 

miapaintmaterial-2013-02-16-22-21.jpg

We apply this material to the dish by selecting the dish in the Main window, then right clicking on the material, and then assigning it:

 

redpaintmaterial-2013-02-16-22-21.jpg

Now, we turn our two spotlights in the scene down low and render. There is very little light in the scene:

 

dimred-2013-02-16-22-21.jpg

Now, we turn up the irradiance of the material.


irradiancelevel-2013-02-16-22-21.jpg
Below is the result.  We have a sci-fi goblet.

 

irrandianceglow-2013-02-16-22-21.jpg