Texture Tutorial: Alpha to black

#1
Texture Tutorial: Alpha to black

Greetings. As many of you know, SoM uses pure black to create a see through hole in a texture.

I've recently had trouble with alpha channels in stock textures, and i couldnt find any guide or faq to indicate how to turn alpha into black. So i decided to make this tutorial, which will guide you through the conversion process.

You'l need GIMP (open source / free) and you're own stock textures. The one i'm using is free, and from a website.
Step 1

[Image: step1mm.jpg]

IMPORTANT: If you want the best image possible without gray/black pixels around the edges, resize you're image to you're needs now. My image is a much higher resolution for tutorial purposes.
SoM's maximum texture output resolution is 256x256.

Load up you're image into GIMP. Go to "Edit" and "Copy."

Step 2
Go to the "colours" tab in the top bar, select "desaturate" followed by the ok button. For this tutorial ill be using the default selection of lightness.
[Image: step2zn.jpg]

Step 3
[Image: step3.jpg]

Go to the "colours" tab again and select curves (1st reference). Drag the line from the middle to the top left corner, until you're texture turns white (2nd reference).
[Image: step4curvecombo.jpg]

Step 4
[Image: step5fuzzy.jpg]
Click on the magic wand lookalike icon in the toolbox, called the fuzzy select. Click anywhere on the white of the image and it should outline the whole white area.


Then click on "Edit" then "Paste into" while everything is still highlighted.

Step 5

Ok, heres the technical part.
Click ONCE inside the texture's area.
That should highlight what you are aiming for.
Now, click "Edit" and "Copy."

Step 6

Go to file, then new. Gimp automatically picks up what you're previous image size was, so dont worry about size adjustment. Click ok.

In the toolbox selection, go to the "Bucket" icon. Select 0 on every colour, like in my screenshot.
Bucket fill the area by clicking anywhere.
[Image: bucketfillblack.jpg]

Now go to "Edit" again and "Paste." Click anywhere on the texture to anchor the layer.

[Image: finalkjh.jpg]

You're image should have no issues. However bear in mind that if you choose to resize now, you will get gray/black pixels around the leaves in game.

I will show you how to have no gray/black pixels in more detail, in the next tutorial.

Cheers.

Verdite
Reply



Messages In This Thread
Texture Tutorial: Alpha to black - by Verdite - 2011-03-27, 02:16 AM
Re: Texture Tutorial: Alpha to black - by Verdite - 2011-03-27, 02:35 AM
Re: Texture Tutorial: Alpha to black - by HwitVlf - 2011-03-27, 11:27 PM
Re: Texture Tutorial: Alpha to black - by Verdite - 2013-05-24, 02:17 PM
Re: Texture Tutorial: Alpha to black - by HwitVlf - 2013-05-24, 09:25 PM
Re: Texture Tutorial: Alpha to black - by Verdite - 2013-08-13, 04:09 PM
Re: Texture Tutorial: Alpha to black - by Verdite - 2013-08-13, 10:25 PM



Users browsing this thread:
2 Guest(s)