Importing quality sprays (512px) with transparency

A Tutorial for Counter-Strike: Source

This is a more advanced tutorial to ensure your spray for Counter-Strike Source is at the best possible quality (512x512 px) and does not downscale to 256x256 px. This tutorial does NOT go over how to use Photoshop, Paint.NET, GIMP or whatever. You are expected to know how to make PNG images with transparent backgrounds.

Prepare your 512x512 PNG

Use your favorite image editor to downscale and crop your image properly. Your final result must be 512x512 pixels. Save it as a PNG with transparency (if applicable).

Note: You should leave at least a 1px transparent border for images with transparency. In other words, your output image is still 512x512, but your maximum drawing region would be 510x510. Failure to do so may cause your spray to have a faint white border or horizontal line at the top when sprayed in-game. This is due to a technicality with how DirectX handles textures with alpha channels.

Convert your PNG to TGA

Download VTFEdit 1.2.5

1. Click and download "Archive (743 KB)"
2. Create a folder in your documents folder called "vtfedit125-11"
3. Extract the contents (7 files) of your downloaded ZIP file to your vtfedit125-11 folder.

Use VTFEdit to set up and create your VTF and VMT files

1. Open VTFEdit.exe
2. Click File -> Import and open your TGA.
3. Leave these default options alone, but make sure resize is unchecked. Click OK.
4. Make sure Mask is enabled (View -> Mask) to enable transparency.
5. Three flags need to be checked: Eight Bit Alpha, No Mipmap, and No Level Of Detail.
6. Save as spray.vtf (File -> Save As). Save your VMT file as well (Tools -> Create VMT File -> Create).

Paste your VTF and VMT into Counter-Strike's spray directory

Copy spray.vtf file into:
C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Source\cstrike\materials\vgui\logos
Copy spray.vmt file into:
C:\Program Files (x86)\Steam\steamapps\common\Counter-Strike Source\cstrike\materials\vgui\logos\ui

Before you place those files, delete any existing VTF or VMT files in both folders.

You must set your spray.vtf file as read-only. (Right-click -> Properties -> check Read-only). Don't skip this step or your spray won't change.

Note: the consequence of setting this file as read-only is that you will not be able to use the inferior in-game spray image importer to change your spray.

Launch CSS and test your spray.


  • Davey - San avatar
    Davey - San username pic Joined 4y ago
    DeadArt Flag Affiliation: DeadArt
    2,555 points Ranked 2006th
    25 medals 2 legendary 3 rare
    • Returned 5000 times Medal icon
    • Became a Ripe Supporter Medal icon
    • Returned 1000 times Medal icon
    • Thanked 50 submitters Medal icon
    • Received thanks 50 times Medal icon
    • One month a member Medal icon
    Davey - San avatar
    Davey - San
    DeadArt Flag
    I was thinking about doing an spray tutorial in a long time, perhaps I might do a more detailed one, but good work nonetheless!


    Digital-Artist Wannabe avatar
    Digital-Artist Wannabe


Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:


Key Authors


ushimeme avatar
ushimeme Joined 10mo ago

Sign up to access this!
Sign up to access this!
Sign up to access this!
  • Paypal Donate


Sign up to access this!



Difficulty Level



  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+


  • 1 Posts
  • 10mo Submitted
  • 8mo Modified


  • Today's Pick Dec 28 2017


91 bScore
10 Rating

5 voters

Sign up to access this!

More Sprays Tutorials tracking pixel