Super Renders

General news on how to edit, use and fix errors on 3Ds max, C4D, Maya, Blender, Houdini, Sketchup, Corona, Arnold, V-ray …

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

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”.
How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max
Clink link “ArnoldScripts

3. Click the link “txConverter.bat”.

How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max
Click link “txConverter.bat “

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

How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max
Click the Raw button

5. Right-click in the browser window.

6. Choose Save as…

How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max
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”.

How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max
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

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

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

Right-click to bring up Windows Properties
Choose Send To > click the txConverter.bat 

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

How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max
A Windows MS-DOS command panel will appear

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

How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max
The TX files will appear alongside the original bitmap textures.

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

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

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

18. 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.

How to convert bitmap textures to TX format for rendering with Arnold in 3ds Max
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

Tags:

LEAVE A RESPONSE

Your email address will not be published. Required fields are marked *

You Might Also Like