Re: A little help with blending and glx

"Mike C. Fletcher" <[email protected]> Wed, 18 Sep 2013 10:39:15 -0400
Newsgroups gmane.comp.python.opengl.user
Message-ID <[email protected]>
On 13-09-18 03:54 AM, Oly wrote:
> I have the example code below, simplified from a larger project. I 
> have been trying to make alpha channels work i have enabled blending 
> and written a similar example using pygame which works. How ever 
> setting up opengl to work with a glx context seems to stop blending 
> from working, i have a feeling i need to enabel some parameter to the 
> gl context setup but have not been able to find out what that 
> parameter is.
>
> Any suggestions on why this is not working, i have tried on two 
> different machines one with high end radeon and another with an intel 
> graphics card both do the same however.
>
> http://pastebin.com/vTDspSwp
>
> Any help would be most appreciated.

So it really doesn't seem to be *blending* that's the problem here, it's 
just that you're not getting a GL context set up at all?  I note that 
the following functions:

XDISPLAY_POINTER = ctypes.POINTER( struct__XDisplay )
...
         self.display = GdkX11.x11_get_default_xdisplay()
         self.xscreen = GdkX11.x11_get_default_screen()

         self.xdisplay = ctypes.cast( hash(self.display), XDISPLAY_POINTER )

are there, and seem to work, but glXChooseVisual always returns None on 
my machine, which the docs suggest is due to an unrecognized attribute 
in the attribute list.

Afraid I haven't much more to go on.  This *looks* like it's something 
simple going wrong, but I don't see it immediately.

Good luck,
Mike

-- 
________________________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://www.vrplumber.com
   http://blog.vrplumber.com


------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net