Versions Compared

Key

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

Instead of relying on 3Delight's ray-tracing to render projected shadows, one have the option to use Shadow Maps. These can be generated manually or automatically by 3Delight. This is specified through the Shadow Maps groups of light attributes of The Render Settings. Among these attributes, there are two types of Shadow MapMaps that can be used: Standard (Depth) and Deep shadow maps. Here is an explanation of the pros advantages and cons disadvantages of each:

Standard (Depth) Shadow Maps

...

  • They are fast to generate. Indeed, shadow maps can be generated much faster than a normal "color" image, mainly because only depth information is needed. When rendering a shadow map, one could remove all surface and light shaders, even displacement shaders can be removed if they do not affect the geometry too much. Also, filtering (using PixelFilter command) can be lowered (even to 1x1) and ShadingRate increased (up to 10 or more).
  • They can be reused in more than one render. If the scene is static and only the camera moves, a generated shadow map can be used for all subsequent renders. This often happens in the lighting stage of a production pipeline.
  • They can be used to generate low cost (approximate) penumbra. Specifying an appropriate value for the "Filter Size" attribute on the light shape, one can simulate penumbra effects. This attribute is located in the "Shadows > Depth Map Shadow Attributes" group. When a light has an associated RenderMan light shader, this is usually controlled by a "blur" attribute directly on that shader instead.
  • They provide fairly good results when used carefully.

...

  • Self shadowing. This is the most common problem encountered when using shadow maps. It appears as dark artifacts in areas that should appear completely lit. This problem can be resolved by using an appropriate value for the light shape's shadow bias attribute, located in the "Shadows > Depth Map Shadow Attributes" group. When a light has an associated RenderMan light shader, the bias is set directly on that shader instead.
  • Nearly impossible to generate high quality area shadows. Even if tweaking with shadow blur can give a nice penumbra effect, it is impossible to generate a true area shadow.
  • Expensive to generate really sharp shadows. This is because high resolution shadow maps are needed which often leads to longer render times and memory/disk usage.
  • No motion blur in shadows. Moving geometry still casts shadows. It is wise to remove motion blur when rendering shadow maps.
  • No colored shadows. Translucent surfaces cast opaque shadows.
  • Only objects that are in the shadow map cast shadows. That is why shadow maps work so well with spot lights: they light only a limited field of view. Point lights are more tricky to handle (need six shadow maps) and distant lights are difficult to setup with shadow maps. When creating shadow maps, make sure that shadow casting objects are framed correctly (and tightly) in the camera view that is used to render the shadow map. If objects are too far (small in shadow map view), precision problems may arise and high resolution shadow maps are needed. If objects are too close and parts of them are clipped, shadows might be missed. 3Delight supports the ‘midpoint’ algorithm for normal shadow maps. This should help to get rid of shadow bias problems in most cases. The 'midpoint' algorithm can be chosen for the Shadow Depth Filter attribute.

Deep Shadow Maps (DSM)

Deep shadow maps retain many of the features found in normal standard shadow maps and provide some more goodies:

...