Creating Animated Sprays

Step 1) Download VTEX Animation converter - You will need this to convert your chosen spray images to an Animated .vtf format, which is recognized by Half Life 2.

Download VTEX Animation converter


Step 2) Open your favorite graphics program (Adobe Photoshop / Paintshop Pro). For this tutorial I am using Adobe PhotoshopCS.


Step 3) Make a new document sized either: 64x64, 128x128, 256x256.

Image hosted by Photobucket.com ******************************************************** Step 4) Create something in a new layer that you want to see animated. Image hosted by Photobucket.com ******************************************************** Step 5) If you would like your animated spray logo to have a transparent background, then each frame of the animation must have its own layer mask. Select the contents of your layer by holding control and left clicking the layer. To make a layer mask, goto the Channels pallete, and create a new alpha channel (Similar to how you make a new layer) and fill the selection with WHITE. Image hosted by Photobucket.com ******************************************************** Step 6) Now, animation is simply a number of still images being played in a sequence, and slight adjustments to each image, gives it the illusion that it's really moving, so... Move the object in your layer slightly, and save the file off as a TARGA file (.tga) into a folder or on your desktop. Save the first image as "spray001.tga". Then in the same document, move your image again slightly more, and save it off as another TARGA file, with the name "spray002.tga". Repeat this until you have as many images as you need to make up your animated spray logo, and make sure you name each file in succession (spray001.tga, spray002.tga, spray003.tga and so on). You should also make sure that "Alpha Channels" is checked, and when prompted, select 32 Bits. Image hosted by Photobucket.com Image hosted by Photobucket.com Image hosted by Photobucket.com ******************************************************** Step 7) If you haven't done so already, extract the contents of vtex_animation.zip to somewhere on your hard drive (I extracted it into my Steam directory so its easy to find when i need it). Copy the TARGA files you just saved from the previous step, into "c:\Program Files\Steam\vtex animation\hl2\materialsrc\animated" (you may have extracted your VTEX converter elsewhere). ******************************************************** Step 8) Inside this folder, is a file named "spray.txt". Simply open this file, and change the "endframe" number, to the number of frames in your animation (8 in my case). ******************************************************** Step 9) Now simply goto the "vtex animation" folder and open "convert.bat". Clicking this will cause VTEX to convert your TARGA sequence of images into one VTF file as an animated spray logo. The resulting file will appear in "c:\Program Files\Steam\vtex animation\hl2\materials\animated" Step 10) Now you can move the VTF and VMT file to "C:\Program Files\Steam\SteamApps\common\counter-strike source\cstrike\materials\VGUI\logos". Now open the game, and you will be able to select from the drop down list the animated spray you just created! It will not show as animated until you actually spray it in the game. ******************************************************** NOTE: If you change your spray logo halfway through a multiplayer game, you will not be able to see the new spray until the next level, or until you rejoin the game, because upon joining a server, you send them your custom spray logos. NOTE: Your animated spray logo can not be up to 120kb in file size. Else it will not show in game ******************************************************** That's all, if you guys have any questions, pm me.

Oh noes! You're not a Member!

Want access to cool stuff? As a member you can:

  • Post. Give the submitter your thoughts on this Tutorial.
  • Say Thanks. Show your appreciation by sending the submitter points.
  • Stamp Posts. Let other posters know what you think of their posts.
  • Rate. Give this Tutorial a rating out of 10.
  • Flag. Alert moderators and warn members of a problem with this Tutorial.
  • Vote. Vote the submitter for the Monthly Awards.
  • Subscribe. Get notified when this submitter submits again.

Interested? Register or Login

