Here we go over the basics of this tutorial and setup the scene ready with linear workflow.
Sampling And Final Gather
Maya, Mental Ray: Lighting

Sampling is the quality of the pixel information and is usually scene as grain. Sharp images are relatively easy to render in CG, but as soon as anything is blurred we need to up sampling levels for better image quality. Blurring of shadows, specular reflections, subsurface scatter and many other elements may introduce grain.
Final Gather is Mental Rays method for calculating bounce light. It must be thought of as a separate lighting system and comes under the category of Indirect Lighting. Mental Rays Global Illumination method can also be used but because of slower render times it’s usually not used in rendering for animation where we have multiple frames.
Think of Indirect Lighting as a seperate system to direct light which is the lights and shadows cast directly from the light source. indirect Lighting is the bounce lighting and is also cast from IBL’s or Image Based Lighting spheres with HDR Images.
We are using Linear lighting for these tutorials, so refer to linear lighting pages for more info there. Setup tutorial here is video 2 and I use scripts from the Fast Linear Workflow Setup page as well.
HDR images can be downloaded from HDRlabs.com
Contents (52 mins)
1.1 – Introduction
1.2 – Scene Setup
2.1 – Sampling Overview
2.2 – Shadow Reflect SSS Samples
3.1 – Indirect Lighting
3.2 – Real World Light
4.1 – Accuracy and Rays
4.2 – FG Density
4.3 – FG Blurring
4.4 – FG Three Values
5.1 – Blurring IBLs
Instructor
Andrew Silke
Last Updated
October 2015

Information |
---|
The introduction for this tutorial. |
Information |
---|
Setting Up the scene quickly |

Sampling is usually the cause of noise in our scenes. It happens on any pixels needing soft or blurred areas. Anti-aliasing, soft shadows, blurry specular reflections, subsurface scattering are all common offenders.
There’s a MR overall setting in the Render Settings > Quality > unified sampling slider. This is our overall sampling setting but we also must tweak other settings too for shadows and materials individually.
Information |
---|
The Unified Sampling Slider is a Global sampling level in MR.
Render Settings > Quality > Unified Sampling Slider This is our overall image quality setting. It most obviously improves antialiasing but it also globally improves the sampling of all elements including textures, shadows, SSS and reflections. Defaults are .25 which is low. For final renders it’s recomended to set at .75 or 1. You can go higher but usually we’ll remove the grain in post since render times can get very heavy. Still images are commonly set high where you can leave renders over night to render for 12hrs plus. This is usually not recomended for animation where hundreds of frames need to be rendered. |
Information |
---|
The Unified Sampling Slider is a Global sampling level in MR.
Render Settings > Quality > Unified Sampling Slider This is our overall image quality setting. It most obviously improves antialiasing but it also globally improves the sampling of all elements including textures, shadows, SSS and reflections. Defaults are .25 which is low. For final renders it’s recomended to set at .75 or 1. You can go higher but usually we’ll remove the grain in post since render times can get very heavy. Still images are commonly set high where you can leave renders over night to render for 12hrs plus. This is usually not recomended for animation where hundreds of frames need to be rendered. |

Now we’ll explore Indirect Lighting, a new topic which isn’t related at all to sampling. Indirect Lighting is the bounce light in our scene and must be thought of a separate to direct lighting from the actual lights in our scene. This becomes more important later when we noticed “blotches” in our renders, “blotches” are usually cause by final gather and are not related to sampling. Sampling is usually diagnosed as grain.
Information |
---|
An Overview of Indirect Lighting and what bounce light systems are available to us in Maya’s Mental Ray. We’ll be focusing on the subsection “Final Gather” exclusively for render speed in animation with a minimal loss of quality. |
Information |
---|
Quick note about Final Gather compared to how light behaves in the real world. |

Final Gather is composed mainly of three values, “accuracy” which is related to rays, “density” is the amount of points and “point interpolation” which can be thought of as blur. With a good understanding of how these values relate to each other we can start to optimise render times and remove Final Gather artefacts. This is crucial for good lighting in Mental Ray.
Information |
---|
Accuracy is the foundational value that governs how Final Gather calculates bounce light. It’s important to really understand how the light rays randomly ping the scene to produce the bounce lighting effect. |
Information |
---|
Point density is the value that adds more or less points. But it’s important to know that just adding more points doesn’t necessarily mean better looking renders. |
Information |
---|
Blurring is the key to getting rid of the point blotches in our renders, but it comes at a cost, both in render times and in loosing crack shadow details. |
Information |
---|
Now that we understand all the values here we explore how they can be used in conjunction, keeping in mind that the more we blur with “point interpolation” the more we’ll loose our lovely crack shadow detail. In the past we’d use ambient occlusion passes to add our detail back, ambient occlusion is a little bit like cavity maps where darkness is caught in the crack detail, but if we get out FG settings right we should minimise the need to add ambient occlusion later in post. |

Interestingly blurring our IBL image domes will help our Final Gather in outdoor scenes. This is an interesting effect which is quite intuitive now we understand how the Final Gather is working.
Information |
---|
Here we see how different images can be used to further optimise our lighting. A blurred lores version of the IBl can be used for the diffuse lighting and counter intuitively produces better lighting results. However we usually still use the hires .hdr image for reflections and the super hires jpg for our background clarity. HDR Labs have a free Maya plugin that automatically divides the rays correctly. It’s recommended for further study in this area. |