VTF2TGA: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Changed input file to input)
m (Added lang and VTFEdit uses a gui.)
Line 1: Line 1:
'''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.
{{lang|VTF2TGA}}
: {{Note|'''[[VTFEdit]]''' should be used instead as it's far more flexible and user-friendly, unless you need to work with PFM files.}}
'''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.
: {{Bug|{{csgo}} Will crash if an invalid input is used.}}
: {{Note|'''[[VTFEdit]]''' should be used as it's far more flexible and user-friendly, unless you need to work with PFM files or need to do conversion in shell scripts.}}
: {{Bug|{{game name|csgo|name=CS:GO}} will crash if an invalid input is used.}}


==Usage==
==Usage==
vtf2tga -i <input vtf> -o <output tga> -mip
{{syntax|vtf2tga -i <input vtf> -o <output tga> [-mip]}}
 
=== Options ===
=== Options ===
;<code>-i <input vtf></code>
;<code>-i <input vtf></code>
Line 15: Line 15:


== 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.


{{SDKTools}}
{{SDKTools}}


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

Revision as of 23:30, 18 September 2021

English (en)Translate (Translate)

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 PFM files or need to do conversion in shell scripts.
Icon-Bug.pngBug:Template:Game name will crash if an invalid input is used.  [todo tested in ?]

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.