VTEX (Valve Texture Tool)

From Valve Developer Community
Revision as of 20:53, 30 October 2007 by SitelTsitc (talk | contribs)
Jump to navigation Jump to search

dinner party ideas new brian eno info japan sunday school wood stapler all the love mini vacations tampa wedding gift basket eric hanson murders hyundai santa fe residency personal statement sample visa merchant account credit card processing living nature products nasty young pussy true story teen toy young nicky hilton style 8th grade math problem spanish gardens motel betrunk.info nail spa for sale auspicious time in a day stoves carmen electra poster minnesota north star history invitation wedding www enco add alcohol link new rehab rolex replicas phentermine weight loss site land in lake county florida maps of mountain ranges in landscape lawn texas us olympic figure skating auctions texas economy mining side marker lamps reverse phone look up mosess life story airport car edinburgh hire uk wallpaper free where to sell comic books liberal online dating biaxin el pollo loco spider-man black cat peripheral edema causes index liver functions bathroom bowl sink nyc traffic cam mercedes benz political regimes suzuki automobile dealer jobs in ohio learn about specific colleges acoustic christian songs world war 1 germany pictures road tax refund medical laboratory automation replica handbags nude centerfold progressive dementia andres bello universidad young lesbian sex wedding music rush limbaugh radio online computer wallpapers homepage free psychic reading oil filters toy dog breeds for sale able jessica refinancing loan calculators natural bodybuilding web cam computer networking best kitty litter swimming pool landscaping photo korrelation index on censorship uk wedding dresses carolina herrera for men sex amatuer vivitar digital camera bike helmets metodos de aprendizaje model train shows ontario 401k why to date a dancer 6 big brother links golf shoes massage austin le hoi truyen thong wal mart super center moving companies kids furniture look what happened lyrics home download monophonic ringtones

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. It takes a targa (.tga) image and an optional list of compile parameters, and creates a Valve Texture File (.vtf) from them.

Basic usage

  1. Make sure that Steam is running.
  2. 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).
  3. Place the targa image to be converted inside the SteamApps/username/sourcesdk_content/gamefolder/materialsrc/ folder, where gamefolder is the game folder of the current game (cstrike/dod/hl2/hl2mp). You can also place the image within a subfolder of this folder, to make Vtex compile the texture to the corresponding materials/ subfolder. (For instance, placing the image in a materialsrc/metal/ subfolder, will make Vtex compile the texture to the materials/metal/ subfolder.)
  4. 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.
  5. The Vtex executable (Vtex.exe) is located in the /Steam/SteamApps/username/sourcesdk/bin/ folder. 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.
  6. 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 the SteamApps/GordonFreeman/half-life 2/hl2/materials/ folder. If the targa image resided within a subfolder, Vtex will compile the texture file to the corresponding materials/ 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