glEnable(GL_BLEND) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) is the correct way and has only to be called once. You don't have to move them into your draw function. But check your glClearColor. In my case the alpha was set to 0 which caused the white appearance of the transparent parts.
Am Donnerstag, 16. Februar 2012 23:56:12 UTC+1 schrieb Paul: > > when i blit an image w/ alpha transparency, the transparent parts show > white > and i already tried this code: > > glEnable(GL_BLEND) > glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) > > but it didn't work...any help? thanks a lot -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyglet-users/-/3PsJDTRwLKoJ. 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.
