Re: [PyOpenGL-Users] How to use shaders in pyopengl
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2008-11-09 22:46:15
|
Don Laursen wrote: > I took a look at the GLCanvas.py demo that comes in the wxPython demo > package and moved some things around in my program to be more like > that example. It still wouldn't work (though it would get further > before printing an error), until I removed the > "attribList=[wx.glcanvas.WX_GL_DOUBLEBUFFER" from my GLCanvas > constructor call. Once that was gone, it worked just fine. > > Just having the attribList parameter causes my program to fall back on > the Microsoft driver and fail to work. This happens even when I set > attribList=[], so it's not the fact that I'm trying to use > double-buffering that's causing it. > > So is this a wxPython issue or a PyOpenGL issue? > IIRC the GL visual selection is supposed to take the attribute bitmask as a "minimum requirement", but it's possible that without glcanvas.WX_GL_RGBA the algorithm is giving you an un-accelerated implementation, maybe a 256-color display or something silly like that? You could try fully-specifying the attributes, i.e. [ WX_GL_RGBA, WX_GL_DOUBLEBUFFER, WX_GL_DEPTH_SIZE, 24 ] and see if that selects the proper visual. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |