Skip to main content
How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max

How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max

4 min read
Learn how to batch-convert bitmap textures (JPG, PNG, TIF) to the memory-efficient TX format for Arnold in 3ds Max. This guide covers using Mads Drøschler's MAXScript utilities to speed up rendering and optimize memory usage without manually swapping assets.

Issue:

How to convert bitmap textures to a TX format (*.tx) for rendering with Arnold in 3ds Max.

Important Note: The more memory-efficient TX textures can then be loaded at render time using Arnold without having to manually swap out all existing bitmaps used within the scene.

Causes:

Converting existing 3ds Max scene texture bitmaps from JPG, PNG, TIF or other types of formats to a TX format can speed up renderings and overall memory efficiency.

As stated on the Arnold for 3ds Max User Guide: Textures page:

“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.”

Solution:

3ds Max artist and programmer Mads Drøschler has created several MAXScript-based utilities to help 3ds Max users batch-convert their existing bitmap files to the TX format. The scripts can be downloaded from the following GitHub repository and used to convert bitmaps to TX by using these steps:

  1. Visit Mads’ GitHub page: Arnold Scene Converter Scripts 3ds Max (registration to GitHub may be required).

  2. Click the link “ArnoldScripts”.

    Clink link “ArnoldScripts

    Clink link “ArnoldScripts

  3. Click the link “txConverter.bat”.

    Click link “txConverter.bat“

    Click link “txConverter.bat“

  4. Click the Raw button. This will open a browser window displaying the GitHub code.

    Click the Raw button

    Click the Raw button

  5. Right-click in the browser window.

  6. Choose Save as…

    Choose Save as

    Choose Save as

  7. Ensure the file extension is a BAT format (*.bat). If there is any additional format listed after the file name, remove it. The file should be named “txConverter.bat”.

    The file should be named “txConverter.bat”

    The file should be named “txConverter.bat”

The file should be named “txConverter.bat”. 8. Save the txConverter.bat file to: C:\users\<username>\AppData\Roaming\Microsoft\Windows\SendTo 9. Once there, open Windows Explorer, and navigate to the desired folder containing the texture bitmaps. 10. Select the bitmaps to be converted. (Note: If any errors appear, reduce the number of bitmaps selected. The script should be able to convert 100 selected images at a time, depending on memory):

Select Bitmaps for TX Conversion

Select Bitmaps for TX Conversion

  1. Right-click to bring up the Windows Properties menu.

  2. Choose Send To and click the txConverter.bat entry.

    Choose Send To > click the txConverter.bat

    Choose Send To > click the txConverter.bat

  3. A Windows MS-DOS command panel will then appear, showing the progress of the image conversions.

    A Windows MS-DOS command panel will appear

    A Windows MS-DOS command panel will appear

  4. When finished, the TX files will appear alongside the original bitmap textures. The TX files will appear alongside the original bitmap textures.

    The TX files will appear alongside the original bitmap textures.

    The TX files will appear alongside the original bitmap textures.

  5. After the conversion, keep the new TX files in the same folder as the current bitmaps used in the scene.

  6. In the 3ds Max Rendering menu, go to Render Setup.

  7. Select the Arnold Renderer tab, and open the Textures roll-out menu.

  8. Check the “Use Existing .tx Textures” button. At render time, this will load the more memory-efficient TX files, and eliminate manually swapping out all the current bitmaps (JPGs, PNGs, TIFs, etc.) used in the scene materials for the new TX textures.

Check the “Use Existing .tx Textures” button

Check the “Use Existing .tx Textures” button

In addition, Mads has created a TX Pipeline Video explaining how to use these utilities.

Note: If the txConverter.bat file cannot find the MakeTx.exe program, go to the Arnold Downloads page and download and install the latest MaxToA version.

See also:

Source: https://autode.sk/2Q3rCFj