hi guys, last week i was wondering a solution to handle VTF files and the workflow to create those files.
Most part for making skins and stickers for CSGO workshop, but also can be adapted to other usage, like vtf textures for env art etc.
Personally i don't like editing alpha channel as a channel inside PS, so the idea is to have a layer group inside Photoshop named _alpha. (inside this group i can have shape layers, smart objects, adjustment layers, etc)
So i'm using a batch (yeah, lol a DOS batch). You can drag and drop the PSD into the bat file, or copy the bat into your work folder and run it. (the bat will look for the first .psd file inside the folder)
[Blocked Image: http://arthurdepadua.com/vtf_helper/vtf_helper01.png]
Three-part process:
1 jsx script exports TGA files
2 Imagemagick takes the TGA files, combine _alpha layer group exported as TGA, and insert it as a actual alpha channel, generates the final tga file
3 executes valve's Vtex command line tool to create the VTF from TGA, on the final destination folder.
The batch will name the maps accordingly to the psd filename.
eg: bat.psd (sticker file) will generate:
bat_foil.vtf
bat_foil_normal.vtf
bat_paper.vtf
etc.
After the stuff was done, Vtex wrote some warning messages that i could use the PSD as direct source for making the vtf files. Probably would not read the layer group as a alpha channel but i need to dig deeper into Vtex.
anyway,
how do you guys deal with PSD and vtf?