Comments

  • cassonberry's Levels
    • P1: Beggar
      Points: 223
    • E1: Helper
      EF: 1
    • A5: Veteran
      Account Age: 5 years
    Posted 3 years ago

    I realise this is an old tutorial, and idk if VTFedit could do this before, but cant you just create a spray by selecting the frames you want in VTFedit or is that a new feature to it?

    Forget my name and I'll forget
  • Reileb's Levels
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago
    Posted by Blueman1337 I did everything on the tutorial, and when i tried converting, it came up with this: Problem figuring out the outputdir for hl2/materialsrc/animated/spray any ideas?

    Same problem.

    Damn, fix that bug.

    Medic !
  • clarkee's Levels
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago

    Thanks for posting the link to another website which hosts my application. I'm getting a good few hits now.

    Eventually i'll put the original site back up. My ISP started filtering my ports once they saw all the people visiting :P Better sort that out soon I suppose...

    Other people have suggested a gallery where you can download good sprays that get made, since the images are all stored on the server until I delete them all (I got a shock at just how many images there were after a week, took 10 minutes to delete them all...)

    Glad you're using it, I get a tweet every since time it's used :)

    Any other suggestions?

    Bananite
  • Zurkov's Levels
    • P2: Drudge
      Points: 1,366
    • E1: Helper
      EF: 6
    • A5: Veteran
      Account Age: 6 years
    Posted 5 years ago
    Posted by clarkee You don't need to go through these stresses. I wrote a web-app to do the hard work for you. You can even upload animated GIF's for conversion :P http://www.clarkee.co.uk/?p=65 is the full URL to the info about it and a link to it. Feel free to comment on the blog / give ideas etc. I hope you enjoy it.

    I'm not sure if I'm the only one having trouble getting to the address you suggested, so I'll go ahead and post this link to save effort for anyone else who has trouble with it.

    User Title
  • tek-'s Levels
    • A5: Veteran
      Account Age: 6 years
  • Dr. Whoop DSc's Levels
    • P4: Worker
      Points: 35,269
    • E1: Helper
      EF: 11
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago
    Posted by clarkee You don't need to go through these stresses. I wrote a web-app to do the hard work for you. You can even upload animated GIF's for conversion :P http://www.clarkee.co.uk/?p=65 is the full URL to the info about it and a link to it. Feel free to comment on the blog / give ideas etc. I hope you enjoy it.

    I love you, Ive spent days looking for this exact tool. :D

  • clarkee's Levels
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago

    You don't need to go through these stresses. I wrote a web-app to do the hard work for you. You can even upload animated GIF's for conversion :P

    http://www.clarkee.co.uk/?p=65 is the full URL to the info about it and a link to it.

    Feel free to comment on the blog / give ideas etc. I hope you enjoy it.

    Bananite
  • svensson09's Levels
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago
    Posted by _iNferno
    Posted by arnokeuh
    Posted by iNfx1 doz it works?
    Posted by arnokeuh Error: Image dimension must be power of 2! :(
    you need to use a boolean value 128x128 256x256 512x512 or combinations, .. ie: 512x256
    Thank you. But I already found it out before you posted ^^ But still Thanks for helping.
    i woulda guessed that, i posted a week ago anyway.
    Bananite
  • -BlueShift-'s Levels
    • P1: Beggar
      Points: 224
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago
    Posted by [Sap] Hi, I'm using PS CS3 extended, but when I save something as .tga it is not transparent, but white where it should be transparent (not when I save as .png) I cannot select alpha channels when saving. would be pleased to read a solution here, thanks (:

    http://www.fpsbanana.com/tuts/7520

    Hope that could help you!

    User Title
  • [Sap]'s Levels
    • A5: Veteran
      Account Age: 5 years
    Posted 5 years ago

    Hi,

    I'm using PS CS3 extended, but when I save something as .tga it is not transparent, but white where it should be transparent (not when I save as .png)

    I cannot select alpha channels when saving.

    would be pleased to read a solution here, thanks (:

    Bananite

Credits

Submitter
Killerfromsky's Levels
  • P3: Peasant
    Points: 17,367
  • A6: Elder
    Account Age: 9 years
Killerfromsky (Creator/Co-creator)
Authors
n/a
n/a

Rating

Expert
9.1/10
Based off 9 rating(s)

Additional Info

Genre
Other/Misc
Difficulty Level
Intermediate

Stats

Post Count
49
ViewCount
161,116
Date Added
9 years ago
Date Modified
8 months ago

Share

Embed Code
Code to use:

More embeddable images

Bookmark and Share