Team Fortress 2
LuHaMa 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 http://steamcommunity.com/sharedfiles/filedetails/?id=268609382
the one to convertit (tf2 sprays) says my file is too large how do i enlarge then?
(i have photoshop)
< >
Showing 1-15 of 20 comments
Lumanator Jun 9, 2014 @ 11:00am 
Convert the gif, resize it and convert back into gif.
CAR_ 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_; Jun 9, 2014 @ 11:18am
LuHaMa Jun 9, 2014 @ 11:18am 
Wont work VTFedit
CAR_ Jun 9, 2014 @ 11:20am 
Did you try to import individual frames, or the gif file? I'm pretty sure only individual frames work.
LuHaMa Jun 9, 2014 @ 11:23am 
wait how do you save all in once? (frames)
CAR_ 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_; Jun 9, 2014 @ 11:35am
LuHaMa 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
welp. (Banned) Jun 9, 2014 @ 11:54am 
LuHaMa Jun 9, 2014 @ 11:57am 
oke
LuHaMa Jun 10, 2014 @ 3:48am 
i dont get the fsize of it
i have DXT1 and DXT5
and 128x128 cant find it
CyberSalty Jun 23, 2015 @ 12:31am 
how do you make sure auto create vmt is selected????
Lumanator Jun 23, 2015 @ 1:44am 
Originally posted by RENEV8OR Flamer:
how do you make sure auto create vmt is selected????
Read the topic date. It's freaking 1 year old!
LuHaMa Jun 23, 2015 @ 8:01am 
Originally posted by Lumanator:
Originally posted by RENEV8OR Flamer:
how do you make sure auto create vmt is selected????
Read the topic date. It's freaking 1 year old!
the ♥♥♥♥?
LuHaMa Jun 23, 2015 @ 8:02am 
I got Photoshop and im just deleting frames.
mooles mun (Banned) Jun 23, 2015 @ 8:09am 
Originally posted by RENEV8OR Flamer:
how do you make sure auto create vmt is selected????
< >
Showing 1-15 of 20 comments
Per page: 15 30 50

Date Posted: Jun 9, 2014 @ 10:46am
Posts: 20