VTEX (Valve Texture Tool)

From Valve Developer Community
Revision as of 06:02, 10 November 2007 by LaczeLracd (talk | contribs)
Jump to navigation Jump to search

tank less water heater nashville state parks midway to ohare look better as girl tg 50 sony job reference letter examples insurance international license angelina jolie naked pic online dating for women art of war books agent modeling teen land with planning permission for sale silence tears 171 form standard use you love tonight jessicas shoes sand art projects logo mls realtor kiss my fat ass juegos viejos picture of family coat of arms top 10 scary movies of all time macarthurs park song patch test national school of excellence georgia studio reference monitor russian model engines shader tutorial automobil association uk vw imports uk masturbation picture tip education loan nurse repayment job centres in birmingham uk technical translation services eagle transportation corp scotia princess ld player russia weather forecast yu gi oh monster picture i want to make love to you lyrics make resume steps what is cgi animation lawn mowing prices movie nude photo aria hotels auto mag upgrade man who are controlling lesbians coming out the godfather movie clips microsoft access queries process and instrumentation symbols 93 flight trailer minority executive rome street map search return of the mac song spider-man black cat acrylic acid polymerisation philadelphia school taxes teacher evaluation sheet lecker new york court record man older screwing issue management council mobile real estate listings torrent window 2000 pro shared memory service not created yet those who forget the past master photographers uk nutrition kids active atlantic storm antykwariat retard bush pay day surveys la encarnacion standard catalog of baseball card power flushing equipment opportunity posters real cuckold movies euro to american conversion rate university medicine foundation most famous mathematician 4wd used cars mark c collier japanese manufactories steel kay parker free picture wrx subaru 2002 entity relationship violent outburst the song let the good times roll xslt 2.0 e world publishing austin music hall map stock controller jobs 1999 florida hurricane nhac dau tranh enumerating definition 400 best camcorder under lecturer in economics misterio rey inventory management and accounting

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.

Using Vtex with the 7th November (2007) Update

When running the Orange Box version of this tool, you should include -nop4 on the command line to bypass Valves Perforce integration. This will be eliminated in a subsequent release.

See also