VTEX (Valve Texture Tool)
Jump to navigation
Jump to search
Overview
Vtex, or Valve Texture Tool, is the standard application used to convert targa (.tga) image files into Valve Texture Files (.vtf) for use in the Source engine.
Basic Usage
- Start Steam.
- If necessary, start Source SDK and set/verify the game that you are converting the texture for in the Current Game drop-down list located at the bottom of the Source SDK menu.
- Place the targa image to be converted in the
SteamApps/username/sourcesdk_content/gamefolder/materialsrc/
folder, where gamefolder is the game folder of the current game (cstrike
/dod
/hl2
/hl2mp
). - The Vtex executable (Vtex.exe) is located in the
/Steam/SteamApps/username/sourcesdk/bin/
folder. (Steam must run while it is executed.) - Vtex can be executed in one of two ways: Through the "drag-and-drop" method in Windows (described below), or through the command line interface.
- The resulting Valve Texture File (.vtf) will be compiled to the
materials/
folder of the current game by default. For instance, if your username would be GordonFreeman, and the current game would be Half-Life 2, the texture file would be compiled to theSteamApps/GordonFreeman/half-life 2/hl2/materials/
folder.
The drag-and-drop method
The drag-and-drop method is the easy way to use Vtex. Just drag the targa image to be converted from its materialsrc/
on top of Vtex.exe and let go, and that's it.
Todo: More detail? The process is apparently currently described in Material, but should be moved here.