DDS和TGA转换器
打开透明的DDS和TGA纹理,将它们转换为PNG或创建新的DDS (DXT1,DXT5,RGBA) 和TGA文件用于游戏和修改.
在您的浏览器中运行。您的文件不会离开设备。 了解如何验证
…
使用方法
- 1添加纹理
放下DDS,TGA或普通照片.
- 2检查格式
阅读格式和MIP在预览下.
- 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.
计算示例
从游戏模块中打开的1024 x 1024 DXT5正常纹理DDS有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和浮动格式不包含.
什么是MIP?
图形卡使用的较小的复制品 (半,四分之一等) 用于远处表面以避免闪 ⁇ .
它们是DXT1或DXT5?
对于不透明或硬边的透明度,DXT1,当α通道有平滑梯度时,DXT5.
质地需要两种尺寸吗?
许多引擎更喜欢或需要它们用于压缩纹理.
可以把TGA转换成PNG吗?
是的.打开TGA并保存为PNG以保持透明度.
文件是否上传?
没有,解码和编码在你的浏览器中运行.
