Page 1 of 1

[Tutorial] Texture Alpha Mask correction

Posted: 11 Nov 2016, 03:05
by Alundaio
This tutorial teaches you how to fix the visible white lines errors around transparent in-game sprites.

At first glance these icons appear just fine. But, the alpha mask is hiding some errors within the R G B channels (most likely caused by using

How to detect errors:
  • Open the *.dds with Gimp.
  • Colors > Components > Decompose

  • Whoa! Now we see why there is visible white lines around our icons! If you inspect each channel you'll see white blotches in R G B but Alpha channel
    is fine.

How to fix errors:
  • Open the *.dds with Gimp.
  • MENU > Right-click the layer and Alpha to Selection
  • Copy and Paste layer
  • On the original layer select the alpha with the magic wand
  • Invert selection
  • Copy and Paste layer
  • Delete original layer
  • Merge visible layers (keep image size) and Save

You should be finished. Examine the image and compare to the original to make sure it is visually the same.

Re: [Tutorial] Texture Alpha Mask correction

Posted: 11 Nov 2016, 11:55
by olivius74
Hello Dear Alundiao
You always write extraordinary tutos.
Thank a lot,Gimp seems genious,more easy at first look than my old photoshop version.
Just need for first install to add the dds pluggin

Very usefull because for my hud ,I found many transparent errors!
Thank's a lot
Have a good week-end

Re: [Tutorial] Texture Alpha Mask correction

Posted: 12 Nov 2016, 04:00
by Comatose
I found a workaround that works in Instead of using the eraser or selecting and deleting things, use the tools with the alpha set to zero, the blending mode set to overwrite, and the color set to what color you want the alpha mask to be.

Re: [Tutorial] Texture Alpha Mask correction

Posted: 15 Jan 2017, 15:04
by Alundaio
in Gimp I found a better way
you just right-click layer, add Layer Mask
then add alpha mask
and then when you right-click again you can see options to show or edit the layer mask
and edit alpha mask directly. When you are happy with it, you just click apply layer mask