Multiple scattering
There are several different algorithms for calculating multiple scattering in the sub-surface layers. This section allows to select an algorithm and adjust its parameters.
Multiple scattering - selects the type of algorithm: - Prepass-based illumination map - this algorithm approximates sub-surface scattering by precomputing an illumination map on the surface of the object; this map is built using V-Ray's prepass system (the same one used for the irradiance map and interpolated glossy reflections/refractions). The advantage of this method is that it is quite fast, since the illumination map is only computed for the portions of objects that are visible to the camera. Also, the amount of calculations is proportional to the screen space taken up by the object. A disadvantage is that no information is generated for parts of objects outside the screen, which may lead to incorrect results for objects which are only partially visible. Since the distribution of the samples depends on the camera position, flickering is possible in animation. Finally, objects that are far away from the camera may be sampled insufficiently, leading to incorrect results.
- Object-based illumination map - this algorithm also approximates sub-surface scattering by precomputing illumination on the object's surface; however the points are distributed directly on the surface on the object with a specified density. This method avoids the problems of flickering and insufficient sampling for far-away objects, however it may calculate a lot more illumination points that are strictly needed to render the image.
- Raytraced - this method uses raytracing to distribute points on the object's surface. It does not require precomputation and is suitable for use with theProgressive image sampler. The only disadvantage of this method is that it can introduce noise in the image if the raytraced samples are insufficient.
Scatter GI - when this option is enabled, GI is taken into account when calculating multiple scattering. Otherwise, GI is approximated as if the surface is diffuse. Turning this option on leads to more accurate results when using GI, but may slow down the rendering. Raytraced scatter textures - this option controls whether the textures for the sub-surface scattering layers taken into account when computing the scattering. Turning this option may lead to more accurate results, but adds quite a bit of render time.
Example: Raytraced Scatter Textures
Raytraced scatter textures is off, only the lighting on the surface is scattered. |

Raytraced scatter textures is enabled. The textures are also included when computing the scattering, but the render time is increased. |
|
|
Raytraced subdivisions - determines the number of samples used to compute multiple sub-surface scattering when the type is set to Raytraced. Larger values decrease the noise, but take longer to compute. Prepass rate - this parameter determines the resolution of the prepass used to compute the helper illumination map when the type is set to Prepass-based illumination map. Larger values produce more accurate results but take longer to compute. F.e. a value of -1 means that the prepass will be done at half the image resolution; 0 means that the prepass will be done with the full image resolution etc, 1 means twice the image resolution etc. Prepass ID - different VRaySkinMtl materials with the same value of the Prepass ID parameter share the same illumination map. This is useful if different materials are applied to parts of the same object, but a smooth transition between them is required. A value of 0 means that the particular VRaySkinMtl material uses its own illumination map. Interpolation accuracy - this parameter controls the quality of the approximation of the multiple scattering effect when the type is Prepass-based illumination map or Object-based illumination map. Larger values produce more accurate results but are slower to render. Lower values render faster, but too low values may produce blocky artifacts on the surface. Auto-calculate density - this parameter is used with the Object-based illumination map, and it tells the material to attempt to automatically determine the required density of the illumination samples. Note: currently this option does not work very reliably. Samples per unit area - when multiple scattering is computed with an Object-based illumination map, this parameter determines the number of illumination samples per unit area of the object. Larger values produce more samples and more dense sampling that captures surface illumination details better, but may slow down the rendering and take more RAM. Lower values render faster, but too low values may not capture the surface illumination accurately leading to artifacts. The Preview samples option can be used to visualize the position of the samples. Surface offset - used with Object-based illumination map; this parameter specifies a small distance above the surface of the object where the illumination is actually computed, in order to avoid "surface acne" artifacts. Preview samples - this option can be used to visualize the samples in the Object-based illumination map. Max distance - used with the Preview samples option and specifies how large the visualized samples will be. Background color - used with the Preview samples option to specify the background against which the samples are visualized. Samples color - used with the Preview samples option to specify the color of the individual samples. |