This page provides information on the Shade Map (for stereoscopy) attributes that are part of the V-Ray Camera Attributes.


Page Contents ×


Overview


The Shade Map extra parameters speed up the rendering of stereoscopic images, especially those with large depth-of-field effects.

The workflow with shade maps involves two stages: Rendering the Shade Map and then reading it in. At the first stage a shade map is generated by setting the Mode to  Render shade map   and specifying the file in which the shade map will be saved. Rendering the scene will save a file that contains important information about the visible shaded points.

This information can then be used later by setting the Mode to Use shade map and specifying the shade map file. 

Note: These parameters only work when the Stereoscopic Camera Attributes are used in conjunction with the Shade Map attributes, and the Treat as VRay Stereoscopic camera option is enabled.

UI Path


 

||Select camera|| > Attribute Editor >  Attributes menu > VRay > Shade Map (for stereoscopy)




Parameters





Mode – Specifies the mode of operation for the shade map. 

Disabled – No shade map is used during rendering.
Render shade map  – Causes a Shade Map to be created and saved in the file specified in the shade map file field. 
Use shade map  – Uses information from the file specified in the shade map file field. 

Reuse Threshold – This value affects the rendering with shade maps. Lower values make V-Ray use less of the shade map and more real shading. This slows down the rendering but might be required if rendering with the default value produces artifacts. When using a relatively large depth-of-field effect, increasing this value might help to speed up the rendering.

32 bit colors – If enabled, color data is stored in full 32-bit in the shade map file; otherwise it is stored as 16-bit half-float per color component (red/green/blue).

shade map file – Specifies the name of the file in which the shade map information is stored.

Compression – Specifies whether the data in the shade map file is compressed as a ZIP file, or has no compression.

Exclude List – Excludes some of the objects in the scene from being rendered with the shade map. All excluded objects are rendered without the acceleration from shade maps. This is useful for object like glass windows or large flat mirrors where the stereo effect is needed for reflections/refractions in the material.

 

Workflow


The workflow with shade maps involves two stages. At the first stage a shade map is generated by setting the Shademap mode to Render shade map and rendering. The file in which the shademap will be saved needs to be specified in the shade map file field. This file can be used later in Use shade map mode to render stereoscopic images or images with DoF much faster.  


Notes


  • The shade map will produce proper stereo effect for opacity-mapped objects, but not for refractive objects. To make it work with refractions, the glass objects must be excluded from the shade map, or use opacity mapping instead.