question

Ulrich Einweg avatar image
Ulrich Einweg asked

Re-generating TX-Files (when "auto Tx generation" is on)

Hey there,

I understand why arnold is using tx files and how it is working generally.

Normally I have auto TX generation on in the IPR. So all my PNGs, EXRs, TGAs and HDRs are converted on the fly.

BUT: I'm under the impression, that sometimes (maybe often) files that already have their corresponding TX-File in the same folder, get converted again. And this, naturally, slows my render.

So my questions:

Is the (generation of the) TX-File dependend on my material, lights and/or scene? So it would have to be generated for each project I'm working on? Or is it only depending on my original texture file? If the latter, why does it have to be generated multiple times?

I would think, when I'm done with my materials for my project, when I just do lights or animation, I would turn off "auto TX generation". Or would that be a mistake?

If I create a new material for which I use textures that somewhere are converted to .TX already, could I not just import the .TX to my project (and maybe delete/archive the TIF or PNG).


Thank you very much for any insight.

textures
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered

TX files are re-converted only if the original texture changes, or if you change some of the TX generation parameters (eg change color spaces), or if the tx file no longer exists

We use the -u update flag to make tx files:

https://openimageio.readthedocs.io/en/master/maketx.html#cmdoption-u

-u

Ordinarily, textures are created unconditionally (which could take several seconds for large input files if read over a network) and will be stamped with the current time.

The -u option enables update mode:
if the output file already exists, and has the same time stamp as the input file, and the command-lie arguments that created it are identical to the current ones, then the texture will be left alone and not be recreated.

If the output file does not exist, or has a different time stamp than the input file, or was created using different command line arguments, then the texture will be created and given the time stamp of the input file.


10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Ulrich Einweg avatar image
Ulrich Einweg answered

Hey Stephen,

thanks for your detailed reply. But to focus that on my actual problem: I am not using any command line tool. Not even maketx (as standalone). I am in C4D and my TX-generation happens mostly by turning on "auto TX generation" in the IPR window. And when I read your reply (and the docs) correctly, re-generating TX files should not happen, as long as I don't change the original image files. So when I'm finished importing all my texture files, I would check the asset/TX manager, convert any files for which no TX files exist yet and then turn off "auto TX generation" in IPR.

Thx again...

1 comment
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Right. The auto tx feature uses -u, so tx files are not re-generated unless the original file changes, the timestamp on the original file changes, or something like the image color space is changed in C4DtoA.
1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.