Hey, thanks for the speedy response. It does seem to be an issue of editors. I took the images into gimp and scaled them by 2x and then by .5x and that solved both issues though I'm still not entirely sure what was going on before. I'll look into that post you linked if I ever have issues like this again.
Thanks! On Jan 18, 11:10 pm, claudio canepa <[email protected]> wrote: > On Mon, Jan 18, 2010 at 5:51 PM, Peter Lu <[email protected]> wrote: > > Hey, I'm fairly new to pyglet and opengl, less so to python. > > > I'm trying to load a 320x240 png with transparency and stretching it > > to fill the entire screen in full screen mode. I'm encountering two > > issues. When transparency is working properly, I get a nice clean un > > anti-aliased edge when I don't scale the image. When I do scale the > > image, there is this ugly white line between the transparent and > > opaque parts of my image. Considering most of the screen is black, > > this white line is VERY noticeable and absolutely must be fixed. The > > image I am trying to draw has no anti-aliasing to speak of and only > > has two colors in it, black and transparent. > > > Less importantly, the gnome image viewer clearly shows that all my > > pngs have transparencies in them but curiously enough, only one of 9 > > images gets drawn with transparency. All my images are exported > > simultaneously from graphicsgale. Right before drawing each time I am > > calling: > > > glEnable(GL_BLEND) > > glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) > > > I did this as a test without any of my other code running to eliminate > > any other possible issues and I have the same problem. Transparency > > only works properly on one of the 8 images so it must be something > > with the files but I'm hoping there is some gl setting that I don't > > know about that accounts for different alpha settings. > > > Despite these issues, I'm loving pyglet. Any help would be much > > appreciated. > > > -- > > Have a look to this great post about alpha and blending > modes:http://thread.gmane.org/gmane.comp.python.pyglet.user/3322/focus=3333 > > also, some editors dont output correct alpha RGBA images. Have you tried to > open the images in other editors ? > > -- > claxo
-- 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.
