This topic has been locked
Modifying an animated VTF file
So I've extracted a VTF file from the sourceengine/hl2_textures_dir.vpk file using GCFScape. When I use this in-game it's animated but only in a specific color which I cannot override via the code. How would I go about duplicating the texture but making it white so that I can color it via Lua (this is for Garry's Mod) ?

Is it possible to make a custom VMT that would allow this without modifying the VTF itself?
If I use UnlitGeneric with the texture as basetexture or any other shader for that matter it'll have black outlines and won't be animated.

Otherwise, how exactly can I extract all frames from the VTF (I tried opening it with VTFEdit but I can't press play and there will only show one frame on there).

Help is much appreciated!

Something went wrong while displaying this content. Refresh

Error Reference: Community_9721151_
Loading CSS chunk 7561 failed.
(error: https://community.fastly.steamstatic.com/public/css/applications/community/communityawardsapp.css?contenthash=789dd1fbdb6c6b5c773d)
Showing 1-3 of 3 comments
eram Mar 22, 2016 @ 3:23pm 
Custom vmt/vtf files are just converted gif images so yes you can create your own 1. Editing game files this way wont really work too well, its mainly to create your own vmt/vtf files.

I used to use vtf edit to create animated vtf files from gif images but that small tool was very buggy and this was a good few years ago now.
Last edited by eram; Mar 22, 2016 @ 3:24pm
76561198205782696 Mar 22, 2016 @ 4:35pm 
Okay so now I've got it working with a custom VMT file loading the original texture.
Question is, how would I make a texture shaded with "UnlitTwoTexture" colorable? Is it possible to assign custom color values to a texture in a VMT and how?
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Mar 22, 2016 @ 3:14pm
Posts: 3