Gif to animated spray

To begin...

You will need Gif editing software. I use ULEAD gif animator so therefore my tutorial will be based around it mainly. You will also need VTFEdit.

1) Open up gif animator. File>new

Set the X and Y to something that's the power of 2. 32, 64, 128, 256. The smaller it is the more frames you will be able to have but you have to make sure your gif fits within the boundaries. Import your gif by dragging it in.

2) File>Save as>Image frames

Change the save type to .png and quality 100. Call it "image" (without the speech marks). Then save it in its own folder

You are done with ULEAD, now you need to open up VTFEdit.

3) File>Import

Highlight all of the .pngs you have made and click "open".

Set texture type to "animated texture".

Click OK. Click play to see if it worked.

Then click "info" and check how big the spray is. Anything over 512kb is too much and wont work - if this is the case you must go back to the gif editor and delete some frames or make the gif dimensions smaller.

4) If it worked and you're happy with it. Click Options and make sure "Auto create VMT file is checked".

Save your spray into C:\Program Files\Steam\steamapps\common\counter-strike source\cstrike\materials\VGUI\logos

and try it out in game!

EDIT: I've created a calculator which allows you to check how many frames you are allowed with different lengths and widths. Found here: Click

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

  • Sound of the Lyre avatar
    Sound of the Lyre
    Availability
    Offline
    Points Level
    Drudge Points Level icon
    Drudge
    1,141 points
    Account Age Level
    Graduate Age Level icon
    Graduate
    3 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    3 years ago:

    Followed instuctions, and the spray didn't come up in-game. It played wicked fast in VTFEdit, too. Could you help me?

    I'm a secret agent man! avatar
    User Title
    I'm a secret agent man!
  • Ultrimo avatar
    Ultrimo
    Availability
    Offline
    Points Level
    Drudge Points Level icon
    Drudge
    2,284 points
    Account Age Level
    Elder Age Level icon
    Elder
    7 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    6 years ago:
    Posted by FreeKiller Awesome, btw i used pivot stickfigure animator instead of Ulead and it worked

    I'm pretty sure there are many that work with it - I just didn't know them - so thanks for adding to the list :D

     avatar
    User Title
  • Bananaman avatar
    Bananaman
    Availability
    Offline
    Points Level
    Beggar Points Level icon
    Beggar
    151 points
    Account Age Level
    Elder Age Level icon
    Elder
    6 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    6 years ago:

    Awesome, btw i used pivot stickfigure animator instead of Ulead and it worked

    Bananite
  • deadman22 avatar
    deadman22 avatar
    Availability
    Offline
    Points Level
    Drudge Points Level icon
    Drudge
    4,440 points
    Exemplary Feedback Level
    Tutor Exemplary Feedback Level icon
    Tutor
    41 EF's
    Account Age Level
    Elder Age Level icon
    Elder
    7 years old
    Clearance Level
    Treehouse VIP Clearance Level icon
    Treehouse VIP
    deadman22 avatar
    Username
    deadman22
    Social Media Rep
    • Report icon
    6 years ago:

    Include links to the software your using?

    Everyone is Dead avatar
    User Title
    Everyone is Dead
  • Ultrimo avatar
    Ultrimo
    Availability
    Offline
    Points Level
    Drudge Points Level icon
    Drudge
    2,284 points
    Account Age Level
    Elder Age Level icon
    Elder
    7 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    6 years ago:
    Posted by -WildBill- Shouldnt this go under the Sprays section instead of the Animating section?

    Yeah, thanks.

     avatar
    User Title
  • Koiyty avatar
    Koiyty
    Availability
    Offline
    Points Level
    Peasant Points Level icon
    Peasant
    9,201 points
    Exemplary Feedback Level
    Helper Exemplary Feedback Level icon
    Helper
    8 EF's
    Account Age Level
    Elder Age Level icon
    Elder
    7 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    6 years ago:
    Posted by BlackHoleSon I thought it was .tga format.

    Congratulations.

    I'm bak online 4 sum day
  • Klingstuh avatar
    Klingstuh
    Availability
    Offline
    Points Level
    Worker Points Level icon
    Worker
    31,969 points
    Exemplary Feedback Level
    Guide Exemplary Feedback Level icon
    Guide
    22 EF's
    Account Age Level
    Elder Age Level icon
    Elder
    7 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    6 years ago:

    Man, I would totally try this out if CSS still worked on my computer. I'm so glad you made this tutorial. It's about time someone did. Thank you.

    You would...
  • BlackHoleSon avatar
    BlackHoleSon
    Availability
    Offline
    Points Level
    Worker Points Level icon
    Worker
    45,697 points
    Exemplary Feedback Level
    Teacher Exemplary Feedback Level icon
    Teacher
    93 EF's
    Account Age Level
    Elder Age Level icon
    Elder
    7 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    6 years ago:

    I thought it was .tga format.

    Stand still, I'm used to paper avatar
    User Title
    Stand still, I'm used to paper
  • ResidentEvil91 avatar
    ResidentEvil91 avatar
    Availability
    Offline
    Points Level
    Beggar Points Level icon
    Beggar
    863 points
    Exemplary Feedback Level
    Helper Exemplary Feedback Level icon
    Helper
    4 EF's
    Account Age Level
    Elder Age Level icon
    Elder
    7 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    6 years ago:

    Oooh. You dont need VTEX to do animated sprays anymore? :o

    Or then i did not know that you can make them with VTF editor.. :D

    Dont say it.. We know it alrea avatar
    User Title
    Dont say it.. We know it alrea
  • -WildBill- avatar
    -WildBill-
    Availability
    Offline
    Points Level
    Peasant Points Level icon
    Peasant
    11,350 points
    Exemplary Feedback Level
    Tutor Exemplary Feedback Level icon
    Tutor
    61 EF's
    Account Age Level
    Elder Age Level icon
    Elder
    9 years old
    Clearance Level
    Member Clearance Level icon
    Member
    • Report icon
    6 years ago:

    Shouldnt this go under the Sprays section instead of the Animating section?

    Want realism? Go play outside.

Credits

Key Authors
Ultrimo
Unknown

Submitter

Ultrimo avatar
Ultrimo
Availability
Offline
Points Level
Drudge Points Level icon
Drudge
2,284 points
Account Age Level
Elder Age Level icon
Elder
7 years old
Clearance Level
Member Clearance Level icon
Member

Ultrimo
(Creator/Co-creator)

Rating

?/10
Not yet rated.

Additional Info

Genre
Texturing
Difficulty Level
Beginner

Stats

Post Count
11
ViewCount
35,544
Date Added
6 years ago
Date Modified
1 year ago

Share

Code to use:

More embeddable images

Bookmark and Share