How do you do pre-multiplied alpha ?
I understood the concept, but thought that png does not support it.


On 28 fév, 13:53, Tristam MacDonald <[email protected]> wrote:
> 2012/2/28 Михаил Сидоров <[email protected]>
>
> > Hello everyone. I've noticed that there is a strange outline appears when
> > drawing a rotated sprite with RGBA texture. Here is a sample:
> >http://omploader.org/vY3cwdwand here is what I see:
> >http://omploader.org/vY3cxMQ. If you look closer you can see some dark
> > pixels despite the image is a white circle on a transparent background. Is
> > this a pyglet bug or one of OpenGL subtle things or something else? Is
> > there any way to avoid it?
>
> Your images don't load, but typically when you see a dark fringe on an
> alpha blended texture, it is due to transparent pixels being the wrong
> colour (i.e. black), and thus blending incorrectly where partially
> transparent.
>
> The best fix for this is to use pre-multiplied alpha for your transparent
> images.
>
> --
> Tristam MacDonald
> System Administrator, Suffolk University Math & CS 
> Departmenthttp://swiftcoder.wordpress.com/

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to