VTF2TGA: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Mention a new .vtf batch converter)
mNo edit summary
Line 1: Line 1:
{{lang|VTF2TGA}}
{{lang|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.
'''VTF2TGA''' 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 PFM files or need to do conversion in shell scripts.}}
:{{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.}}
:{{bug|{{csgo|4|nt=1}} will crash if an invalid input is used.}}


==Usage==
==Usage==
{{syntax|vtf2tga -i <input vtf> -o <output tga> [-mip]}}
{{syntax|vtf2tga -i <input vtf> -o <output tga> [-mip]}}
=== 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 ==
===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==
* [[VTFEdit]] - a more flexible third-party alternative to VTF2TGA that uses a GUI.
* [[VTFEdit]] - a more flexible third-party alternative to VTF2TGA that uses a GUI.
* [https://sr.ht/~b5327157/no_vtf/ no_vtf] - a superior third-party alternative to VTF2TGA that keeps the console interface.
* [https://sr.ht/~b5327157/no_vtf/ no_vtf] - a superior third-party alternative to VTF2TGA that keeps the console interface.


{{SDKTools}}
{{sdktools}}


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

Revision as of 16:29, 28 August 2022

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:Counter-Strike: Global Offensive CS:GO 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.
  • no_vtf - a superior third-party alternative to VTF2TGA that keeps the console interface.