You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The Shadow Maps light attributes control the shadow map generation for the attached light source.

 

Generate Shadow Maps 

Toggle to enables the generation of a shadow map for this particular light. It is set to off by default. This attribute works in conjunction with the Auto-Generate Shadow Maps attribute in the Shadow Maps group of rendering attributes. They both have to be turned on for the shadow map to be generated.

Shadow Map Name

Specifies the file name of the shadow map. It empty by default. It can be set to a relative or absolute path and can contain tokens (see File Path Expressions). Relative paths are handled as explained in 3Delight Data Locations. If this attribute is left empty, the shadow map name will be generated using each of the attached light node’s Shadow Map File Name, Add Scene Name, Add Light Name and Add Frame Ext attributes. This name generation will occur regardless of the light node’s Use Depth Map or Disk Based Dmaps attributes. Using this method (or using the <shape_name> expression), a single Light Attribute Node can be attached to several light sources and generate shadow maps for each and everyone of them, as long as they can all share the same parameters except for the file name. It is recommended to turn on the light node’s Add Frame Ext attribute if the Generate First Frame Only attribute is turned off. Note that a decent default file name is automatically generated when the "Generate Shadow Maps" toggle is turned on while the shadow map name is left empty.

Shadow Map Resolution

Specifies the image resolution for the shadow map. The default resolution is 512 x 512.

Shadow Map Shading Rate

Specifies the shading rate to be used for the rendering of this shadow map. The default value for this attribute is ‘1.0’. Note that the shading rate value specified here is not a multiplier of Shading Rate attribute in the Rendering Quality group of rendering attributes; it serves the same function but in the context of rendering the shadow map and it is used as specified here.

Shadow Map Type

Specifies the shadow map type to use: ‘normal’ and ‘deep’ (for deep shadow maps). More details about shadow map types can be found in 3Delight-UserManual.pdf; it details the pros and cons of each type.

Shadow Map Depth Filter

This attribute is only available when Shadow Map Type is set to ‘normal’. The value selected here defines what depth filter is used when rendering the shadow map. If some objects exhibits self-shadowing problems, adjust the ‘shadow bias’ value in the light shader (or the Maya light node if there are no RenderMan shaders attached to the light), or choose a different ‘depth filter’ value. The available values are: ‘min, ‘average’ and ‘midpoint' (the latest value is a little slower to compute but is usually very good at getting rid of the self-shadowing problems).

Volume Interpretation 

This attribute is only available when Shadow Map Type is set to 'deep'. The possible values are listed in the table below.

 

ValueDescription
Discrete

This value should be used to compute shadows cast by solid objects.

Continuous This value should be preferred for computing shadows cast by participating media (fog, clouds, smoke, etc.)

Distance Inside

Only useful for a specific hack where the deep shadow map contains the distance to the occluding surface (to render absorption, for example)

 

Shadow Map Pixel Samples

This attribute specifies in how many sub-samples each pixel will be subdivided for the deep shadow map rendering. The default is 2x2.

Generate First Frame Only 

If selected, 3Delight For Maya will only render the shadow map on the first frame of animation. This is a good choice when the objects that cast shadows are not animated. It is recommended to avoid inserting a ‘#’ in the "Shadow Map Name" attribute (or to check the "Add Frame Ext" attribute of the light node when the "Shadow Map Name" is left empty) when this option is turned on. By default, this attribute is set to off.

Generate With Motion Blur 

When this attribute is on, the shadow map will be rendered using the same shutter opening and closing times as the camera used for rendering the frame. This will produce motion-blurred objects in the shadow map, provided that at least one object has at least one of the transformation blur or deformation blur options turned on. Since depth shadow maps do not contain any transparency information, they are not recommended for creating proper motion blurred shadows. The motion blurred portions of the shadow map will produce grainy shadows; however it is possible to blur these grainy parts to some extent using the light source shader’s "shadow blur" or "shadow filter size" attributes. Deep shadow maps are a better choice when motion blurred shadows are needed; however a moving, motion blurred, self-shadowing object will only be properly shadowed if the deep shadow map is not motion blurred. Refer to Motion Blur and Motion Blur Rendering for details on the motion blur options.

Generate Cube Shadow Map

If this light attribute is attached to a point light, you may want to generate a shadow map for each direction (since point lights illuminate in every direction). Enabling this toggle will force 3Delight for Maya to generate an aggregated shadow map that contain six shadow maps. This option is off by default.

Shadow Camera -

This attribute specifies what camera will be used to render the shadow map. When no camera is specified, the light source attached to this attribute node will be used to position the camera used for the shadow map rendering; in this case the camera’s angle of view is defined by the light’s cone angle (if the light source is a spotlight). By default, no camera is selected.

Near Clipping Plane

This attribute defines the near clipping plane for the shadow map rendering. The default value is ‘0.001’.

 Far Clipping Plane

This attribute defines the far clipping plane for the shadow map rendering. The default value is ‘10000.00’.


  • No labels