• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Alpha-channeled images fade to black?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Alpha-channeled images fade to black? (From: Jonathan del Strother <email@hidden>)
 >Re: Alpha-channeled images fade to black? (From: Shaun Wexler <email@hidden>)

  • Prev by Date: Re: NSView -addSubview tutorial or example?
  • Next by Date: Cannot get indexOfObject to work
  • Previous by thread: Re: Alpha-channeled images fade to black?
  • Next by thread: XML property list: a quick question
  • Index(es):
    • Date
    • Thread