No, that's for an accumulation buffer. I believe it's just alpha_size, but I don't have the docs handy.
Alex. On 14/05/2009, at 11:05 PM, sevenseeker <[email protected]> wrote: > > Howdy Alex, > question for you > is it 'accum_alpha_size' I use as the alpha component for the config > of the window? > > thx, > Jason > > On May 14, 3:41 am, Alex Holkner <[email protected]> wrote: >> Make sure you request an alpha component in the colour buffer when >> you >> create the window. See pyglet.gl.Config. >> >> Alex. >> >> On 14/05/2009, at 11:49 AM, sevenseeker <[email protected]> wrote: >> >> >> >>> I have an engine that processes special effects on images including >>> merging alpha images together. I developed this on a mac and it >>> works >>> great. >> >>> When I deploy it to a headless EC2 Ubuntu 9.04 machine it does not >>> honor the alpha channel when I save. The ubuntu machine uses Mesa >>> for >>> opengl libs and Xvfb. >> >>> Here is a snippet of what I am doing: >>> pyglet.gl.glEnable(pyglet.gl.GL_TEXTURE_2D) >>> pyglet.gl.glEnable(pyglet.gl.GL_BLEND) >>> pyglet.gl.glBlendFunc(pyglet.gl.GL_SRC_ALPHA, >>> pyglet.gl.GL_ONE_MINUS_SRC_ALPHA) >> >>> ... >> >>> pyglet.image.get_buffer_manager().get_color_buffer().save >>> (self.full_outfile_path) >> >>> </snip> >> >>> For testing, all I am doing is creating text on a transparent >>> background (using pyglet.image.Texture.create(width, height)). On >>> my >>> mac the PNG is saved with alpha intact, but on the Ubuntu box it is >>> rendered as a solid black background. >> >>> I am reading an OpenGL book but nothing I have tried so far has >>> worked. >> >>> Any hints? >> >>> Thanks, >>> Jason > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
