How to make a transparent texture easily w/ Photoshop

EksCelle

L1: Registered
Mar 4, 2015
42
102
A short(ish) tutorial on how to apply alpha channels to images and exporting them as textures with transparency. For use as overlays, sprays, etc.

This tutorial assumes you have some knowledge of how to create and export custom textures to .vtf
I'm using Photoshop CS3, but the layout is fundamentally the same for future versions.

First you want to make something. I made this little happy dude for the purpose of this tutorial. For reference, my image size is 512x512, which is rather large for an overlay texture.

lN4dvKU.png


Once you've made your image, you're going to want to navigate down to the "Channels" tab and select it, opening up the list of channels.

Wqucbr8.png


Once you've done that, It should look like this. 4 channels, with the top one named "RGB"

SrTXCXr.png


Navigate to your Magic Wand tool. For this tutorial, I've set my tolerance to 50 (though anything inbetween 15 and 50 would work) and contiguous to on. If you've not got your background already cut out like I have, I'd make sure Contiguous is on.

f16KlJD.png


Click in the outer area like I have, the marquee effect should be around the borders of the image and the border of what you want to be opaque.

bGGWvGc.png


Right click the selected area with the wand equipped, and click "Select Inverse"

pYOxrOt.png


Now you should only have the area you want opaque selected. Navigate back to the Channels tab, and click the button at the bottom named "Save Selection as Channel"

sKCGfRx.png


An Alpha Channel has now been created. Congrats, you're nearly done!

s9o4oIp.png


You can view the alpha channel over your image by marking it visible and marking the "RGB" channel as not visible.

cVPHGRi.png


And now we go to VTFedit. Save your image in Photoshop as a targa (.tga) file, and import it to VTFedit and save it as a .vtf file in the game's "Materials" folder.

lHbsn2H.png


Go to "Tools" at the top of VTFedit and select "create VMT file". A pop-up window should show up as this, ensure that your path is correct.

cWWQBar.png


Go to the "Options" tab at the top of the pop-up and ensure that "Translucent" is checked. Create the VMT

ywD4cWr.png


Go into Hammer and place it as an overlay.

8P4pBL2.png


And finally, compile the map. You're done!

uCzwS8p.jpg


If you want the image to be slightly transparent, go back to Photoshop and make the white area in the Alpha Channel a gray instead. Congratulations, you've now made an overlay! This method can also be applied to making transparent sprays.
 

Yelta + 옐다

L1: Registered
Apr 25, 2020
19
2
Is this alpha channel thing really neccesary? It was a transparent background before and it is a transparent background after that.