question

Jason Huang avatar image
Jason Huang asked ·

maketx to convert textures exported from substance painter with mixed color spaces

Hi all,

OS: Windows 10, Maya 2017 update 5, MtoA 3.0.1

The PNG textures I exported from Substance Painter are of different color spaces. Some are sRGB and some are linear. They all saved in the same folder.

When using Tx Manager to convert those PNGs using "Use Texture in Folder" and "-v -u --unpremult --oiio" as options, the tx files that are converted from the PNGs that are of linear color space (ex. roughness, normal) seem to be treated as if they are saved in sRGB (probably due to the PNG file extension).

Is there a way or flags/options in Tx Manager to convert correctly a folder of textures that are of the same file extension but of mixed color spaces?

Thanks!

txsubstance painter
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.

Jason Huang avatar image
Jason Huang answered ·

I'd like to convert all .png in a folder to .tx in one go using Tx Manager in Maya given the .png are in different color spaces.

In my test, it seems whether the .png are loaded in file nodes (hence color-managed by Maya) or not will affect how Tx Manager treat and convert those png textures. Can you confirm the this behavior is correct and expected or I am missing something.

2 comments Share
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.

Ah yes, of course. Yes, the tx manager checks the color space settings in the file node, and based on that adds a --colorconvert if necessary

1 Like 1 · ·
Jason Huang avatar image Jason Huang Stephen Blair ♦♦ ·

Thanks for the confirmation Stephen.

0 Likes 0 · ·
Stephen Blair avatar image
Stephen Blair answered ·

or you autotx a few, and then use the same command line args

use oiiotool -v --info on the files to get the info (oiiotool ships with htoa)

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

Jason Huang avatar image
Jason Huang answered ·

@Stephen Blair, I can try editing the filename before exporting from Substance Painter.

@Girijashankar Senapati I am not sure how it works internally but it works if I load those PNGs first in file nodes first as you mentioned. So is it correct that when I set to "Use Texture in Folder" in Tx Manager, it still parses through the scene to see if a texture is loaded in the file node with corresponding color space settings and flags (like ignore colorspace option)?

It would be great if I can use Tx Manager to convert correctly without loading those PNGs into each file nodes first.

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

Girijashankar Senapati avatar image
Girijashankar Senapati answered ·

I follow below method.

In color management, input colorspace to RAW, reapply rule to scene(it changes all textures input colorspace to RAW) . Then manually I change the sRGB color textures to sRGB in input texture colorspace option of texture node, tick on ignore colorspace option.

You can start converting to tx now.

Or

https://support.allegorithmic.com/documentation/plugins/servlet/mobile?contentId=143720756#content/view/143720756

Share
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 ·

You would have to add the required maketx command-line flags.

Instead, can you define Color Space Rules based on the filenames? (in the Color Management Preferences).

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

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.