---
title: "Tiled OpenEXR and TIFF Files"
canonical: "https://documentation.chaos.com/space/VMAYA/111739645/Tiled%20OpenEXR%20and%20TIFF%20Files"
format: markdown
---
## <span style="color: #000000">**Overview**</span>

---

<span style="color: #000000">V-Ray for Maya supports the use of tiled OpenEXR (.exr) and TIFF (.tx, .tex) files with MIP maps. This allows V-Ray to load just parts of a given texture during rendering in order to save memory. When you are using tiled OpenEXR or TIFF files with mipmaps V-Ray automatically recognizes this and loads the appropriate tiles during rendering instead of just loading the whole texture. In order to convert many regular image file formats into tiled OpenEXR files you can use the </span><span style="color: #000000">[img2tiledexr](https://docs-chaos.atlassian.net/wiki/spaces/VMAYA/pages/111739612)</span><span style="color: #000000"> tool that comes with V-Ray. To convert to tiled TIFF files, the </span><span style="color: #000000">**maketx**</span><span style="color: #000000"> tool from the </span><span style="color: #000000">**OpenImageIO**</span><span style="color: #000000"> library can be used. Using tiled OpenEXR and TIFF files also allows V-Ray to dynamically unload some of the tiles when memory is needed for something else. The loading and unloading of the tiles works the same way as the loading and unloading of dynamic geometry and by default is stored in the same dynamic memory pool. You can set a dynamic memory limit in the </span><span style="color: #000000">[System](https://docs-chaos.atlassian.net/wiki/spaces/VMAYA/pages/111739157)</span><span style="color: #000000"> rollout of the Settings tab in the Render Settings dialog. You can also designate a separate cache for tiled textures by using the </span><span style="color: #000000">**VRAY_TEXTURE_CACHE**</span><span style="color: #000000"> environment variable, and assign to it the desired maximum size of the cache in megabytes (see the section on </span><span style="color: #000000">[Environment Variables](https://docs-chaos.atlassian.net/wiki/spaces/VMAYA/pages/111739735)</span><span style="color: #000000"> as well as the </span><span style="color: #000000">[Getting Started with Environment Variables ](https://docs-chaos.atlassian.net/wiki/spaces/VNS/pages/115605616)</span><span style="color: #000000">page for more details).</span>


## <span style="color: #000000">**Using Tiled OpenEXR and TIFF Files for Displacement**</span>

---

<span style="color: #000000">When using tiled OpenEXR/TIFF files for 3d displacement or subdivision displacement, some additional set up might be necessary. V-Ray needs to know the lowest and the biggest displacement values in order to perform the raytracing efficiently. For scanline-based OpenEXR/TIFF files, V-Ray can find the minimum and maximum values easily, since it loads the entire file into memory. However for tiled OpenEXR/TIFF files, this is not possible and you need to specify those values explicitly. This can be done in either of two ways: </span>


<span style="color: #000000">You can add attributes to a tiled OpenEXR file with information about the minimum and maximum value:</span>  
<span style="color: #000000"> </span>

| **Attribute Name** | **Attribute Type** | <span style="color: #000000">**Description**</span> |
| --- | --- | --- |
| <span style="color: #000000">minValue</span> | <span style="color: #000000">float</span> | <span style="color: #000000">The lowest value in the texture</span> |
| <span style="color: #000000">maxValue</span> | <span style="color: #000000">float</span> | <span style="color: #000000">The biggest value in the texture</span> |
| <span style="color: #000000">minValueVec</span> | <span style="color: #000000">V3f</span> | <span style="color: #000000">The lowest value in the texture for each of the red, green and blue components respectively.</span> |
| <span style="color: #000000">maxValueVec</span> | <span style="color: #000000">V3f</span> | <span style="color: #000000">The biggest value in the texture for each of the red, green and blue components respectively.</span> |


<span style="color: #000000">You can specify the texture bounds explicitly in the </span><span style="color: #000000">[Displacement control](https://docs-chaos.atlassian.net/wiki/spaces/VMAYA/pages/111740369)</span><span style="color: #000000"> attributes group on a per-object basis.</span>

<span style="color: #000000">Note that this is not required for the 2d displacement method - in that case, V-Ray presamples the displacement texture so it can find the correct minimum and maximum values automatically.</span>