# Global Illumination Cache: Calculate Irradiance Map and Light Cache

Light caching (called "lightmapping" in older versions of V-Ray) is a technique for approximating the global illumination in a scene. To get the lighting from the environment, V-Ray traces many rays from the camera into the scene. Each bounce of light creates a sample in the light cache that can be used during the rendering. If one ray hits a sample that was created by another ray, the tracing is stopped and the information from the sample is read instead. This speeds up the process a lot.

**Nodes**:

If your project requires precalculated Global Illumination Cache (GI Cache), you have to calculate your Irradiance Map and Light cache file then upload them along with your project.

If you have never used Irradiance Map and Light cache before, here are some tips for you.

**Step 1**: Enable GI setting and set up for yourself.

<figure><img src="https://3sfarm.com/wp-content/uploads/2021/06/How-to-calculate-Irradiance-Map-and-Light-Cache-Step-1.png" alt="Enable GI setting" height="777" width="340"><figcaption></figcaption></figure>

**Step 2.1**: Create your .vrmap file (Irradiance Map).

<figure><img src="https://3sfarm.com/wp-content/uploads/2021/06/How-to-calculate-Irradiance-Map-and-Light-Cache-Step-2.1.png" alt="Create your .vrmap file (Irradiance Map)" height="774" width="340"><figcaption></figcaption></figure>

**Step 2.2**: Save your .vrmap file.

<figure><img src="https://3sfarm.com/wp-content/uploads/2021/06/How-to-calculate-Irradiance-Map-and-Light-Cache-Step-2.2.png" alt="Save your .vrmap file" height="532" width="942"><figcaption></figcaption></figure>

**Step 2.3**: Create your .vrlmap file (Light Cache).

<figure><img src="https://3sfarm.com/wp-content/uploads/2021/06/How-to-calculate-Irradiance-Map-and-Light-Cache-Step-2.3.png" alt="Create your .vrlmap file (Light Cache)" height="777" width="340"><figcaption></figcaption></figure>

**Step 2.4**: Save your .vrlmap file.

<figure><img src="https://3sfarm.com/wp-content/uploads/2021/06/How-to-calculate-Irradiance-Map-and-Light-Cache-Step-2.4.png" alt="Save your .vrlmap file" height="532" width="945"><figcaption></figcaption></figure>

**Step 3**: Go to V-Ray Global Switches => choose “Expert” option => enable "Don't render final image".

&#x20;Then click 'Render" button to create your vrmap file.

<figure><img src="https://3sfarm.com/wp-content/uploads/2021/06/How-to-calculate-Irradiance-Map-and-Light-Cache-Step-3.png" alt="Create your vrmap file" height="778" width="341"><figcaption></figcaption></figure>

**Step 4**: Go to GI tab and select path for the vrlmap/vrmap you created.

\=> Set Irradiance map mode to "From file", select the .vrmap file.

\=> Then set Lightcache mode to "From file", and select the .vrlmap file.

<figure><img src="https://3sfarm.com/wp-content/uploads/2021/06/How-to-calculate-Irradiance-Map-and-Light-Cache-Step-4.png" alt="GI tab" height="779" width="341"><figcaption></figcaption></figure>

Finally, save your project file and pack all your project assets as well as your vrlmap/vrmap before uploading to [3S Cloud Render Farm](https://console.3sfarm.io/auth/register).

Hope that our instruction is useful for you to calculate Irradiance Map and Light Cache for Global Illumination Cache.

If there are any questions, feel free to [reach us](https://3sfarm.com/contact/). We are all happy to talk to you.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.3scloud.io/3s-cloud-render-farm/tips/tips-for-3ds-max/global-illumination-cache-calculate-irradiance-map-and-light-cache.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
