DDS and TGA Textures Explained for Modders and 3D Artists
What DDS and TGA files are, how DXT block compression and mipmaps work, and how to convert game textures to PNG and back without breaking a mod.

DDS and TGA Textures Explained for Modders and 3D Artists
If you mod games, make 3D models or study game assets, you will meet two formats that ordinary image viewers ignore: DDS and TGA. Both are designed for graphics engines rather than photo albums. The DDS and TGA Converter opens and creates them in your browser.
TGA: simple and dependable
TGA, or Truevision Targa, dates from the 1980s. It stores pixels plainly, optionally with simple run-length compression, and supports an 8-bit alpha channel. Because it is easy to read and write, many engines, modding tools and 3D programs still accept it. Its weaknesses are large files and no mipmaps.
DDS: built for graphics cards
DDS, DirectDraw Surface, was introduced by Microsoft for DirectX. It stores textures in the same compressed form graphics cards use in memory, so they can be loaded without decoding. A DDS file can also hold mipmaps, cube maps and texture arrays.
How DXT block compression works
DXT formats, also called BC1 to BC3, divide the texture into 4 x 4 pixel blocks:
- DXT1 (BC1) stores two colours per block and a 2-bit index for each pixel, choosing among those two colours and two blends between them. It uses half a byte per pixel and supports 1-bit transparency.
- DXT3 (BC2) adds 4 bits of explicit alpha per pixel.
- DXT5 (BC3) adds an alpha ramp of eight levels per block, ideal for smooth transparency.
Because each block has only four colours, sharp colour changes inside a block can show artefacts. Normal maps and UI elements sometimes look better uncompressed or in newer formats like BC5 and BC7.
Why mipmaps matter
When a textured surface is far away, the GPU shows it with only a few pixels. Sampling a large texture directly makes it shimmer. Mipmaps are pre-computed smaller versions, each half the size of the previous one, down to 1 x 1. The GPU picks the right size for the distance. Most engines expect compressed textures to include mipmaps, and many require power-of-two dimensions such as 512 or 1024.
A safe workflow for texture mods
- Open the original DDS and note its format, size and mip count.
- Save it as PNG and edit the PNG.
- Convert back to the same DDS format, with mipmaps if the original had them.
- Keep the same dimensions unless you know the engine accepts others.
- Back up the original game file before replacing it.
When to use TGA instead
Some older engines and tools want TGA for textures, decals or interface graphics. Choose RLE compression to save space, and include the alpha channel if the texture has transparency.
Respecting licences
Game assets are copyrighted. Extracting textures for personal mods is common, but redistributing them may break the game's licence or the developer's rules for mods.
Quick answers
Can I open BC7 textures? Not yet; BC7 and floating-point formats are not decoded.
Why does my texture look blocky? DXT compression works in 4 x 4 blocks; try DXT5 or uncompressed RGBA for detailed textures.
A worked example
A modder wants to recolour a vehicle in a racing game. The original texture is a 2048 x 2048 DXT5 DDS with 12 mip levels. It is opened, saved as PNG, recoloured in an image editor, then saved back as DXT5 with mipmaps at the same size. The new file is the same size as the original, around 5.6 MB, and loads in the game without problems.
Limits
Cube maps and arrays show only the first face, and only the largest mip level is displayed. Everything runs locally.



