Texture Editing - How to recolor models
Note: As of the Spring Cleaning Patch, this method seems to be no longer reliable for base items.
This simple tutorial shows the process of finding, decompiling and editing textures with the purpose of recoloring models:
Basically we are going to get the compiled texture, decompile it to be able to edit in in a graphic suite, then compile it back and place it on the same name and path of the original, effectively overriding the existing texture on the main game.
Step 0. Required software
- GCFScape, to open the pak01_dir.vpk and extract vtex_c
- ValveResourceFormat, to decompile the vtex_c
- ModKit, to make tga into vtex_c
Step 1. Get VTEX_C
First, identify the required vtex_c by going to the material you want to edit textures from.
Then search that file in GFScape and Extract it
Step 2. Generate TGA
Use VRF to get a picture out of the file you got from the vpk.
Right click -> Save
Step 3. Edit at will
Open the file in Photoshop/Gimp and edit it as you wish.
Save as TGA.
Step 4. Create VTEX_C
Use modkit to turn the TGA into a compiled texture
(In theory modkit can decompile too but its not as easy and fast process as VRF)
Step 5. Save on the same path name
Modkit will put your vtex_c in the game materials folder with the same name than its source.
Make sure the name and paths are the same as the asset you want to override. The changes should be visible in the asset browser on the vmat and vmdl
This same method can be applied to any texture and model in the game. Have fun!