Ludeon Forums

RimWorld => Mods => Help => Topic started by: AlyxMS on December 03, 2016, 08:08:11 PM

Title: How to get rid of white edges around PNG textures?
Post by: AlyxMS on December 03, 2016, 08:08:11 PM
As the title says, I use transparent .png textures and there are always white edges around them in-game.
How do I remove them?
Or should I use DDS instead?
Title: Re: How to get rid of white edges around PNG textures?
Post by: JadedApprentince on December 04, 2016, 11:38:43 AM
Quote from: AlyxMS on December 03, 2016, 08:08:11 PM
As the title says, I use transparent .png textures and there are always white edges around them in-game.
How do I remove them?
Or should I use DDS instead?
I have this same problem too. Did you use Paint to make them?
Title: Re: How to get rid of white edges around PNG textures?
Post by: 1000101 on December 04, 2016, 01:05:13 PM
This has come up before.  Set your transparent sections to have an opacity of the smallest non-zero value (1 of 0-255, 1%, etc).  Using 0 should work, but...
Title: Re: How to get rid of white edges around PNG textures?
Post by: nccvoyager on December 06, 2016, 04:36:45 PM
As a free alternative to Photoshop, and a more complete alternative to Microsoft Paint, I would suggest using the free image editing program Paint.net. (Pronounced Paint dot net.)

(Available at http://www.getpaint.net and directly at the download page. (http://www.getpaint.net/download.html) Ensure that you read the instructions there thoroughly, as prerequisite redistributables are necessary.)

Using Paint.net, use the "magic select" tool on the "transparent" area, and then tap the delete key on your keyboard.
The magic select tool will select all pixels matching the colour and transparency of the pixel you originally click on, and by default will also select everything that is 50% as close in transparency and colour to the originally selected pixel as well.
Tapping delete will delete all selected pixels, and set the area they used to occupy to be 100% transparent. (Also referred to as 0% opacity, or "visibility.")