Blog Archives

Light Path Expressions and mental ray 3.11 shaders

iray 3.0 includes the ability to use Light Path Expressions (LPE) to separate different elements of your render. The iray blog has a simple explanation here: iray LPE

Additionally, the layering library of shaders coming for mental ray 3.11 (and future beta testing) will allow the specification of framebuffers using relevant LPE. This continues the bridge from the older style of rendering to newer methods with a flexible set of layerable components.

Many modern renderers use light transport to render the scene. This is a path from the light to the eye in this case. Light is transported (traced) along this path and stored in the framebuffer. LPE allows you to selectively isolate effects and paths using an expression that is consistent across renderers (the expression means the same thing regardless of render engine). This isn’t a new idea and has been around for some time, but few products have used it. Of course the trick will be exposing this in a useful way for most users and non-technical artists. But the concept of what you are getting from the renderer is much clearer in this case and more exact.

You can think of a few different (simple) interactions such as:

  • Diffuse – Reflection or Transmission (translucency), and it can be direct or indirect
  • Glossy – Reflection or Transmission, also can be direct or indirect
  • Specular – Reflection or Transmission, this is a mirror (reflection) and is usually treated as indirect only.

In iray, these interactions can also be in different orders or number of interactions, perhaps you only want 2 bounces of reflection for example. You can also have the possibility of tagging objects and retrieving their contribution, like per-light framebuffers or separating out individual objects and/or contribution for later compositing. Keep in mind the more you add, the greater complexity and the slower your render may become.

SIGGRAPH Presentation

You can find the presentation here:  nVidia Advanced Rendering and Ray tracing

You can also find a short blurb about coming features here: ARC Forum SIGGRAPH recap

Mentioned are features such as:

  • Ambient Occlusion on the GPU with mental ray
  • Layered shaders (layered components) that include the SSS shader without lightmapping. They have their own framebuffer mechanism with passes for added flexibility in OEM packages.
  • Object lights with a new shader independent of OEM integrations
  • Light Importance Sampling (IS) and Material Importance Sampling. This makes the usage of objects as area lights much easier and faster than before
  • Multiple Motion Transforms (think curved paths and light streaks)
  • Light Path Expressions (LPE) in iray
  • Kepler support for iray 3 in mental ray