Tiled EXR files
Using tiled OpenEXR files for displacement
V-Ray for Maya supports the use of tiled OpenEXR files with MIP maps. This allows it to load just parts of a given texture during rendering in order to save memory. When you are using tiled OpenEXR 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 EXR files you can use the img2tiledexr tool that comes with V-Ray. Using tiled EXR 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 System rollout of the Settings tab in the Render Settings dialog. You can also designate a separate cache for tiled textures by using the VRAY_TEXTURE_CACHE environment variable, and assign to it the desired maximum size of the cache in megabytes (see the section on Environment Variables for more detailes).
When using tiled OpenEXR 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 files, V-Ray can find the minimum and maximum values easily, since it loads the entire file into memory. However for tiled OpenEXR files, this is not possible and you need to specify those values explicitly. This can be done in either of two ways:
|Attribute name||Attribute type||Description|
|minValue||float||The lowest value in the texture|
|maxValue||float||The biggest value in the texture|
|minValueVec||V3f||The lowest value in the texture for each of the red, green and blue components respectively.|
|maxValueVec||V3f||The biggest value in the texture for each of the red, green and blue components respectively.|
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.