Importing quality sprays (512px) with transparency

A Tutorial for Counter-Strike: Source

Hello world. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending ushimeme points.
  • Post: Give ushimeme your thoughts on this Tutorial.
  • Vote: Help ushimeme win the Monthly Awards.
  • Rate: Give this Tutorial a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Tutorial.
  • Watch: Get notified when this Tutorial is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

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).



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.

Posts

  • 27d
    Davey - San avatar
    Davey - San username pic Joined 4y ago
    Disconnected
    DeadArt Flag Affiliation: DeadArt
    1,400 points Ranked 3470th
    21 medals 1 legendary 2 rare
    • Returned 5000 times Medal icon
    • Returned 1000 times Medal icon
    • Thanked 50 submitters Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    Davey - San avatar
    Davey - San
    DeadArt Flag
    Affiliation
    DeadArt
    I was thinking about doing an spray tutorial in a long time, perhaps I might do a more detailed one, but good work nonetheless!

    10

    Digital-Artist Wannabe avatar
    Mantra
    Digital-Artist Wannabe

Embed

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

Credits

Key Authors
BOBDOLE

Submitter

ushimeme avatar
ushimeme Joined 28d ago
Offline

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

Category

Details

Difficulty Level
Intermediate Difficulty

Attributes

Stats

Posts
1
Views
649
Date Added
27d
Date Modified
27d

Featurings

  • Today's Pick Dec 28 2017

Scores

91 bScore
10 Rating

5 voters

Sign up to access this!

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
bcp.crwdcntrl.net tracking pixel