-
Notifications
You must be signed in to change notification settings - Fork 22
Wrong transparency color used in sprites #46
Comments
Actually, I can make code to support transparency. Thanks though |
Like some global function for it that would affect even other mods as long as one runs Tremor? It would be excellent since mods like Thorium or Calamity are affected by it too, some of the sprite authors put correct transparency in them and others don't. |
Yes. The big difficulty is getting all the textures. Basically some art programs save the file with every pixel having an RGBA where RGB is bigger than 0 but A may be 0 , where A would usually be transparency there, in XNA's texture loading the alpha channel is independent , and with terraria's draw mode it actually can do awesome things. In terraria, A channel signals additive<---> opaque |
Sound awesome, if you make it to fix the transparency issues globally and provide a build of .tmod for it then I can get it tested right away on my second os XP and on my pals Linux. |
tModLoader v0.10.1.1
Tremor v1.3.2.7
Here's easy one, Due to differences in .NET 4.x and XNA implementations across various systems some players see big blocks of white color instead of fully transparent color.
The solution to this is to use single, properly supported transparency color, just like stock Terraria does do,
The HTML/HEX code of correct transparency is 00000000. (just 0 for short)
The HTML/HEX code of inproper transparency color which causes issues is FFFFFFFF.
To solve this just use any image editing tool with support for Large Batch/Multipicture edit, like Adobe Photoshop or Imagemagick or Nconvert, to change Color FFFFFFFF to Color 00000000 on all sprite files within given folder location.
Here's example tutorial how to do it in Photoshop, for the other tools it should be simpler, https://marckean.com/2011/12/18/use-photoshop-batch-to-process-all-photos-in-a-folder/
The text was updated successfully, but these errors were encountered: