Thanks Tat, workaround now merged and and submitted to svn/trunk.

On Thu, Dec 3, 2009 at 12:23 PM, Tatsuhiro Nishioka
<[email protected]> wrote:
> Hi there,
>
> On Nov 28, 2009, at 3:36 PM, E. Wing wrote (on osg-users list):
>
>> I'm betting you hit the same premultiplied alpha problem/limitation
>> reported in SDL_image.
>> http://bugzilla.libsdl.org/show_bug.cgi?id=868
>
> Thanks for the info.
> And yes, I hit this one.
>
>> The workaround/solution was to add a block of code at the end of the
>> loader to un-premultiply the alpha (now in the codebase).
>
> Applying the code brightens the semi-transparent portion, but the black edges 
> are still there (same on both osgviewer and FlightGear).
> Therefore I believe that the alpha channel is completely ignored (on png, 
> gif, tiff, etc...). I tweaked and tweaked and finally got a workaround.
>
> Please commit the enclosed file to fix these issues.
>
> My workaround is a bit tricky (and some lines are even weird for me), but it 
> resolves the black edges.
> These workarounds also work on GIF, TIFF, TGA, and PSD as long as I've tested 
> so far.
>
> Please read this for more info on this issue:
> http://macflightgear.sourceforge.net/home/development-notes/devnote-dec-02-2009
> http://macflightgear.sourceforge.net/home/development-notes/devnote-dec-03-2009
>
> I'm very happy if some of you guys find a better means of solving the black 
> edges.
>
>
>> If that is indeed the problem and the workaround works, I recommend
>> you submit the fix for osgdb_ImageIO. Also, please file a bug
>> report/feature request with Apple. The more reports they get, the
>> better.
>
> Sure I wll.
>
> Best,
>
> Tat
>
>
>
>
> _______________________________________________
> osg-submissions mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to