Animated GIF to Spray

A Tutorial for Source Engine

How to convert an animated GIF to a spray using Photoshop and VTFEdit.

1. Open an animated GIF in Photoshop. 2. Resize the image to a power of 2 (512x512, 256x256, 128x128, etc.). I recommend 256x256. 1. If your image doesn't have equal width and height, resize the higher value and then change the canvas size to match it. 3. Export GIF frames to individual image files. Select File > Scripts > Export Layers to File and choose PNG as the format. Each frame from the GIF will appear as a PNG in the export directory. 4. Import in VTFEdit. File > Import.
Now, one thing to keep in mind is the file size of your VTF must be under 512KB for L4D2, and 256KB for TF2, GMod and other Source games. A particularly long animation won't fit under that size. So, what you can do is Ctrl+click and select every odd numbered frame, every 5th, every 10th and so on.
When you hit import, change the Normal and Alpha formats to DXT1. If you're making a transparent spray, they should be DXT5. Change the Texture Type to animated texture and make sure Generate MipMaps is unchecked. Hit Ok. Now, under the flags, check Anisotropic, Clamp S, Clamp T, No Mipmap and No Level of Detail, and choose "none" under the sharpen filter. If your spray is transparent, make sure "eight bit alpha" is checked. Hit the info tab, make sure the "Size" is under 512kb and when you're satisfied, go to File > Save as. This will save the VTF (spray file). **Tip:** When exporting a single image direct from Photoshop (using a VTF plugin), these are the settings I use for highest quality sprays. Preset: Spray or Spray with alpha, with flags: anisotropic, no mipmap, no level of detail and sharpen filter set to none. 6. Drop the VTF into materials/vgui/logos. 7. Make the VMT. Make sure the VMT has the same name as your new spray VTF. This is what should be inside:
	"UnlitGeneric"
	{
		"$basetexture"	"vgui\logos\VTFNameHere"
		"$translucent" "1"
		"$ignorez" "1"
		"$vertexcolor" "1"
		"$vertexalpha" "1"
	}
Now, import your new VTF in-game through the options > multiplayer menu.

Posts

1-10 of 13
1
Pages
  • 1
  • 2
Go to page:
  • gtamike_TSGK avatar
    gtamike_TSGK username pic Joined 11y ago
    Mapping
    5,747 points Ranked 877th
    17 medals 2 legendary 3 rare
    • 10 years a member Medal icon
    • Became a Ripe Supporter Medal icon
    • 6 years a member Medal icon
    • Returned 1000 times Medal icon
    • Submitted 20 Maps Medal icon
    • Reached 1,000 Points Medal icon
    2y
    Posted by Monkey_trollface

    **Pros:**- ANYBODY!!!! if you want to turn a GIf into a spray go here:http://tfsprays.com/ Just add a gif that isnt to big, and this coverts it to an animated vft!
    The site is shutting down.

    HL2DM Source Mapper Since 2007 avatar
    Mantra
    HL2DM Source Mapper Since 2007
  • Now that's what I call useful. Thanks.
    Strange world... avatar
    Mantra
    Strange world...
  • DE_NOOB avatar
    DE_NOOB Joined 8y ago
    Offline
    1,548 points Ranked 3409th
    5y
    thanks :D
  • **Pros:** - ANYBODY!!!! if you want to turn a GIf into a spray go here:http://tfsprays.com/ Just add a gif that isnt to big, and this coverts it to an animated vft!
    Bananite
  • ASF avatar
    ASF Joined 11y ago
    Offline
    2,576 points Ranked 1993rd
    8 medals 1 rare
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    5y
    Isn't there a limited amount of frames you can add to the spray?
    Advance Special Forces
  • Doktor haus avatar
    Doktor haus username pic Joined 8y ago
    Offline
    Destiny Flag Affiliation: Destiny
    14,911 points Ranked 304th
    26 medals 1 legendary 5 rare
    • Reached 100 subscribers Medal icon
    • 3rd Place - Original Weapons Skinning Contest Medal icon
    • Reached 50 subscribers Medal icon
    • Received thanks 50 times Medal icon
    • 6 years a member Medal icon
    • Returned 1000 times Medal icon
    Doktor haus avatar
    Doktor haus
    Destiny Flag
    Affiliation
    Destiny
    6y
    > **Posted by haj325** > **Pros:** > > - i cant find a way to make this stupid fucking thing into that if u have a heart can any of u do this image http://dash.ponychan.net/chan/files/src/132839330161.gif Nope, none of us have a heart, so you'll actually have to read the tutorial and do a little work. :3
    L4D2 modder avatar
    Mantra
    L4D2 modder
  • haj325 avatar
    haj325 Joined 6y ago
    Offline
    6y
    **Pros:** - i cant find a way to make this stupid fucking thing into that if u have a heart can any of u do this image http://dash.ponychan.net/chan/files/src/132839330161.gif
    Bananite
  • ZeiZei1 avatar
    ZeiZei1 Joined 9y ago
    Offline
    1,465 points Ranked 3593rd
    8 medals 1 rare
    • 6 years a member Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    • 4 years a member Medal icon
    6y
    how to change the time between frames?
    Ex Mapper
  • mayosia avatar
    mayosia Joined 7y ago
    Offline
    6y
    Is Celestia no?
    The AppleDash avatar
    Mantra
    The AppleDash
  • Sound of the Lyre avatar
    Sound of the Lyre Joined 7y ago
    Offline
    1,141 points Ranked 4592nd
    6y
    > **Posted by Dpx008** > Nice tutorial! But i'm trying to do a Spray with this GIF: http://postimage.org/image/99nv286kx/ and i'm not able to do it. Could you try to do it for me please? This tutorial was made for people like you, so you can do it yourself and not go running to others to do it for you. You're not even saying what went wrong in creating the spray yourself. If you gave us some sort of error message, we might be able to help you.
    I'm a secret agent man! avatar
    Mantra
    I'm a secret agent man!

Embed

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

Credits

Key Authors
Doktor haus
tutorial

Submitter

Doktor haus avatar
Doktor haus username pic Joined 8y ago
Offline
Destiny Flag Affiliation: Destiny
14,911 points Ranked 304th
26 medals 1 legendary 5 rare
  • Reached 100 subscribers Medal icon
  • 3rd Place - Original Weapons Skinning Contest Medal icon
  • Reached 50 subscribers Medal icon
  • Received thanks 50 times Medal icon
  • 6 years a member Medal icon
  • Returned 1000 times Medal icon

Doktor haus avatar
Doktor haus
Destiny Flag
Affiliation
Destiny

Creator
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
Beginner

Attributes

Share

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

Stats

  • 20,135 Views
  • 13 Posts
  • 6y Submitted
  • 3y Modified

Scores

91 bScore
10 Rating

3 voters

Sign up to access this!

More from Submitter

WiPs by Submitter

More Sprays Tutorials

bcp.crwdcntrl.net tracking pixel