Re: Alpha-channeled images fade to black?
Re: Alpha-channeled images fade to black?
- Subject: Re: Alpha-channeled images fade to black?
- From: Jonathan del Strother <email@hidden>
- Date: Fri, 19 Mar 2004 18:49:06 +0000
On 18 Mar 2004, at 23:10, Shaun Wexler wrote:
On Mar 18, 2004, at 12:02 PM, Jonathan del Strother wrote:
Hi,
I'm loading .tiff files through NSImage into an OpenGL texture.
Where the texture is semi-transparent, it's much darker than the
opaque areas, as if the image color is getting multiplied by the
color of the alpha channel, in addition to the alpha channel
providing the transparency.
Anyone know if this is a Photoshop, NSImage, or OpenGL problem? How
can I fix it?
Unpremultiply the pixels before creating your texture from them. An
non-optimized method might be:
Ewww - I was afraid that might be the answer. Thanks anyway - I'll try
it out later.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.