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. BELEK: turning Rouen into competitive FPS maps (Godot project, feedback wanted)

    zlatan24
    November 12, 2026 at 6:23 PM
  2. CS2 sticker critique | Would the eye or blade read first on an AK?

    EmberKrakenCS2
    November 9, 2026 at 10:21 PM
  3. dod_poznan

    Smile_2000
    November 9, 2026 at 9:10 AM
  4. [cs2][WIP] De_digital (A side only) Looking for Feedback

    Howw3
    November 5, 2026 at 9:22 PM
  5. Hello from Normandy: Metin, working on a tactical FPS

    Thrik
    November 2, 2026 at 10:19 PM
  6. How do I setup CS1.6 mapping on linux?

    zlatan24
    November 2, 2026 at 6:43 AM
  7. CS:S | de_honor | Map creation process by D'artagnan

    Dartagnan
    November 1, 2026 at 5:41 PM
  8. Made a map maker for my indie game.

    daud2k7
    November 1, 2026 at 4:19 PM
  9. First CS2 Maps DM and Bomb Defusal

    zlatan24
    November 1, 2026 at 3:06 PM
  10. POLYSTRIKE - Finally Announced After Years of Development!

    MetinSaygin
    October 31, 2026 at 10:57 AM

Users Viewing This Thread

  • 1 Guest
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™