turlt3 / gimp-dds

Automatically exported from code.google.com/p/gimp-dds
Other
0 stars 0 forks source link

Can not save RGB values when alpha is 0 #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. Create an image with non-zero RGB values
2. Set alpha in some or all areas to zero (fully transparent)
3. Save DDS (RGBA8 format for example, I'm using a volume texture)

Instead of keeping the RGBA values, RGB is set to 0 (black) where A = 0.

I'm using Gimp 2.6.12 Ubuntu 12 64bit.

Is there a fix or workaround?  This has been driving me bananas.

Original issue reported on code.google.com by r...@digitaliseducation.com on 21 Nov 2012 at 9:29

GoogleCodeExporter commented 8 years ago
This seems to be the same problem illustrated in issue 12.  GIMP seems to 
produce pre-multiplied alpha pixels when fetching the pixels for a region.  I 
am currently looking for a work-around.

Original comment by ski...@gmail.com on 28 Nov 2012 at 11:42