How to get rid of white edges around PNG textures?

Started by AlyxMS, December 03, 2016, 08:08:11 PM

Previous topic - Next topic

AlyxMS

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?

JadedApprentince

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?
Mods I've made:
Combat Extended Artillery :  https://ludeon.com/forums/index.php?topic=33979.0

1000101

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...
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

nccvoyager

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. 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.")