Dahie / DDS-Utils

Java utilities for cross-platform DirectDrawSurface texture management

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dropps: White alpha with BMP32

Dahie opened this issue · comments

Converting a BMP32 with 32bit per pixel and an alpha channel doesn't recognise the alpha channel and results in a dds with white alpha.

This is a combination of issues:

  1. Java2D seems to have a problem BMP32. It should contain 32bit per pixel, yet Java reads it only with 24bits, thereby dismissing the alpha channel.
  2. Photoshop has a strange way of saving alphas. Alphas within the image composition are saved in the file. If the alpha is created as an extra channel, Photoshop doesn't save it in the file. So Dropps can't find it.
  3. I added TGA support to add a file format where the handling of Alpha-formats is a bit more defined in Photoshop.

So my advise is to save your texture as TGA and drop the TGA in Dropps. The resulting DDS will be fine.