Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image AddedThe Moana Cloud asset rendered using the Aggregate Volumes workflow. OpenVDB Asset courtesy of Walt Disney Animation. CC BY-SA 3.0 License.

When rendering clouds with the Aggregate Volumes workflow, there are a number of key settings that you can adjust to control the look of a cloud. All images on this page were rendered using a scene set up in RfM. Instructions for setting up the scene can be found in the Scene Setup sectionThis document outlines aggregate volume controls in the context of rendering clouds.

Volume Settings

Max Path Length

...

The cloud scene rendered with Multi-Scattering Approx. set to 0 (left) and 1 (right) with default Bleed and Contribution.


Warning

Setting Multi-Scattering Approx to values other than 0 or 1 may not produce visually correct images

MS Approx Bleed

The MS Approx Bleed parameter controls how much light bleeds through a volume. Higher Bleed values allow more light to pass through the volume and light areas that would otherwise be shadowed. As such, the effect of MS Approx Bleed is most visible in shadowed areas of a volume, but it also creates a slight overall brightening effect. You can use the bleed parameter to compensate for the overall loss of brightness caused by lower Max Path Lengths.

...

The cloud scene rendered with Bleed set to 0.1 (left) and 0.9 (right) with default Contribution.

...

MS Approx Contribution

The MS Approx Contribution parameter controls how much the light bleed from the Bleed parameter contributes to the brightness of the volume. Increasing Contribution tends to increase the overall brightness of the cloud, but it brightens fringes slightly less. You can use the Contribution to help bring out detail along the edges of a volume.

...

Note

Enabling anisotropy will introduce additional noise to your render. Higher values of anisotropy will introduce more noise.

Anchor
sceneSetup
sceneSetup

Scene Setup

This section covers how the scene used above was set up in RfM.

...

First, create an OpenVDBVisualize object from the RenderMan shelf tab.

Image RemovedImage Added

Next, select the VDB file you want to use in the OpenVDBRead settings in the attribute editor (the quarter or eighth resolution versions of the Moana cloud are fine for nowCloud work well for tweaking settings).

Image RemovedImage Added

Now, you should be able to see a wireframe of the leaf nodes and tiles in the viewport (you may have to zoom out to see the whole cloud). Next, select the OpenVDBVisualize object in the outliner and open the OpenVDBVisualize settings in the attribute editor. Here, we want to you should rotate the volume so that the top of the cloud is in the +Z direction. So, add a 90 degree rotation along the X-axis.

Image RemovedImage Added

The last thing we want you need to do in the volume settings is add the volume to a volume aggregate. The globalVolumeAggregate is created automatically, so under the OpenVDBVisualizeShape settings, in RenderMan > Volume Aggregate, set the Aggregate Membership to "globalVolumeAggregate".

Image RemovedImage Added

You may also want to disable the visualization of leaf nodes and active tiles, which is under the OpenVDB Visualization Settings.

Image RemovedImage Added

Volume Shader Settings

In the shader settings, you can also adjust the anisotropy settings under the Anisotropy area. By default, anisotropy is off.

Image RemovedImage Added

Light Setup

For the light setup, we will use a PxrEnvDayLight. So, the first step in the lighting setup is creating a PxrEnvDayLight from the Renderman tab of the shelf.

Image RemovedImage Added

Next, you can adjust the light direction under the PxrEnvDayLightShape tab of the attribut attribute editor either using the Month/Day/Year/Hour (the default method in RfM) or using the Direction control by selecting Month > Use Direction. For To replicate the scene used in this tutorial, we use the direction controls and set the direction to 0.8, 1.0, 0.6. I also found it useful to You should also change the "Ground Mode" from "Legacy" to "Horizon Clamping".

Image RemovedImage Added

The other defaults provide a good starting point so you can leave them unchanged for now. This is also where you will adjust your MSApprox settings (under Multi-Scatter Approx)Scattering Approximation settings. It can be quite hard to predict how MSApprox MS Approx will affect the render, so you should wait to adjust these settings until after the render is set up completely.

Render Settings

The last thing we you need to change to tweak before we see our cloud the rendered is clouds are the Render Settings. So, open the Render Settings and select the RenderMan tab. The first thing you should change is under the "Aggregate Volumes" tab. For "Volume Aggregate Name", enter "globalVolumeAggregate" (this is the volume aggregate we added our cloud to before).

Image RemovedImage Added

Once you set the volume aggregate name, you should see the cloud if you start a render (either in the viewport or externally in "it"), but it still won't look quite right. To give the cloud the correct appearance, we you need to adjust the number of bounces. First, under "Default Ray Depth", adjust both the "Max Specular Depth" and "Max Diffuse Depth" to much higher values (e.g. no less than 32as described above), and under "PxrPathTracer Parameters", set "Max Indirect Bounces" to that same number.

Image RemovedImage Added

Multi-

...

Scattering Approx

To begin withadjust the Multi-Scattering Approximation settings, go to the settings on our PxrEnvDayLight and enable MSApprox Multi-Scattering Approximation by setting "Multi-Scatter Scattering Approx" to 1. Now, you can adjust the bleed and contribution as described above. If you find that the cloud is too bright, reducing the value of the MS Approx setting from 1 is an easy way to change the brightness without having to tweak the bleed and contribution too much..

Image AddedImage Removed

Render

Now that everything is set, you can kick off a render and see the final imagecloud, which should look something like this:Image Removed

Image Added