Template:Archived page history/Xwad/en: Difference between revisions
Jump to navigation
Jump to search
Note:Most first-party games don't have a copy of this tool; the version of the tool found in the old "SourceSDK" depot can still be used for any branch (all 4 included versions of xwad.exe are the same).
Bug:Xwad always outputs pixels that used index 255 as transparent, even if they aren't flagged as such[Elaborate?]. Only textures that are flagged as transparent will have the transparent pixels modified to work better with texture filtering.
Workaround:Convert the output folder(s) to BGRA8888 using
VTFEdit, then use
VIDE's VTF converter to convert the textures that should be opaque to BGR565 or BGR888.
[todo tested in ?]
SirYodaJedi (talk | contribs) (update todo; I'll try to add this info later today) |
m (Reverted edits by SirYodaJedi (talk) to last revision by Thunder4ik) Tag: Rollback |
||
Line 3: | Line 3: | ||
A copy of this [[command-line]] tool can be found in following folder: {{file|common\SourceSDK\bin\<nowiki><</nowiki>branchname<nowiki>></nowiki>\bin\xwad|exe}}. This tool can convert [[WAD]], [[Wikipedia:Windows bitmap|BMP]], and [[SPR]] files to [[TGA]] and accompanied [[VMT]] files, as well as call [[vtex]] to generate associated [[VTF]] files. | A copy of this [[command-line]] tool can be found in following folder: {{file|common\SourceSDK\bin\<nowiki><</nowiki>branchname<nowiki>></nowiki>\bin\xwad|exe}}. This tool can convert [[WAD]], [[Wikipedia:Windows bitmap|BMP]], and [[SPR]] files to [[TGA]] and accompanied [[VMT]] files, as well as call [[vtex]] to generate associated [[VTF]] files. | ||
After running XWAD and converting the textures | After running XWAD and converting the textures toVTF, use the [[Convert WAD to VMT...]] button in {{hammer4|4.1}} File menu {{not|{{hammer++}}}}. | ||
== Caveats == | == Caveats == | ||
{{bug|Xwad always outputs pixels that used index 255 as transparent, even if they aren't flagged as such{{elaborate}}. Only textures that are flagged as transparent will have the transparent pixels [[$translucent#Filtering_Borders|modified to work better with texture filtering]].{{workaround|Convert the output folder(s) to BGRA8888 using {{vtfedit|2}}, then use {{vide|2|addtext='s}} | {{bug|Xwad always outputs pixels that used index 255 as transparent, even if they aren't flagged as such{{elaborate}}. Only textures that are flagged as transparent will have the transparent pixels [[$translucent#Filtering_Borders|modified to work better with texture filtering]].{{workaround|Convert the output folder(s) to BGRA8888 using {{vtfedit|2}}, then use {{vide|2|addtext='s}} VTF converter to convert the textures that should be opaque to BGR565 or BGR888. | ||
}} }} | }} }} | ||
== Readme == | == Readme == | ||
Help from xwad run without any parameters | Help from xwad run without any parameters: | ||
{{codeblock|<nowiki> | {{codeblock|<nowiki> | ||
[-AutoDir] | [-AutoDir] | ||
Line 80: | Line 41: | ||
them in the root materials directory. | them in the root materials directory. | ||
-sprfile <wildcard> | -sprfile <wildcard> | ||
Acts like -bmpfile, but ports a sprite. | Acts like -bmpfile, but ports a {{sprite}}. | ||
-Transparent (BMP files only) | -Transparent (BMP files only) | ||
If this is set, then it will treat palette index 255 as a | If this is set, then it will treat palette index 255 as a |
Revision as of 20:38, 28 June 2024

A copy of this command-line tool can be found in following folder: common\SourceSDK\bin\<branchname>\bin\xwad.exe
. This tool can convert WAD, BMP, and SPR files to TGA and accompanied VMT files, as well as call vtex to generate associated VTF files.
After running XWAD and converting the textures toVTF, use the Convert WAD to VMT... button in Hammer 4.x File menu (not in
).
Caveats




Readme
Help from xwad run without any parameters: