Open GoogleCodeExporter opened 8 years ago
Sorry for the extremely long delay in my reply.
It sounds like GIMP is multiplying the RGB values with alpha when saving a TGA
image. My advice would be to use PNG images. Saving height to alpha is a good
way to preserve the original grayscale height source with the normal map in a
single image. Altering this data is less than ideal in my opinion.
Original comment by ski...@gmail.com
on 14 Jan 2011 at 8:52
Nope, the saved TGAs still have separate and not premultiplied alpha. Also,
when the alpha value is as low as 1 (of 255), RGB is still fully preserved.
The issue persists when using the PNG format, even when enabling (anyway
enabled by default) the option "Save color values of transparent pixels". In
fact, I found out that the issue happens even before saving - in the channel
view, the pixels with zero alpha immediately appear black in the preview, and
when using Colors/Levels... to map the alpha channel's range from 0..255 to
e.g. 128..255, one can clearly see that the color values already are lost the
very moment your plugin finished.
I agree to that. However, this combination of issues basically means that
gimp-normalmap is now incompatible with current GIMP. The only way to generate
a proper normalmap for the DarkPlaces engine (which also requires height in the
alpha channel for purposes of relief mapping) with GIMP has gotten much more
complex (as either the input height values have to be trimmed to 1..255, or the
output has to be merged with the heightmap using a separate tool) thanks to
this issue, although I do think it is an issue with GIMP. However, from GIMP's
perspective, they have every right to not store alpha-zero gpixels in the
output.
Original comment by divVer...@gmail.com
on 14 Jan 2011 at 10:15
Ok. Reopening the issue, and will find a workable solution.
Original comment by ski...@gmail.com
on 14 Jan 2011 at 10:15
Original issue reported on code.google.com by
divVer...@gmail.com
on 20 Aug 2010 at 2:30