mental ray Volume Shading
 
 
 

Volume shading shades a three-dimensional volume, rather than a surface. Typically, volume shaders provide atmospheric effects such as mist and fog.

Model rendered with no volume effect

Same model rendered in mist

Mist applied as a camera volume shader; realistic falloff on

There are two ways to assign a volume shader:

To assign a volume shader to a camera, use the Render Setup dialog. To assign a volume shader to a material, use the material's Volume shader component. This component is found on the mental ray Connection rollout, and in the mental ray material itself. See the “Procedures” that follow.

Procedures

To apply volume shading to a camera:

  1. On the main toolbar, click (Render Setup).

    If the active renderer is not already the mental ray renderer, go to the Common panel, and on the Assign Renderer rollout, click the “...” button for the Production renderer. A Choose Renderer dialog is displayed. Highlight “mental ray Renderer” in the list, and then click OK.

  2. Click the Renderer tab to go to the Renderer panel. On the Camera Effects rollout, find the Camera Shaders group, and click Volume.

    3ds Max opens the Material/Map Browser.

  3. Choose a volume shader from the list in the Browser, and then click OK.

To apply volume shading to an object:

  1. Choose Customize Preferences. Go to the mental ray panel, and turn on Enable Mental Ray Extensions.
  2. On the main toolbar, click (Render Setup).

    If mental ray is not already the active renderer, go to the Common panel, and on the Assign Renderer rollout, click the “...” button for the Production renderer. The Choose Renderer dialog opens. Highlight “mental ray Renderer” in the list and then click OK.

    Leave the Render Setup dialog open, or minimize it.

  3. Open the Material Editor. Use the mental ray Connection rollout to assign a volume shader to the Volume component.

    Another technique would be to use the mental ray material, and assign a shader to the Volume component.

  4. Also on the mental ray Connection rollout, click the lock button to unlock the Surface component. Click the shader button (“None”) and use the Browser to assign the Transmat (physics) shader to the surface.

    (If you are using the mental ray material, you don't need to first unlock the Surface component.)

  5. Apply the material to objects you wish to use as shaded volumes.