WTD2TXD









































-
Password for the archive: libertycity
-
depositfiles.comDownload
WTD2TXD, - a converter for texture archives of the PC versions of GTA IV and Max Payne 3 into the archive format of the PC version of GTA SA. You can convert already created WTD archives from GTA IV and Max Payne 3 archives, or create new ones using special programs (for example, OpenIV). Note that you have much more options when creating a texture archive in OpenIV than in TXD Workshop.
Building
Place the .exe file in the folder with the .wtd archives and run it. The code will scan all files in the folder as well as files in subfolders. The created .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 were renamed (due to the size limitation of the texture name in RenderWare), as well as textures that were skipped (if the skip function is enabled).
Settings
There is an ini file where you can adjust some parameters.
"Target"
Game version. Only GTASA is supported.
Filtering
Filtering is the process used to determine how individual mip levels of textures are selected and displayed.
FilterMode is the mode for textures without mipmaps. Available values:
rwFILTERNEAREST
rwFILTERLINEAR
FilterMipMode is the mode for textures with mipmaps. Available values:
rwFILTERMIPNEAREST
rwFILTERMIPLINEAR
rwFILTERLINEARMIPNEAREST
rwFILTERLINEARMIPLINEAR
For more details on these parameters, refer to the RenderWare Graphics documentation.
Anisotropic filtering
Anisotropic filtering is a method for improving the image quality of textures on surfaces that are significantly tilted relative to the camera [Wikipedia].
[image not available]
The value you should set is the maximum level of AF. You can check the maximum value supported by your system using 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
Also, if you set the graphics level in the game to 'high' (or higher) in the options, all textures that use AF will use the maximum level of AF available on your system.
Texture addressing
Addressing modes determine the method used to identify a specific texel of a texture based on texture coordinates. Values are configured along two axes - horizontal (u) and vertical (v).
Available values:
rwTEXTUREADDRESSMIRROR
rwTEXTUREADDRESSCLAMP
rwTEXTUREADDRESSBORDER
For more details on these parameters, refer to the RenderWare Graphics documentation.
Skip options
During building, you can skip normal and specular maps (for example, if you are converting WTD directly from GTA IV/Max Payne 3. See the options in the SKIPPING OPTIONS section of the ini file.
TXD Workshop
TXD Workshop is an outdated program and it contains many bugs. It does not "know" how to properly recognize texture formats such as DXT5, A8R8G8B8, and X8R8G8B8. So do not panic if you see incorrect images there. Check your TXD in the game, it should work.
OpenIV
I recommend using OpenIV for creating WTD files. In this program, you can generate mip levels for images, adjust the texture format, and import DDS textures with already generated mip levels and configured texture format.
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-текстуры с уже сгенерированными мип-урованями и настроенным форматом текстуры.