quake-cli-tools
quake-cli-tools copied to clipboard
Improve wad texture handling
Fix for issue #37, and actually also #2 (if the user maps their input images to the Quake palette and ensures none of the pixels have fullbright colors if undesired).
For the wad tool:
- Option
-rto skip RGB conversion for images that already are indexed color (obviously they must use the Quake palette). Especially useful to avoid that pixels unexpectedly become fullbright. - Option
-sto use smooth resizing when generating mipmaps. - Option
-Sto use optimal scaling depending on presence of fullbright pixels or not.
Default behavior remains the same, but in most cases it will be recommended to run wad with -rS arguments.
@joshuaskelly Any chance to merge this?
Can the parameters be given full names too? e.g., --no-convert, --smooth-resize, or something?
Can the parameters be given full names too? e.g., --no-convert, --smooth-resize, or something?
-r=--raw-indexed-s=--smooth-mip-S=--smart-mip
Can the parameters be given full names too? e.g., --no-convert, --smooth-resize, or something?
* `-r` = `--raw-indexed` * `-s` = `--smooth-mip` * `-S` = `--smart-mip`
That’s exactly @hemebond's point. Having both -s and -S might be confusing. How about adding the full names as well for clarity?
@jonathanlinat They have been added, these are the new long parameter names that correspond to the short ones (I have also added long parameters for type and quiet).
You are right. I didn't see the commit. Nice addition @DrLex0 🙏🏻