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)
(Official version works in nearly all current Source games, so removed link and added proper usage; page has been wrong for over a decade)
Line 1: Line 1:
'''VTF2TGA''' is a primitive [[command-line]] tool used to convert files from [[VTF]] to [[TGA]] format.
'''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.
{{warning|As of December 29th 2004 update, VTF2TGA is no longer compatible with format changes.}}
: {{Note|'''[[VTFEdit]]''' should be used instead as it's far more flexible and user-friendly, unless you need to work with PFM files.}}
: {{Bug|{{csgo}} Will crash if an invalid input file 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==
vtf2tga -i <input vtf> -o <output tga> -mip


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


== See also ==
== See also ==

Revision as of 16:21, 4 May 2019

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 instead as it's far more flexible and user-friendly, unless you need to work with PFM files.
Icon-Bug.pngBug:Counter-Strike: Global Offensive Will crash if an invalid input file is used.  [todo tested in ?]

Usage

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.