Преобразувател DDS и TGA
Отворете DDS и TGA текстури с тяхната прозрачност, превърнете ги в PNG или създадете нови файлове за DDS (DXT1, DXT5, RGBA) и TGA за игри и модове.
Работи във вашия браузър. Файловете ви никога не напускат устройството. Вижте как да го проверите
…
Как се прави
- 1Добавяне на текстури
Свали DDS, TGA или обикновени снимки.
- 2Проверете формата
Прочетете формата и броя на мипите в предварителното представяне.
- 3Изберете изхода
Поставете формата на DDS, mipmaps и TGA опции.
- 4Изберете файлове
Отбележете текстурите за конвертиране.
- 5Запази
Изтеглете PNG, DDS или TGA файлове, няколко като ZIP.
За този инструмент
Games and 3D software store textures in formats that ordinary image viewers ignore. DDS (DirectDraw Surface) keeps textures in GPU-friendly compressed blocks with mipmaps; TGA (Targa) is a simple format with alpha that many engines and modding tools still expect. This converter decodes and encodes both in your browser, so modders, artists and students can inspect and produce textures without installing plug-ins.
Reading DDS
Supported formats are DXT1 (BC1), DXT3 (BC2), DXT5 (BC3), the same formats in the newer DX10 header, and uncompressed RGB and RGBA with any bit masks. The first (largest) mipmap level is shown, together with the format and the number of mip levels stored. BC7 and floating-point formats are not decoded.
Reading TGA
Uncompressed and RLE-compressed TGA files with 8, 15, 16, 24 or 32 bits per pixel, greyscale, true colour and colour-mapped, in any of the four origin orientations.
Making DDS
Choose DXT5 for textures with smooth transparency, DXT1 for opaque or cut-out textures at the smallest size, or uncompressed RGBA for maximum quality. Mipmaps, the chain of half-size copies that GPUs use for distant surfaces, can be generated automatically. Many engines require power-of-two sizes for compressed textures, so the tool can resize to the nearest power of two.
Making TGA
TGA files are written with an alpha channel or without, compressed with run-length encoding or uncompressed, top-left origin.
The compression
DXT formats store each 4 x 4 pixel block with two colours and a 2-bit index per pixel; DXT5 adds an 8-step alpha ramp. The built-in encoder chooses the block's colours along its main colour axis, which gives good results for typical textures; specialist encoders can be slightly sharper.
Uses
Extracting and editing textures for game mods, converting textures for 3D printing previews or portfolio images, and preparing assets for engines and older tools.
Tips for modders
Keep the original texture's size and format when replacing game files; engines can crash on unexpected formats. Check whether the game expects mipmaps, and keep a backup of every file you replace.
Normal maps should usually stay uncompressed or use formats designed for them, because DXT compression can add visible banding to lighting.
Limits
Cube maps and texture arrays show only the first face. Only the first mip level is shown. Respect game licences when extracting assets. All conversion is local.
Решен пример
DDS с нормална текстура 1024 x 1024 DXT5 от игрален мод се отваря с 11 нива mip; редактиран PNG със същия размер се записва като DXT5 с генерирани mipmaps, файл с 1,4 MB и като RLE TGA за по-стария инструмент.
Накратко
- Категория: Изображения
- Работи в браузъра, без регистрация, без качване.
- Въведената от вас информация остава на устройството ви.
- Налично на английски.
- Съдържанието е прегледано последно:
- Официален източник: Microsoft, Programming Guide for DDS (DirectDraw Surface)
Често задавани въпроси
Кои DDS формати се поддържат?
DXT1, DXT3, DXT5 и некомпресирани RGB(A), включително заглавието DX10. BC7 и плаващите формати не са.
Какво са мипмапите?
По-малки копия на текстура (половина, четвърт и т.н.), която графичните карти използват за далечни повърхности, за да избегнат блестящи.
DXT1 или DXT5?
DXT1 за непрозрачна или твърда прозрачност, DXT5 когато алфа каналът има гладки градиенти.
Трябва ли да има две размери?
Много двигатели предпочитат или изискват тях за компресирани текстури.
Мога ли да преобразувам TGA в PNG?
Отвори TGA и запази като PNG за да поддържаш прозрачност.
Качвали ли са се файлове?
Декодирането и кодирането се изпълняват в браузъра.
