With shadows, you can create rendered images that have greater depth and realism.
The renderer can generate shadows by shadow mapping or by ray tracing. Shadow mapped shadows rely on a bitmap that the renderer generates during a pre-rendering pass of the scene. Shadow mapping provide softer edges and can require less calculation time than ray-traced shadows, but are less accurate. Ray tracing traces the path of rays sampled from the light source. Shadows appear where rays have been blocked by objects. Ray-traced shadows have more accurate, hard edges and require more calculation time.
Shadow maps are the only way to generate soft-edged shadows, but they do not show the color cast by transparent or translucent objects. Shadow-mapped shadows are calculated faster than ray-traced shadows.
The following example shows how shadow maps produce softer, less precise shadows that are processed faster than raytraced shadows.
During a pre-rendering pass, a shadow map bitmap is created. Shadow quality can be controlled by increasing or decreasing the size of the shadow map. The default shadow map size is 256 x 256 pixels. If the shadow appears to be too grainy, increasing the map size will give you better quality. Shadow mapped shadows should not be used if you have a light shining through a transparent surface (for example, a multi-pane window where you want the the frame and mullions to cast shadows). You’d have to remove the glass in order for the mullions to cast shadows.
Ray-traced shadows (like other ray-traced effects of reflection and refraction) are generated by tracing the path of light beams or rays sampled from a light source. Ray-traced shadows are more accurate than shadow-mapped shadows.
The following example shows that while raytracing take longer to process, it produces more realistic, precise shadows.
Ray-traced shadows have hard edges and accurate outlines; they also transmit color from transparent and translucent objects. Therefore, shadows of the frame and mullions of a multi-pane window will render. Because ray-traced shadows are calculated without a map, you don't have to adjust resolution as you do for shadow-mapped shadows.
You can select one of three shadow mode settings when shadows are turned on. The shadow mode can be set to Simple, Sort, or Segment.