Program hangs on converting tif to png

When I try to import a .3DS or .OBJ with .TIF textures, the program window goes blank and the program hangs.
I’ve tried this with multiple models and file types on a couple different computers and the problem is consistent.
Here’s an extract from my log file showing where it hangs:

[10:38:39.400|info] Converting image d:\Luke’s Files\3D Models\XFrog\XfrogPlants_USA_East_OBJ\Models\EA01_Acer_rubrum_Red_Maple\EA01brk.tif to .png…
[10:38:39.400|info] Image will be stored in
I am running Transmutr 1.0.1, and had this issue on 1.0.0 as well.

Any help to get these models converted would be appreciated.

Hi @LukeK,
You’re the second person who reported this bug, we’re actively investigating this.

Could you send us your model to [email protected]?
Thanks.

Hi @LukeK,
We just solved this bug. The fix will be available in the next release soon (1.0.2).

Fantastic, thank you Merwan & co.

I’m running Transmutr v1.2.12 and I am having the same problem with these exact same files (XFrog\XfrogPlants_USA_East_OBJ\Models\EA01_Acer_rubrum_Red_Maple\EA01brk.tif). I’ve also tried other model formats but they use the same TIF files.

If it was solved in v1.0.2, do you have any ideas why it’s now a problem in a later version?

Could you send me those files to [email protected]?

Will do. Thx.

Thanks for the file. I can reproduce the issue.

We will investigate further on why this happens on Transmutr v1, but I can already tell you that it works in our development build of Transmutr v2.

There are other issues with this model.
For instance the opacity map is inverted. I’m not sure what outdated convention this is supposed to follow, but all major rendering engines nowdays use white for opaque and black for transparent.

Another issue is that the same map is applied to the diffuse, opacity, bump, and glossiness slots. This is wrong, considering there are separate maps in the folder. I had to re-apply them manually.

For now, you can use the OBJ format. First, remove the TIF files from the folder, so that Transmutr cannot find them and doesn’t crash. Then you can load the OBJ, and reassign the maps that you would have converted to another format (PNG for instance).

Yes, the opacity is reversed in this one, but I’ve been having other issues with opacity maps. The only thing that seemed to work was to delete the transparency mask (black), to make it transparent (no color), and keep the opaque mask (white color). However, I also needed to delete the same region from ALL the other maps (diff, norm, reflect, gloss, etc.). If any maps had color where transparency was supposed to be, it was still showing through.

Yes, using OBJ files and PNG materials helps avoid TIF errors, but it takes some work. To batch convert lots of TIFs to PNGs, I used CloudConvert.com (a huge timesaver and reasonable cost). I also used NotePad++ to open multiple MTL files at once, then used the Find/Replace to change all “.tif” references to “.png.” across all the files with a single click, then “save all” (another huge time saver). If everything else in the MAT file is set up correctly, this works great, and there is no need to remap materials manually.

Unfortunately, that’s not always the case. I have one model with 29 materials, 25 of which have 4 maps (diff, norm, OPAC, gloss), 3 have 3, and 5 have 1 map. Manually linking 114 maps is a pain. I couldn’t use Automations because the material names were longer than file names and I couldn’t truncate the variables (values). I would have had to set up a separate automation for each of the 29 materials, which was not really saving me time or effort. Y’all might have been able to figure out a workaround, but I was on a deadline and I did the best I could with what I had.

Looking forward to v2. :v:

1 Like