VTEX (Valve Texture Tool): Difference between revisions
Jump to navigation
Jump to search
Note:It is recommended that you use the third-party tool VTFEdit instead. VTFEdit boasts a user-friendly interface, a wider array of accepted formats, the ability to change most VTF's properties without recompiling, a standalone viewer, and direct GCF access.
mNo edit summary |
m (Updated for SteamPipe) |
||
Line 5: | Line 5: | ||
== Basic usage == | == Basic usage == | ||
#Make sure that [[Steam]] is running. | #Make sure that [[Steam]] is running. | ||
#Place the targa image to be converted inside the <code>SteamApps/common/gamefolder/materialsrc/</code> folder, where ''gamefolder'' is the game folder of the current game (<code>cstrike</code>/<code>dod</code>/<code>hl2</code>/<code>hl2mp</code>/<code>tf</code>). You can also place the image within a subfolder of this folder, to make Vtex compile the texture to the corresponding <code>materials/</code> subfolder. (For instance, placing the image in a <code>materialsrc/metal/</code> subfolder, will make Vtex compile the texture to the <code>materials/metal/</code> subfolder.) | |||
#Place the targa image to be converted inside the <code>SteamApps/ | |||
#If necessary, write a [[txt|text (.txt) file]] containing a set of [[Vtex compile parameters]]. Give it the same name as the targa image (with the exception of the ''.txt'' extension) and put it in the same folder. If you choose to omit this list, Vtex will create an empty one for you during compilation. | #If necessary, write a [[txt|text (.txt) file]] containing a set of [[Vtex compile parameters]]. Give it the same name as the targa image (with the exception of the ''.txt'' extension) and put it in the same folder. If you choose to omit this list, Vtex will create an empty one for you during compilation. | ||
#The Vtex executable (''Vtex.exe'') is located in the <code>/Steam/SteamApps/ | #The Vtex executable (''Vtex.exe'') is located in the <code>/Steam/SteamApps/common/gamefolder/bin/</code> folder, again where <code>gamefolder</code> is the folder that corresponds with the target game. It can be executed in one of two ways: Through the easy "drag-and-drop" method (described below), or the more advanced command prompt method, described [[Vtex CLI use|here]]. Steam must run while it is executed. | ||
#The resulting Valve Texture File (.vtf) will be compiled to the <code>materials/</code> folder of the current game by default. For instance, if | #The resulting Valve Texture File (.vtf) will be compiled to the <code>materials/</code> folder of the current game by default. For instance, if the current game would be [[Half-Life 2]], the texture file would be compiled to the <code>SteamApps/common/Half-Life 2/hl2/materials/</code> folder. If the targa image resided within a subfolder, Vtex will compile the texture file to the corresponding <code>materials/</code> subfolder. If that subfolder doesn't exist, Vtex will create it automatically. | ||
=== The drag-and-drop method === | === The drag-and-drop method === |
Revision as of 08:25, 17 December 2013
Vtex, or Valve Texture Tool, is the command-line tool used to convert targa (.tga) or Photoshop (.psd) (Orange box SDK) image files into Valve Texture Files (.vtf) for use in the Source engine. It takes a targa (.tga) image and an optional list of compile parameters, and creates a Valve Texture File (.vtf) from them.

Basic usage
- Make sure that Steam is running.
- Place the targa image to be converted inside the
SteamApps/common/gamefolder/materialsrc/
folder, where gamefolder is the game folder of the current game (cstrike
/dod
/hl2
/hl2mp
/tf
). You can also place the image within a subfolder of this folder, to make Vtex compile the texture to the correspondingmaterials/
subfolder. (For instance, placing the image in amaterialsrc/metal/
subfolder, will make Vtex compile the texture to thematerials/metal/
subfolder.) - If necessary, write a text (.txt) file containing a set of Vtex compile parameters. Give it the same name as the targa image (with the exception of the .txt extension) and put it in the same folder. If you choose to omit this list, Vtex will create an empty one for you during compilation.
- The Vtex executable (Vtex.exe) is located in the
/Steam/SteamApps/common/gamefolder/bin/
folder, again wheregamefolder
is the folder that corresponds with the target game. It can be executed in one of two ways: Through the easy "drag-and-drop" method (described below), or the more advanced command prompt method, described here. Steam must run while it is executed. - The resulting Valve Texture File (.vtf) will be compiled to the
materials/
folder of the current game by default. For instance, if the current game would be Half-Life 2, the texture file would be compiled to theSteamApps/common/Half-Life 2/hl2/materials/
folder. If the targa image resided within a subfolder, Vtex will compile the texture file to the correspondingmaterials/
subfolder. If that subfolder doesn't exist, Vtex will create it automatically.
The drag-and-drop method
The drag-and-drop method is the easy way to use Vtex. Just drag the icon of either the targa image to be converted, or its list of compile parameters (from its materialsrc/
folder) on top of the icon of the Vtex executable (Vtex.exe) and let go, and Vtex will compile the texture file automatically.
See also
|