This message is a call for help from the experts in formats of graphic files.
I reported some time ago my problems with info_pics for units. I made them with Adobe Photoshop 7.0 by the simplest method:
- From a screenshot I deleted the excess of picture, leaving a transparent background. This image, of the correct size, was saved as 32 bits tga.
The result was OK for the information pannel
, but not for the recruitment information pannel .
After this report of my problem, Uranos (thanks my friend) helped me saying that the solution would be to put a background, identical to that used in the information pannel.
He did with a light brown background, but including an alpha channel to make it transparent.
I was surprised with I opened his modified pic, as it was identical to mine in my photoshop version. But it worked differently in the game.
Now it was the same in info pannel (the background was considered transparent), but not in recruitment information pannel .
I'm trying to find any other method to do info_pics, but in the process I've found this.
When I save the differents tga files as dds, this is the result:
In the middle, there is my original file, and the same problem in-game can be seen here. It seems then that the game transforms the original tga in some dds format, unable to handle transparent backgrounds.
On the left, there is the Uranos modified file. The same image than that observed in the game is generated. Now, even if photoshop shows a transparent background, the dds file shows the light brown color.
Finally on the right, my attempt to include the new UI background to my pic. I include a new background layer and the alpha channel. I merged both layers and did the white silhouette in the alpha channel.
However, when I saved as 32 bits tga, the alpha channel disappears, the background is still visible, but now the dds generated is correct.
I must still test this new file in-game.
In any case I wonder why my tga files are larger (132 kb) than those in the original game (around 90 kB).
Any explanation for this behaviour?