---
title: "V-Ray for Solaris Caustics"
canonical: "https://documentation.chaos.com/space/VRAYHOUDINI/1376518149/V-Ray+for+Solaris+Caustics"
format: markdown
---
This page provides information on the Caustics in V-Ray for Solaris.


## **Overview**

---

V-Ray supports the rendering of caustics effects by using one of the following techniques: photon mapping or progressive.

The **Progressive **caustics solver uses advanced sampling techniques and is able to trace as many photons as required without suffering the memory constraints of traditional Photon Mapping techniques.

It is loosely based on two papers: one on <u>[Progressive Photon Mapping from Knaus and Zwicker](https://www.cs.jhu.edu/~misha/ReadingSeminar/Papers/Knaus11.pdf)</u>, and another on <u>[Metropolis-guided caustics tracing from Šik and Krivánek](https://cgg.mff.cuni.cz/~jaroslav/papers/2019-corona-caustics/2019-sik-corona-caustics-paper.pdf)</u>.

The **Photon Mapping** is a two-pass technique. The first pass consists of shooting light 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, which is when the caustics are calculated by using density estimation techniques on the photon hits stored during the first pass.

> ⚠️ Progressive and From File modes are not available with V-Ray GPU.
> ⚠️ 
> ⚠️ New Map (Photon Mapping) works with V-Ray GPU, provided the scene has a GI calculation.


## **Parameters**

---

**Enable Caustics **– Turns the rendering of caustics on and off.

**Mode** – Controls the mode of the caustics photon map:

**New** – Causes a new photon map to be generated. The new map overwrites any previous photon map left over from a previous rendering.  
**From File** – V-Ray does not compute the photon map but loads it from a file.  
**Progressive** – The Progressive method doesn't need most of the controls used for traditional Photon Mapping, so the controls are grayed out.

**Multiplier** *– *[Available only for New mode] 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, use local light settings. 

> ℹ️ This multiplier is cumulative with the multipliers in the local light settings.

**Units **– Determines in what units the **Search Distance** parameter is specified - **World **units or **Pixels**. The Progressive mode works only with Pixels.

**Search Distance (World)/(Pixels)** – [Available only for New mode] When **Mode** is set to **Progressive**, this parameter specifies the initial photon lookup radius in pixels. When **Mode** is set to New or **From** **File**, the Search Distance specifies the radius of search area circle. 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 is a circle with its center at the original photon and a radius equal to the value. Smaller values produce sharper, but perhaps noisier caustics; larger values produce smoother but blurrier caustics. *For more information, see **[the examples](#sdirection)** below. *

**Max Photons** –* *[Available only for New mode] Specifies the maximum number of photons within the search area circle that are considered when rendering the caustics effect on a surface. Smaller values cause less photons to be used and the caustics are sharper, but perhaps noisier. Larger values produce smoother but blurrier caustics. The special value of *0* means that V-Ray uses all the photons that it can find inside the search area. 

**Max Density **– [Available only for New mode] Limits 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 first looks 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 just adds the energy of the new photon to the one in the map. Otherwise, V-Ray stores 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.

**File **– [Available only for From File mode] File name with the caustics photon map to be loaded when **Mode **is set to **From File**.

**Don't Delete from Memory **– When enabled, V-Ray keeps the photon map in memory after the scene has finished rendering. Otherwise, the map is deleted, so that the memory it takes up is 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** – [Available only for New and Progressive modes] When enabled, V-Ray automatically saves the caustics photon map to the file specified in the **Auto save file** field when rendering is complete.

**Auto Save File** – [Available only for New and Progressive modes] Specifies the file to which the caustics photon map is saved when **Auto Save** is enabled. Click the **Browse** button to the right to specify the file name.

**Show Calculation Phase** – [Available only for New mode] When enabled, displays the calculation of the caustics map.

![Caustics.png](media://9376b273-b8fc-4916-a22f-c3a0f3a0bb27)



> Macro (anchor)



### **Example: The Search Distance Parameter (Progressive)**

 

For this example, the light used in the scene is V-Ray Sun. The Caustics Mode is set to **Progressive**. The V-Ray Sun has its Photon emission properties adjusted as so: **Caustics Subdivs** are set to 1500; the **Caustics Multiplier** is set to 2 and the **Photon Radius** is set to 30 cm.

 

![image](media://5a689bb0-9e44-4e37-8337-c0a872f02e80)

**Search Distance** is 1

![image](media://df91a9c9-059d-4706-b1ba-090428526253)

**Search Distance** is 16

![image](media://008745b2-09f0-4ba5-a3fb-9c512a378efe)

**Search Distance** is 32



## **Progressive Caustics Advantages **:check_mark: 

---

- 
- Each cast photon is more useful than those in traditional Photon Mapping.
- The number of photons castable is only limited by time, not memory.
- They can resolve tiny caustic details, compared to the scene size.
- They can resolve caustic details also when a camera is very zoomed in on them.
- Statistics about the photon tracing can be found in the VFB2 stats panel.

 

## **Progressive Caustics Limitations **:cross_mark: 

---

- They require the progressive image sampler.
- The image sampler often requires Min. subdivs values much higher than 1.
- It's non-deterministic, meaning render times can be somewhat unpredictable, and the same frame may look slightly different when rendered twice.
- Currently doesn't work with distributed rendering.
- The GPU engine doesn't currently support it.
- Depending on the scene, the performance might not scale linearly with the number of threads/cores, resulting in inefficient CPU utilization.

 

## **Notes**

---

- Caustics also depend on the individual light settings.
- For accurate caustic calculations, *disable *the <u>[V-Ray Material's](https://docs-chaos.atlassian.net/wiki/spaces/VRAYHOUDINI/pages/113279382)</u> **Affect Shadows **parameter when using caustics. Simultaneous usage of both **Caustics** and** Affect Shadows** can be used for artistic purposes but will not produce a physically correct result.
- V-Ray GPU supports Caustics rendering within the following limitations:
  - Texture lights are not supported.
  - Rendering with V-Ray GPU with RTX is not supported.
  - V-Ray Blend material is not supported.
  - Dispersion is not supported.
  - Supported lights are V-Ray Rectangle Light and V-Ray Sun Light.