View Full Version : Texture.txt bug

September 24th, 2015, 12:15 PM
We've come across what appears to be a bug in texture.txt files in TANE. This probably only applies to manually created texture.txt files in texture-group assets.

ImageA is rgb only
ImageB is rgba

This texture.txt specification is causing the problem:


In TS12 the game is using the alpha channel from ImageB but TANE is putting the RGB from ImageB into the alpha channel instead, giving rather weird results.

This post (http://forums.auran.com/trainz/showthread.php?123128-TGAs-and-Alpha-Channels-different-behaviour-in-T-ANE) gives more details and these assets illustrate the problem:

<kuid2:403746:655:1> 2ft Pullman Texture Group
<kuid2:403746:656:1> 2ft Corridor Coach - Pullman

September 25th, 2015, 08:57 PM
Thanks. This is basically a fault in the asset. The intended uses of this mechanism are:

1. To point both the primary and the alpha at the same file, for formats and tools which support embedded alpha.
2. To point the primary at one RGB file, and the alpha at one grayscale (likely still stored as RGB) file, for formats or tools which don't support embedded alpha.

That said, there's no reason that we wouldn't behave the same as TS12 if the user does stray from the supported configurations. I'll have this flagged for investigation.