When using Arnold it is best to use a tiled mip-mapped texture format such as .exr or .tx that has been created using maketx.
.tx textures are:
- Tiled (usually the tiles are 64×64 pixels).
If you already have tiled and mip-mapped exr's that have been created by another renderer, you won't need to convert those files to .tx
Due to (1), Arnold’s texture system can load one tile at a time, as needed, rather than having to wastefully load the entire texture map in memory. This can result in faster texture load times, as texels that will never be seen in the rendered image will not even be loaded. In addition to the speed improvement, only the most recently used tiles are kept in memory, in a texture cache of default size 512 mb (can be tuned via options.texture_max_memory_MB). Tiles that have not been used in a long time are simply discarded from memory, to make space for new tiles. Arnold will never use more than 512 mb, even if you use hundreds, or thousands of 4k and 8k images. But then, if you only use a handful of 1k textures, this will not matter.
Due to (2), the textures are anti-aliased, even at low AA sample settings. Neither of these are possible with JPEG or other untiled/unmipped formats (unless you tell Arnold to auto-tile and auto-mip the textures for you, but this is very inefficient because it has to be done per rendered frame, rather than a one-time pre-process with maketx).
It should be worth pointing out that .tx files are basically .exr or .tif files that have been renamed to .tx. This means .tx files can be read by image editors, although you may need to rename the file to .exr or .tif so that the image editor will load it. However, .tx files have a few extra custom attributes set that are not normally included in .exr/.tif files which can make rendering even faster. For instance, they will include a hash so that if you try to load two different files that contain the same data, Arnold only needs to load this data once.
The example below shows a speed increase of seven times when using .tx files compared to .jpg files:
The process is quite simple. You will need the maketx.exe utility, the texture that needs to be converted and a dos shell. Below is an example of how you would convert a .tif file to a .tx file.
A tutorial that covers this process can be found here.
By default, tiled and mipmapped TX textures are automatically generated for each image shader. The resulting TX will be placed next to the original texture files. When the texture filename contains tags such as UDIMs, a TX texture will be generated for each sub-tile.
It can take a bit of time to convert a texture to TX, especially for large textures stored on a network share, but usually, this is done only for the first render. For subsequent renders, if an existing matching TX texture is detected, it won't be regenerated unless the source texture contents or colorspace has changed. Also note that if the input texture filename already has a
.tx extension, it will be left as-is.
A toggle to disable auto-generation of .tx textures can be found in the Textures tab of the Arnold render settings to disable TX auto-generation globally. This behavior can also be disabled per texture with the Auto-generate TX Textures toggle on the Ai Image shader and Maya file nodes.
Also, the TX texture will be linearized according to the color space rules in the Color Management settings in Maya.
There is no texture filtering when not using mipmapped textures. This can cause some differences, more notably for emissive maps and displacement maps.