Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Importing quality sprays (512px) with transparency

A Tutorial for Counter-Strike: Source

No ads for members. Membership is 100% free. Sign up!
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

https://www.aconvert.com/image/png-to-tga

Download VTFEdit 1.2.5

http://nemesis.thewavelength.net/index.php?c=178

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.
Sign up to access this!

Embed

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

Credits

Key Authors
BOBDOLE

Submitter

ushimeme avatar
ushimeme Joined 2y ago
Offline
ushimeme
Creator
  • Paypal Donate
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Intermediate

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Today's Pick
    Featured on Dec 28 2017
  • 5
  • 3.8k
  • 2
  • 2y
  • 2y

More Sprays Tutorials