VTF2TGA: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Undone changes, file is still available although harder to find on the page)
(Rewrite Template:Lang to Template:LanguageBar. This action was performed by a bot.)
 
(11 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''VTF2TGA''' is a primitive [[command-line]] tool used to convert files from [[VTF]] to [[TGA]] format.
{{LanguageBar|VTF2TGA}}
{{warning|As of December 29th 2004 update, VTF2TGA is no longer compatible with format changes.}}
{{vtf2tga|4}} is a primitive [[Command line|command-line]] tool used to convert files from the [[Valve Texture Format|VTF]] format to the [[TGA]] format. The tool can also decompile uncompressed HDR VTFs into [[PFM]] files, despite the name.
:{{note|'''[[VTFEdit]]''' should be used as it's far more flexible and user-friendly, unless you need to work with HDR textures or need to do conversion in shell scripts, in which case {{no_vtf|3.1}} should be used.}}
:{{bug|hidetested=1|{{csgo|4|nt=1}} will crash if an invalid input is used.}}


An older but functional version of this program is still available [http://halflife2.filefront.com/file/VTF2TGA_Converter_Utility;35355#Download here]. To use this version directly, place the VTF file to convert in the same directory with <code>vtf2tga.exe</code> application, and in the command prompt type:
==Usage==
{{syntax|vtf2tga -i <input vtf> [-o <output tga>] [-mip]}}


vtf2tga <Your VTF file to convert> <The resulting TGA file name>
===Options===
{{def|code=1|-i|type=input vtf}} The input VTF. Doesn't need the filename extension.
{{def|code=1|-o|type=output tga}} Name of the output file. Doesn't need the filename extension; outputs .tga for standard textures and .pfm for HDR textures.
{{def|code=1|-mip}} Optional, dumps all mipmaps from the input VTF.


== See also ==
==See also==
* [[VTFEdit]] - a more flexible third-party alternative to VTF2TGA.
* [[VTFEdit]] - a more flexible third-party alternative to VTF2TGA that uses a GUI.
* {{no_vtf|3.1}} - a superior third-party alternative to VTF2TGA that keeps the console interface.


{{SDKTools}}
{{sdktools}}


[[Category:Material System]]
[[Category:Material System]]

Latest revision as of 17:42, 18 July 2025

English (en)Translate (Translate)

VTF2TGA VTF2TGA is a primitive command-line tool used to convert files from the VTF format to the TGA format. The tool can also decompile uncompressed HDR VTFs into PFM files, despite the name.

Note.pngNote:VTFEdit should be used as it's far more flexible and user-friendly, unless you need to work with HDR textures or need to do conversion in shell scripts, in which case no_vtf should be used.
Icon-Bug.pngBug:Counter-Strike: Global Offensive CS:GO will crash if an invalid input is used.

Usage

Syntax: vtf2tga -i <input vtf> [-o <output tga>] [-mip]

Options

-i<input vtf>
The input VTF. Doesn't need the filename extension.
-o<output tga>
Name of the output file. Doesn't need the filename extension; outputs .tga for standard textures and .pfm for HDR textures.
-mip
Optional, dumps all mipmaps from the input VTF.

See also

  • VTFEdit - a more flexible third-party alternative to VTF2TGA that uses a GUI.
  • no_vtf - a superior third-party alternative to VTF2TGA that keeps the console interface.