No vtf: Difference between revisions
Jump to navigation
Jump to search
Tip:Compressed HDR textures are automatically detected by the presence of the string "hdr" near the end of the filename.
Mailmanmicky (talk | contribs) No edit summary |
(Update help to version 3.1.0) |
||
Line 13: | Line 13: | ||
searched for .vtf files, symbolic links are not followed). Multiple paths | searched for .vtf files, symbolic links are not followed). Multiple paths | ||
may be provided. | may be provided. | ||
As the output path, it is possible to specify either file or directory. | |||
Specifying the output file is useful mostly for single-file conversions, | |||
with filters to ensure only a single image will be written. | |||
If the output directory is not specified, images are output into the source | If the output directory is not specified, images are output into the source | ||
Line 29: | Line 34: | ||
(roughly, if it contains "hdr" near the end), or can be set manually. | (roughly, if it contains "hdr" near the end), or can be set manually. | ||
It is possible to filter images to convert by min/max resolution (width & | |||
height), and by frames/faces/slices. The former supports exact or closest | |||
match. The latter supports selection by single index or via Python slicing: | |||
https://python-reference.readthedocs.io/en/latest/docs/brackets/slicing.html | |||
Face index mapping: right (0), left, back, front, up, down, sphere map (6). | |||
After applying filters, only the highest-resolution mipmap is converted by | |||
default. Alternatively, all mipmaps of the high-resolution image can be | |||
converted. | |||
Animated textures have frames converted into individual images by default. | |||
They can also be converted into an animated image file. When the latter is | |||
chosen, APNG is used as the default LDR image format instead of TIFF. | |||
The RGB/L and A channels are packed into one file by default. When output | The RGB/L and A channels are packed into one file by default. When output | ||
Line 48: | Line 65: | ||
Options: | Options: | ||
-o, --output-dir DIRECTORY | -o, --output-dir DIRECTORY Output directory | ||
-l, --ldr-format TEXT | --output-file FILE Output file | ||
-h, --hdr-format TEXT | -l, --ldr-format TEXT LDR output format [default: tiff|apng] | ||
-d, --dynamic-range [ldr|hdr] | -h, --hdr-format TEXT HDR output format [default: exr] | ||
-m, --mipmaps | -d, --dynamic-range [ldr|hdr] Override LDR/HDR auto-detection | ||
-s, --separate-channels | -m, --mipmaps Extract all mipmaps | ||
-O, --overbright-factor FLOAT | --min-resolution INTEGER Minimum mipmap resolution [x>=1] | ||
--max-resolution INTEGER Maximum mipmap resolution [x>=1] | |||
--compress / --no-compress | --closest-resolution Fallback to closest resolution if no exact | ||
--always-write / --no-write | match | ||
--readback / --no-readback | --frames INDEX|[START]:[STOP][:STEP] | ||
--num-workers INTEGER | Frames to extract | ||
--faces INDEX|[START]:[STOP][:STEP] | |||
--no-progress | Faces to extract | ||
--version | --slices INDEX|[START]:[STOP][:STEP] | ||
--credits | Slices to extract | ||
--help | -a, --animate Output animated image file instead of | ||
writing each frame individually | |||
-F, --fps INTEGER Frame rate used for animated image files | |||
[default: 5] | |||
-s, --separate-channels Output the RGB/L and A channels separately | |||
-O, --overbright-factor FLOAT Multiplicative factor used for decoding | |||
compressed HDR textures [default: 16.0] | |||
--compress / --no-compress Control lossless compression | |||
--always-write / --no-write Write images | |||
--readback / --no-readback Readback images | |||
--num-workers INTEGER Number of workers for parallel conversion | |||
[x>=1] | |||
--no-progress Do not show the progress bar | |||
--version Show the version and exit. | |||
--credits Show the credits and exit. | |||
--help Show this message and exit. | |||
</nowiki>}} | </nowiki>}} | ||
Revision as of 12:38, 1 July 2023
no_vtf is an open source alternative to VTF2TGA. Unlike its first-party counterpart, it also supports converting VTFs to PNG, TIFF, and EXR, and can also decompress compressed HDR skybox textures.

Help text
Template:Permission Help from no_vtf run without an input file:
See Also
External Links
|