LuigiHarrisMario Jun 9, 2014 @ 10:46am
Converting GIF into VTF
I want a spray for tf2 but i dont get it to vtf
i want this one
the one to convertit (tf2 sprays) says my file is too large how do i enlarge then?
(i have photoshop)
Showing 1-10 of 10 comments
< >
Lumanator (Lucas Announced!) Jun 9, 2014 @ 11:00am 
Convert the gif, resize it and convert back into gif.
CAR_ | Pretending to LFT Jun 9, 2014 @ 11:16am 
I just spent hours yesterday getting a 15-frame gif into a vtf file (the tricky part was getting that many frames in). It may be a bit convoluted, but here's how I did it. Start wherever is applicable for you.

1. Record/create source video.
2. If recorded, convert video to gif on LunaPic website.
3. Use GIMP/Photoshop to save individual frames of gif, unless you animated your video in there in the first place and already have the frames. I think I used JPEG format.
4. Import the frames into VTFEdit. Choose an image size that leaves the full animation less than 512 KB. 128x128 might work. I think it needs to be square to work in TF2. Use DXT1 Normal Format, DXT5 Alpha Format, do not generate mipmaps (it will save space), Animated Texture, Smallest Power of 2, Triangles, etc. Play the animation to preview. It will play faster in the preview than in TF2, so don't worry.
5. If you're satisfied with the animation and your file size (Info Tab) is below 512 KB, save your animation as a VTF file in your tf > materials > vgui > logos folder. Make sure that Auto Create VMT file is selected before you do so.
6. Go to TF2, set the VTF file as your spray, join a server, and test it out.

I found a program that does it for you automatically, but the quality was nowhere near my manually-made finished product.
Last edited by CAR_ | Pretending to LFT; Jun 9, 2014 @ 11:18am
LuigiHarrisMario Jun 9, 2014 @ 11:18am 
Wont work VTFedit
CAR_ | Pretending to LFT Jun 9, 2014 @ 11:20am 
Did you try to import individual frames, or the gif file? I'm pretty sure only individual frames work.
LuigiHarrisMario Jun 9, 2014 @ 11:23am 
wait how do you save all in once? (frames)
CAR_ | Pretending to LFT Jun 9, 2014 @ 11:34am 
If you open a gif in Photoshop, I believe each frame will be a layer (that's how it works in GIMP). Make one layer visible at a time, exporting each as frame001, frame002, etc so VTFEdit plays them in order.

Then open VTFEdit, import all of the images at once. (Ctrl + A, ya know?)
Last edited by CAR_ | Pretending to LFT; Jun 9, 2014 @ 11:35am
LuigiHarrisMario Jun 9, 2014 @ 11:45am 
how do i export?
and if is to save... is an easy way to save all at once becaus i will do 40 times save
Smiles Edgeworth|Deus Ex IV Hype (Banned) Jun 9, 2014 @ 11:54am 
LuigiHarrisMario Jun 9, 2014 @ 11:57am 
LuigiHarrisMario Jun 10, 2014 @ 3:48am 
i dont get the fsize of it
i have DXT1 and DXT5
and 128x128 cant find it
Showing 1-10 of 10 comments
< >
Per page: 15 30 50
Date Posted: Jun 9, 2014 @ 10:46am
Posts: 10