Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Make a DDS Image for Textures and Sprites

· 5 min read · Home Tech

In this article
  1. DDS File Appears Correctly in Game Engine
  2. Alpha Transparency Fails in DXT1 Mode
  3. Image Sizes Must Be Powers of Two
  4. DXT1 vs DXT5: Choose Based on Transparency
  5. Mipmaps Improve Performance at Distance
  6. DDS Files Work in Most Game Engines
  7. Transparency Edges Appear Jagged
  8. DDS Export Option Missing in Software
  9. File Is Larger Than Expected
  10. Color Shifts After Export
  11. Alpha Channel Was Lost
  12. DDS Image Fails to Load in Engine
  13. Repeated Edges Cause Seams

A DDS image is ready in under 10 minutes using image editing software. Success means a compressed texture file that loads quickly in games or 3D applications. Start with a PNG, JPG, or BMP file sized to a power of two (e.g., 256x256, 512x512).

  1. Open your source image in GIMP, Photoshop, or another editor that supports DDS export.
  2. Resize the canvas to a power-of-two dimension: 128x128, 256x256, 512x512, 1024x1024, or 2048x2048.
  3. Flatten layers if your image has transparency or multiple layers.
  4. Go to File > Export As, and name the file with a .dds extension (e.g., texture.dds).
  5. In the export dialog, select DDS as the format and click Export.
  6. In the DDS options panel, choose DXT1 for opaque images or DXT5 for images with alpha transparency.
  7. Check 'Generate Mipmaps' if the texture will be used at varying distances in a 3D scene.
  8. Click Save to create the final DDS file.

DDS File Appears Correctly in Game Engine

You know it worked when the texture loads without errors in Unity, Unreal Engine, or another 3D platform. The image displays with correct colors and transparency, and performance improves due to compression. Mipmaps appear sharp at different viewing distances if enabled.

Alpha Transparency Fails in DXT1 Mode

DXT1 does not support partial transparency; it only allows fully opaque or fully transparent pixels. If your image has gradients or semi-transparent areas, use DXT5 instead. Switching to DXT5 preserves smooth alpha edges and avoids hard cutoffs.

Image Sizes Must Be Powers of Two

Game engines require texture dimensions to be powers of two for efficient GPU processing. Common sizes include:

Width x HeightUse Case
128x128Small icons, sprites
256x256UI elements, small textures
512x512Medium textures, decals
1024x1024Large surfaces, environment textures
2048x2048High-detail models, terrain

If your image is 300x300, resize it to 512x512 or 256x256. Cropping or padding may be needed. Use Image > Canvas Size in GIMP or Image > Image Size in Photoshop to adjust.

DXT1 vs DXT5: Choose Based on Transparency

DXT1 compresses opaque textures efficiently and reduces file size by about 8:1 compared to 24-bit RGB. Use it for solid-color textures like brick, wood, or metal with no transparency.

DXT5 adds support for 8-bit alpha channels and is ideal for textures with soft edges, logos, or particle effects. It results in larger files than DXT1 but maintains visual quality for transparent layers.

If your image has no alpha channel, DXT1 is safer and faster. If you see black or white fringes around transparent areas, you likely used DXT1 instead of DXT5.

Mipmaps Improve Performance at Distance

Mipmaps are pre-scaled versions of your texture generated at export. They allow the GPU to use smaller versions when the object is far away, reducing aliasing and improving rendering speed.

Enable 'Generate Mipmaps' in the DDS export settings if the texture appears in a 3D environment. Disable it for UI textures or 2D sprites that always display at full size.

Mipmaps increase file size slightly—about 33% more than a single image—but the performance gain outweighs the cost in 3D scenes.

DDS Files Work in Most Game Engines

Unity, Unreal Engine, Godot, and CryEngine all support DDS textures. Unity imports .dds files directly if the plugin is enabled. Unreal Engine recognizes DXT-compressed textures and uses them without conversion.

Some engines auto-convert other formats to DDS at build time, but providing DDS files upfront reduces load time and ensures control over compression quality.

Transparency Edges Appear Jagged

Jagged edges occur when alpha blending is not set correctly in the shader or when DXT5 compression artifacts are visible. To fix, ensure the material uses alpha blending, not alpha testing, in the engine.

In Photoshop, use Smart Sharpen or reduce noise before export. In GIMP, apply a slight Gaussian blur (Radius 0.5) to soft edges before saving as DDS to minimize compression banding.

DDS Export Option Missing in Software

If your program does not show DDS as an export option, install a plugin. GIMP requires the DDS plugin (gimp-dds) from its official repository. Photoshop users can install NVIDIA’s Texture Tools or Adobe’s DXT plugin.

After installation, restart the program. The DDS format should appear in File > Export As or Save As dialog boxes. Menu labels may vary by version, but the option will be under 'Export' or 'Save As'.

File Is Larger Than Expected

DDS files with mipmaps or DXT5 compression are larger than DXT1 without mipmaps. A 512x512 DXT1 file is about 128 KB; DXT5 with mipmaps is about 340 KB.

If file size is critical, disable mipmaps or crop the image to the smallest necessary size. Avoid unnecessary high resolutions—using 2048x2048 for a 64x64 icon wastes memory.

Color Shifts After Export

DDS compression can alter colors slightly, especially in gradients. To prevent this, work in 8-bit per channel RGB mode. Avoid 16-bit or CMYK color modes, which may not export correctly.

Before export, flatten all layers and merge adjustments. Use a color checkerboard background to verify transparency and color accuracy. If colors still shift, apply a slight color correction layer before saving.

Alpha Channel Was Lost

This happens if the source image had an alpha layer but it was not preserved during export. In GIMP, ensure 'Save Alpha Channel' is checked in the DDS options. In Photoshop, confirm the file has an alpha channel in the Channels panel before export.

If the alpha channel is missing, undo and re-flatten only if necessary. Keep transparency intact until the final export step. Use 'Export As' instead of 'Save As' in GIMP to preserve layer options.

DDS Image Fails to Load in Engine

Check that the engine supports the chosen DXT format. Older engines may not support DXT5 or sRGB flags. Try re-exporting with DXT1 and no mipmaps as a test.

Verify the file path is correct and the file is not corrupted. Open the DDS in a tool like DirectX Texture Tool (Intel) or NVIDIA's NVTT to inspect its contents. If the file opens there, the issue is likely in the engine’s import settings.

Repeated Edges Cause Seams

If the texture is meant to tile, ensure edges match seamlessly before export. Use Filters > Map > Tile in GIMP or Offset filter in Photoshop to detect edge mismatches.

Apply a small blur or clone stamp along borders to blend them. Save and preview in the engine. Seams often appear only when the texture repeats across a large surface.