Re: [PyOpenGL-Users] A little help with blending and glx
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2013-09-18 14:39:22
|
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 |