The Game Modding Community - Since 2001

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:
  • 2y
    gtamike_TSGK avatar
    gtamike_TSGK username pic Joined 11y ago
    Ripe Supporter
    Mapping
    4,915 points Ranked 1022nd
    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
    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
  • 3y
    Now that's what I call useful. Thanks.
    Strange world... avatar
    Mantra
    Strange world...
  • 4y
    DE_NOOB avatar
    DE_NOOB Joined 7y ago
    Offline
    1,548 points Ranked 3311th
    thanks :D
  • 5y
    **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
  • 5y
    ASF avatar
    ASF Joined 10y ago
    Offline
    2,576 points Ranked 1926th
    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
    Isn't there a limited amount of frames you can add to the spray?
    Advance Special Forces
  • 5y
    Doktor haus avatar
    Doktor haus username pic Joined 7y ago
    Offline
    Destiny Flag Affiliation: Destiny
    14,813 points Ranked 294th
    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
    > **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
  • 5y
    haj325 avatar
    haj325 Joined 5y ago
    Offline
    **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
  • 5y
    ZeiZei1 avatar
    ZeiZei1 Joined 8y ago
    Offline
    1,417 points Ranked 3605th
    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
    how to change the time between frames?
    Mapper
  • 6y
    mayosia avatar
    mayosia Joined 6y ago
    Offline
    Is Celestia no?
    The AppleDash avatar
    Mantra
    The AppleDash
  • 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!
1–10 of 13
1
Pages
  • 1
  • 2
Go to page:

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 7y ago
Offline
Destiny Flag Affiliation: Destiny
14,813 points Ranked 294th
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!
Sign up to access this!

Category

Details

Difficulty Level
Beginner Difficulty

Share

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

Stats

  • 19,661 Views
  • 13 Posts
  • 6y Submitted
  • 3y Modified

Scores

91 bScore
10 Rating

3 voters

Sign up to access this!

Yo, buddy. Mascot

GameBanana is one of the oldest mod sites on the net. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation - send modders points.
  • Post: Give modders your thoughts on their work.
  • Vote: Help your favorite modders win monthly awards.
  • Rate: Rate mods and help them stand out.
  • Flag: Alert moderators and warn members of problems with mods.
  • Watch: Get notified when mods are updated.

Sound fun? Sign up now!

Already a Bananite? Login

WiPs by Submitter

bcp.crwdcntrl.net tracking pixel