1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Creative Chat

Valve's VTF workflow

  • Thurnip
  • April 24, 2015 at 2:39 PM
  • Thurnip
    • April 24, 2015 at 2:39 PM
    • #1

    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?

  • LATTEH
    • April 24, 2015 at 3:57 PM
    • #2

    This sounds awesome! I use the photoshop vtf plugin for exporting to source.

  • will2k
    • April 24, 2015 at 6:40 PM
    • #3

    As Latteh mentioned, the photoshop vtf plugin (also available for Gimp afaik) will make your life easier by working and saving directly in Photoshop without hassle.


    A 2nd fast way is to prepare all your work in Photoshop as TGA files then using VTFEdit (nifty free progam from the same creator of the PS plugin) you can batch import them into vtf with the added bonus that VTFEdit will create the corresponding vmt's for you (still have to edit here and there in the vmt for special switches but the bulk is done).


    I make my own custom textures for my maps so these 2 programs/plugins are indispensable when dealing with large amounts of vtf files

  • Thurnip
    • April 27, 2015 at 2:43 AM
    • #4

    Unfortunately the VTF plugin don't work on 64bit PS. :/ maybe we could rig a script that save as vtf right from the Photoshop using the plugin. We don't have 32bit PS on CC 2014 anymore.

    batch on VTFEdit: good stuff! didn't knew that. Sounds useful when editing massive amount of textures.

    The most annoying issue for me, is that you must edit alpha channel as a actual channel. (So that's one of the reasons i rigged the stuff.) This is required to export a correct tga from Photoshop, right?

    Maybe i could try to set a composite from LayerSet_alpha into the alpha channel, when exporting the layerSets as TGAs.... so i could skip the Imagemagick part of the process.

  • will2k
    • April 27, 2015 at 4:07 PM
    • #5
    Quote from Thurnip

    The most annoying issue for me, is that you must edit alpha channel as a actual channel. (So that's one of the reasons i rigged the stuff.) This is required to export a correct tga from Photoshop, right?

    Yes, I believe the alpha channel must be present in your TGA so VTFEdit can recognize the correct format (ex DXT5) with 32 bit and transparency.


    I usually leave the alpha channel creation til the end; I could have several layers on the diffuse (overlay, adjustment, fill layers etc..) then when I'm done I can select one or several layers that i want to include in the alpha channel (could be overlapping layers too) then I duplicate these layers and merge them into one layer. I ctrl+ left click on this layer to select it then right click on the "marching ants selection" and choose save selection. this will automatically send the selection to the alpha channel with all the shapes and the tranparencies nuances and I wouldn't have to manually edit the alpha channel anymore.


    Probably not the best method but it works for me

  • cashed
    • April 27, 2015 at 6:06 PM
    • #6

    I havent bothered with the PS plugin for a long long time. I'll be old school and open the tga in vtfedit haha

  • will2k
    • April 27, 2015 at 7:08 PM
    • #7
    Quote from cashed

    I havent bothered with the PS plugin for a long long time. I'll be old school and open the tga in vtfedit haha

    I keep it on standby just in case of a quick edit of a vtf on the fly


    But VTFEdit is the main weapon to go for handling the vtfs/conversion

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  2. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  3. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  4. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  5. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  6. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  7. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  8. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  9. Bridges 2.0 by NEXSIDE, MAP SHOWCASE. ( Steam Workshop )

    MrTrane18
    June 1, 2026 at 7:46 PM
  10. Classic Maps Reborn For CS2

    SillySpaceCat
    May 31, 2026 at 10:33 PM
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™