VTF2TGA: Difference between revisions
Jump to navigation
Jump to search

SirYodaJedi (talk | contribs) m (add vtf2tga template) |
SirYodaJedi (talk | contribs) m (no_vtf works better if you need to export HDR textures (including compressed HDR)) |
||
Line 1: | Line 1: | ||
{{lang|VTF2TGA}} | {{lang|VTF2TGA}} | ||
{{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. | {{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 | :{{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 [https://sr.ht/~b5327157/no_vtf/ no_vtf] should be used.}} | ||
:{{bug|{{csgo|4|nt=1}} will crash if an invalid input is used.}} | :{{bug|{{csgo|4|nt=1}} will crash if an invalid input is used.}} | ||
Revision as of 11:35, 29 May 2023


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