Category Archives: Developer
As previously posted, a prototype of the new GI scheme for mental ray was included with Maya 2015.
To be clear what a prototype is, this section from Wikipedia best describes this phase of the feature:
Prototype software is often referred to as alpha grade, meaning it is the first version to run. Often only a few functions are implemented, the primary focus of the alpha is to have a functional base code on to which features may be added. Once alpha grade software has most of the required features integrated into it, it becomes beta software for testing of the entire software and to adjust the program to respond correctly during situations unforeseen during development.
Often the end users may not be able to provide a complete set of application objectives, detailed input, processing, or output requirements in the initial stage. After the user evaluation, another prototype will be built based on feedback from users, and again the cycle returns to customer evaluation. The cycle starts by listening to the user, followed by building or revising a mock-up, and letting the user test the mock-up, then back.
As such there are some limitations to know about in this prototype:
- Motion blur not supported
- Lens shaders not supported
- Hair is tessellated
- Visibility (cutout opacity) not supported
- Specular interaction currently handled by Final Gather
Since the completed feature is expected to become the replacement solution I suspect these limitations will be removed over time.
Below is an example image rendered with the new GI. The main interior is taken from the Architecture Classroom found at
IDST [site appears to be gone]. Other modern mental ray features being used are:
- Layering Library Shaders
- Object Lights (2015 Service Pack 2 or later) 8 in total
- Light Importance Sampling (improving the result of the lighting and simplifying tuning of the scene to a single slider/value)
Also, I am not using portal lights or the Environment Light (Native IBL). Instead I am allowing the new GI to sample the environment without casting more shadow rays and speeding up the render. This also means simplified setup for interiors where you can use the new technique (and a GPU) to power through a scene and render quickly. The brute force nature of the technique will provide you with crisp indirect shadows.
The image below renders in 18 minutes at 1080HD using a K6000. (All of the following renders and time were rendered at 1080HD before resizing to better fit the webpage at 720HD)
The controls are pretty self-explanatory and only expose the main controls for quality. The controls may change in the future:
- Enable – override using the new GI instead of Final Gather (Be sure other features are off, like IP or Photons or they may run unnecessarily)
- Use GPU – this uses the GPU to accelerate the process. The result is identical regardless of mode but the CPU is much slower. Currently CPU usage is less than 100% Also note that CPU usage might be less than 100% using the GPU if using a slow card or high settings. This is because the CPU is waiting on the tile from the GPU. This requires recent graphics drivers and an NVIDIA graphics card (GTX or Quadro)
- Diffuse only – only calculate diffuse rays. In a lot of applications this is all you’re interested in. But scenes with glass walls and similar effects may need more. In the Prototype, Final Gather rays are used for this effect. This will change as the feature adds more abilities and takes over for old techniques
- Override FG (Final gather) Globals – The new GI can take its settings from legacy FG settings including ray depth (bounces) which is still set in Final Gather trace depth.
- Samples Per Pixel – this is the number of samples per pixel (Anti-aliasing) taken per pixel. This also acts as a multiplier of Rays. This number should be a square of another number: 1, 4, 9, 16, 25, 36, etc.
- Rays – Your primary control for quality. This is a brute force technique (at filter 0) where this number of rays is shot per pixel multiplied by samples per pixel above.
Below are some examples of altering the settings.
Increasing the samples per pixel, keeping everything else the same (filter set to 0):
Increasing the rays parameter, all else is the same (filter is set to 0):
The filter parameter is improved from previous ways of filtering/interpolating GI results. As a convenience the measurement is in pixels. You should find this easier to smooth more quickly and easily than other methods. It also has a negligible impact on render time unlike increasing interpolation with Final Gather. In fact, less variance should improve render times since Unified Sampling works less to solve the image. Keep in mind that increasing values will blur indirect shadowing details.
Open this in a new window to see the changes as they are subtle, blending away the noise. Please pardon the gif compression.
Another example of the improved smoothing filter:
Expect this feature to evolve dramatically over the next year as well as improve performance of both the GPU and CPU modes.
I’ve released a new public render setting user interface for Maya 2014: mr-rendersettings_v0.4.zip.
- Native environment lighting mode integration.
- Exposed trapezoidal shutter shape function for more realistic motion blur. I’ll explain these settings in another post.
- Renamed “Contrast As Color” UI option to “Quaily As Color”. This is more consistent with current naming and is also more intuitive.
- Slight layout rearrangement to improve workflow.
- Moved Adsk specific shader options to legacy.
Feedback and comments are welcome. Please report bugs on on the google code page.
- Improved weighting between layers
- A Quality control for glossy reflection and refaction (to replace ray count). This handles these effects based on roughness and importance. (Changing the roughness of a surface no longer requires re-tweaking ray counts for smooth renders) Also includes a global scene control defaulted to 1.0 as a String Option This will allow developers to improve and change the algorithm without interrupting the user’s workflow.
- A new and improved flakes shader that will continue to evolve with more flexibility including cellular noise, different distribution, and shapes. Users can control weight, density, perturbation and more.
Something to note about the flakes shader is the use scenarios are going to be beyond that of metallic flakes. Think of cosmetics packaging and snow for instance. Some more controls and a node-based design will help you to combine these in more ways. The previous issues with repeating patterns found in the flake shader have also been resolved.
**IMPORTANT: A change in controls will often cause a break in Maya for previous scenes. You may find your assigned shader groups are no longer attached to a material. Also, the current documents need updated in the next release**
If you head over to the NVIDIA-ARC forum, you’ll see a beginning explanation developer thread to testing the Layering Library. This thread will continue to expand. (You must be a registered forum user. Also, the forum does not recognize users automatically for spam reasons, you need to participate by making a post at some point. This also prevents Bots from swarming the board. Once the shader package is linked you may be able to make a post and download it.)
You can participate there and come back to the blog time to time to see other examples and explanations on the shader library.
These shaders begin the transition to other modern techniques with a flexible selection of components. The features include (but not a complete list):
- Built-in framebuffer outputs
- Better importance sampling for faster renders
- Components as separate building blocks for arbitrary layering. A single library can make shaders for many different things from car paint to skin and more.
- Non-lightmapping scattering shaders (multi-threaded)
- Light Path Expression options for specifying framebuffer passes
- Layers maintain energy conservation without user interaction
- and more. . .
You’ll also notice a re-branding continuing on the site. The main website address is now: http://www.nvidia-arc.com
They are looking for images to use on the main banner, you can even try your hand at some images with the new shaders!