WTD2TXD
![](/templates/main/images/noavatar.png)
![](/uploads/fotos/lc_1685689775_m.jpg?1685183832)
![](/uploads/fotos/foto_349750.png?9)
![](/uploads/fotos/foto_33147.jpg)
![](/uploads/fotos/lc_1730058651_m.jpg?1729431912)
![](/uploads/fotos/foto_311279.png?901)
![](/uploads/fotos/foto_13233.jpg)
![](/uploads/fotos/foto_204724.jpg)
![](/uploads/fotos/foto_39217.png)
![](/uploads/fotos/foto_312959.jpg)
![](/uploads/fotos/foto_48185.jpg?270)
![](/uploads/fotos/foto_20543.jpg)
![](/uploads/fotos/foto_218849.jpg?689)
![](/uploads/fotos/foto_190928.jpg?933)
![](/uploads/fotos/foto_213494.jpg?234)
![](/uploads/fotos/foto_36819.png)
![](/uploads/fotos/foto_28835.gif?171)
![](/uploads/fotos/foto_54701.jpg)
![](/uploads/fotos/foto_165990.jpg)
![](/uploads/fotos/foto_40500.jpg?31)
![](/uploads/fotos/foto_8860.jpg)
![](/uploads/fotos/foto_105023.png)
![](/uploads/fotos/foto_15563.jpg)
![](/uploads/fotos/foto_52093.gif?60)
![](/uploads/fotos/foto_156654.jpg)
![](/uploads/fotos/foto_10775.png)
![](/uploads/fotos/foto_2743.png)
![](/uploads/fotos/foto_57035.gif)
![](/uploads/fotos/foto_21587.png)
![](/uploads/fotos/foto_21365.png?99)
![](/uploads/fotos/foto_23844.png?168)
![](/uploads/fotos/foto_40848.png?708)
![](/uploads/fotos/foto_140920.png?254)
![](/uploads/fotos/foto_62284.gif?762)
-
1396572114_wtd2txd_0.zipDownload (0.10 MB)Password for the archive: libertycity
-
depositfiles.comDownloadPassword for the archive: libertycity
WTD2TXD, - Converter of GTA IV and Max Payne 3 PC texture archives to GTA SA PC version archive format. You can convert already created WTD archives from GTAIV and Max Payne 3 archives, or create new ones using special programs (for example, OpenIV). Note that you have much more opportunities when creating a texture archive in the same OpenIV than in the same TXD Workshop.
Building
Place the .exe file in the .wtd archives folder and run it. The code will scan all files in a folder as well as files in subfolders. The generated .txd files will have the same names as the corresponding .wtd files.
Log file
After building, a log file will be created. This file will show you which textures have been renamed (due to texture name size limitation in RenderWare) as well as the textures that have been skipped (if the skip feature is enabled).
Settings
There is an ini file where you can set some options.
"Target"
Game version. Only GTASA is supported.
Filtering
FilterMode is the mode for textures without mipmaps. Available values:
rwFILTERNEAREST
rwFILTERLINEAR
FilterMipMode is the mode for mipmapped textures. Available values:
rwFILTERMIPNEAREST
rwFILTERMIPLINEAR
rwFILTERLINEARMIPNEAREST
rwFILTERLINEARMIPLINEAR
You can learn more about these parameters in the RenderWare Graphics documentation.
Anisotropic filtering
Anisotropic filtering is a technique for improving the image quality of textures on surfaces that are highly tilted relative to the camera [Wikipedia].
The value you should set is the maximum AF level. You can check the maximum value supported on your system with this CLEO script:
0000:
while true
wait 0
0AA7: call_function 0x748F20 num_params 0 pop 0 0@
0B10: 0@ = 0@ AND 0xFF
0AD1: show_formatted_text_highpriority "Max supported anisotropy: %d" time 100 0@
end
Texture address
Addressing modes determine the method used to locate a particular texture texel from texture coordinates. Values are adjusted along two axes - horizontal (u) and vertical (v).
Available values:
rwTEXTUREADDRESSMIRROR
rwTEXTUREADDRESSCLAMP
rwTEXTUREADDRESSBORDER
You can learn more about these parameters in the RenderWare Graphics documentation.
Skip options
When building, you can skip the normal and specular maps (if, for example, you are converting WTD directly from GTA IV/Max Payne 3. See the options in the SKIPPING OPTIONS section in the ini file.
TXD Workshop
TXD Workshop is an outdated program and has a lot of bugs. It doesn't "know" how to properly recognize texture formats such as DXT5, A8R8G8B8 and X8R8G8B8. So don't panic if you see wrong images there. Check your TXD in game, it should work
OpenIV
I recommend using OpenIV to create WTD files.
WTD2TXD, - конвертер архивов текстур PC-версий GTA IV и Max Payne 3 в формат архивов PC-версии GTA SA. Вы можете конвертировать уже созданные WTD-архивы из архивов GTAIV и Max Payne 3, либо создать новые с помощью специальных программ (например, OpenIV). Заметьте, что возможностей при создании текстурного архива в том же OpenIV у вас намного больше, чем в том же TXD Workshop.
Построение
Поместите файл .exe в папку с архивами .wtd и запустите его. Код просканирует все файлы в папке а также файлы во вложенных папках. Созданные .txd-файлы будут иметь те же имена, что и соответствующие .wtd-файлы.
Файл лога
После построения будет создан файл лога. Это файл покажет вам, какие текстуры были переименованы (из-за ограничения размера имя текстуры в RenderWare), а также текстуры, которые были пропущены (если функция пропуска включена).
Настройки
Существует ini-файл, где вы можете настроить некоторые параметры.
"Target"
Версия игры. Поддерживается только GTASA.
Фильтрация
Фильтрация это процесс, используемый для определения, каким образом выбираются и отображаются отдельные мип-уровни текстуры.
FilterMode это режим для текстур без мип-карт. Доступные значения:
rwFILTERNEAREST
rwFILTERLINEAR
FilterMipMode это режим для текстур с мип-картами. Доступные значения:
rwFILTERMIPNEAREST
rwFILTERMIPLINEAR
rwFILTERLINEARMIPNEAREST
rwFILTERLINEARMIPLINEAR
Ознакомиться детальнее с данными параметрами можно в документации по RenderWare Graphics.
Анизотропная фильтрация
Анизотропная фильтрация - это метод улучшения качества изображения текстур на поверхностях, сильно наклонённых относительно камеры [Википедия].
[image not available]
Значение, которое вы должны установить это максимальный уровень АФ. Вы можете проверить максимальное значение, которое поддерживается в вашей системе с помощью этого CLEO-скрипта:
0000:
while true
wait 0
0AA7: call_function 0x748F20 num_params 0 pop 0 0@
0B10: 0@ = 0@ AND 0xFF
0AD1: show_formatted_text_highpriority "Max supported anisotropy: %d" time 100 0@
end
Также, если вы установие уровень графики в игре на 'высокий' (или выше) в опциях, все текстуры, которые используют АФ, будут использовать максимальный уровень АФ, который доступный на вашей системе.
Адресация текстуры
Режимы адресации определяют используемый метод для определения конкретного тексела текстуры по текстурным координатам. Значения настраиваются по двум осям - горизонтальной (u) и вертикальной (v).
Доступные значения:
rwTEXTUREADDRESSMIRROR
rwTEXTUREADDRESSCLAMP
rwTEXTUREADDRESSBORDER
Ознакомиться детальнее с данными параметрами можно в документации по RenderWare Graphics.
Опции пропуска
При построении вы можете пропустить карты нормалей и спекуляра (если, например, вы конвертируете WTD непосредственно из GTA IV/Max Payne 3. См. параметры в разделе SKIPPING OPTIONS в ini-файле.
TXD Workshop
TXD Workshop это устаревшая и программа, и она содержит много недоработок. Она не "умеет" правильно распознавать такие форматы текстур, как DXT5, A8R8G8B8 и X8R8G8B8. Так что не паникуйте, если вы видите там неправильные изображения. Проверьте ваш TXD в игре, он должен работать.
OpenIV
Я рекомендую использовать OpenIV для создания WTD-файлов. В этой программе вы можете генерировать мип-уровни для изображений, настроить формат текстуры, а также импортировать DDS-текстуры с уже сгенерированными мип-урованями и настроенным форматом текстуры.
Recommended files
![](https://files.libertycity.net/download/gtasa_tools/thumbs/1272206591_gxtsa1.webp)
Grand Theft Auto GXT Editor
![](https://files.libertycity.net/download/gtasa_creatparameter/thumbs/1275048144_skrin.webp)
GTA San Andreas Weapon Editor by Sadler v. 0.14b
![](https://files.libertycity.net/download/gtasa_missions/thumbs/1294165112_gta_sa-2011-01-05-00-17-07-96.webp)
Undeniable
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/1294563942_silvia_cleo.webp)
Stroboscopes
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/1299341661_screenshot.webp)
Boat shop at GTA San Andreas
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/1307366624_screenshot.webp)
U99 German Submarine
![](https://files.libertycity.net/download/gtasa_parameter/thumbs/1320251476_skreen.webp)
Reconfigured colormod.ini v1.0
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/1323798446_man_car2.webp)
Car model MAN F2000
![](https://files.libertycity.net/download/gtasa_cartext/thumbs/1324402484_screen.webp)
Auto Mod™
![](https://files.libertycity.net/download/gtasa_newskins/thumbs/1326015640_previewsh2011_f0natgta.webp)
Sherlock Holmes
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/2012-07/zit_1685989187_845197.webp)
ZiT
![](https://files.libertycity.net/download/gtasa_missions/thumbs/2012-08/vice-brothers-i-final-part_1685989363_756786.webp)
Vice Brothers I Final Part
![](https://files.libertycity.net/download/gtasa_hats/thumbs/2012-08/john-marstons-ammunition_1685989400_23828.webp)
John Marston's Ammunition
![](https://files.libertycity.net/download/gtasa_fanvideo/thumbs/2012-10/knockout_1685989569_17476.webp)
Knockout
![](https://files.libertycity.net/download/gtasa_scripts/thumbs/2012-11/samoubijjca-na-mostu_1685989791_959413.webp)