On Dec 7, 2007 1:44 PM, brian.grogan.jr <[EMAIL PROTECTED]> wrote:
> I have seen a number of other posts in pyglet-users asking about alpha
> transparency and rotation, and I think it's not really enough to tell
> them to use the OpenGL functions to get the effects. These basic
> effects should be built into the high-level API. I strongly feel that
> it should not be necessary to "drop down" to OpenGL for these two very
> common use cases. The mental context switch from nice pythonic Pyglet
> to C-based OpenGL is jarring and unnecessary.

My transparent .png's work great with pyglet.image.load() and img.blit()

I did have to include the following two lines for the transparency to
start working (I noticed them in one of the pyglet tutorial code
snippets):

glEnable(GL_BLEND)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)

Then, after that, all my .png images showed their transparency properly.

~ Nathan

--~--~---------~--~----~------------~-------~--~----~
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