Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
bordertrue
Column
width100px100%

Table of Contents
stylesquare

Section
bordertrue
Column
width100px100%

Caustics Overview


In order to calculate the caustics effects, V-Ray uses a technique known as photon mapping. It is a two-pass technique. The first pass consists of shooting particles (photons) from the light sources in the scene, tracing them as they bounce around the scene, and recording the places where the photons hit the object surfaces. The second pass is the final rendering, when the caustics are calculated by using density estimation techniques on the photon hits stored during the first pass.

Caustics Parameters


Enable - turns rendering of caustics on and off.

Max photons - this is the maximum number of photons that will be considered when rendering the caustics effect on a surface. Smaller values cause less photons to be used and the caustics will be sharper, but perhaps noisier. Larger values produce smoother, but blurrier caustics. The special value of 0 means that V-Ray will use all the photons that it can find inside the search area.

Section
bordertrue
Column
width100px100%
Info

Example: The Max Photons Parameter

For this example, the Caustics subdivsparameter  parameter for the light was set to 40004,000, the global caustics Multiplier to 17000 17,000, and the Search distance to 0.5. As can be seen, the larger value of the Max photonsparameter  parameter in the second image causes the caustics to appear much smoother.

Section
bordertrue
Column

Image Added

Max photons = 1

Column

Image Added

width50px

Image Removed

Max photons = 60

Section
bordertrue
Column
width100px

Search distance - when V-Ray needs to render the caustics effect at a given surface point, it searches for  a number photons on that surface in the area surrounding the shaded point (search area). The search area in fact is a circle with center the original photon and its radius is equal to the Search distance value. Smaller values produce sharper, but perhaps more noisy caustics; larger values produce smoother, but blurrier caustics. 

Info

Example: The Search Distance ParameterDistance Parameter

Section
bordertrue

For this image, the Caustics subdivs parameter for the light is set to 50, so that the separate photons are more distinct; the global

Caustics 

caustics Multiplier is 17000, and

the 

the Max photons

 is

are set to 60. As can be seen, the larger search distance produces blurrier caustics.

Section
bordertrue
Column
width50px

Image RemovedImage Added

Search distance dist 1

Column
width50px

Image RemovedImage Added

Search distancedist = 10

Section
bordertrue
Column
width100px100%
Info

Example: The Light Caustics Subdivs Parameter

Section
bordertrue

This example is similar to the previous one, but the Caustics subdivs parameter for the light is increased to 300. The other parameters are the same as in the previous example. As can be seen,

a

the larger number of photons

produce

produces smoother caustics effects than in the previous example.

Section
bordertrue
Column
width50px

Image RemovedImage Added

Search distance dist 1

Column
width50px

Image RemovedImage Added

Search distancedist = 5

Section
bordertrue
Column
width100px100%

Max density - this parameter allows you to limit the resolution (and thus the memory) of the caustics photon map. Whenever V-Ray needs to store a new photon in the caustics photon map, it will first look if there are any other photons within a distance specified by Max density. If there is already a suitable photon in the map, V-Ray will just add the energy of the new photon to the one in the map. Otherwise, V-Ray will store the new photon in the photon map. Using this options allows you to shoot many photons (and thus get smoother results) while keeping the size of the caustics photon map manageable.

Section
bordertrue
Column
width100px100%

Multiplier this multiplier controls the strength of the caustics. It is global and applies to all light sources that generate caustics. If you want different multipliers for the different light sources then you should use the local light settings. Note: this multiplier is cumulative with the multipliers in the local light settings.

Mode


Mode - controls the mode of the irradiance map:

  • New map - when this option is selected a new photon map will be generated. It will overwrite any previous photon map left over from a previous rendering.
  • From file - when you enable this option V-Ray will not compute the photon map but will load it from a file. Hit the Browse button on the right to specify the file name.

File - the file name with the caustics photon map to be loaded when the Mode is set to From file.

Save - this will save to file the photon map which is currently in memory. Note that the Don't delete option in the On render end group must be turned on. Otherwise V-Ray will automatically delete the photon map at the end of the rendering process.

On Render End


Don't delete - when checked, V-Ray will keep the photon map in memory after the scene rendering has finished. Otherwise the map will be deleted and the memory it takes will be freed. This option can be especially useful if you want to compute the photon map for a particular scene only once and then reuse it for further rendering.

Auto save - when this is turned on, V-Ray will automatically save the caustics photon map to the file provided in the Auto save file field when rendering is complete.

Notes


  • Caustics also depend on the individual light settings.