vtex2
vtex2 is a Valve Texture Format conversion and creation tool. It has a CLI and a GUI component for viewing, packing and otherwise converting the files.
The source code is availible here on GitHub .
Usage
Command help documentation and usage examples can be shown on the command line using vtex2 --help
.
For action-specific help, use vtex2 <action> --help
.
Creating VTFs
Creating a VTF can be done with the vtex2 convert
action.
For example, the following command will create a VTF called some-file.vtf
with the format BGRA8888
:
If you pass a directory to vtex2 convert
, it will convert all files in that directory. The -r
or --recursive
parameter
will cause the program to descend and process subdirectories too.
Full list of options:
Extracting image data from VTF
Extracting image data from a VTF can be done using vtex2 extract
.
For example, the following command will extract the VTF to some-file.jpg
:
If you pass a directory to vtex2 extract
, it will convert all files in that directory. The -r
or --recursive
parameter
will cause the program to descend and process subdirectories too.
Full list of options:
Displaying VTF Info
The vtex2 info
command can be used to display some info about VTF files.
Full list of options:
Channel pack a VTF
The vtex2 pack
command can be used pack images into channels of a VTF.
Full list of options: