[PyOpenGL-Users] Stencil _slow_
Brought to you by:
mcfletch
From: fulko <vw...@fv...> - 2004-09-20 14:39:15
|
Hello, I try to use a stencil buffer with OpenGL and gtk (in Python). The stencil does not work correctly, and is soooo slowwww (~100x). After two days my resources are exhausted; I don't know what to try next. I need the stencil for a rather simple operation: not drawing in a few selected areas. Documentation on the use of stencils is sparse, most about lighting, and all for C. Does someone have a simple stencil example in Python that works fine? Or does someone know the magic trick to get it running? I tried to force the use of the stencil-buffer with: glconfig = gtk.gdkgl.Config(attrib_list=(gtk.gdkgl.RGBA, gtk.gdkgl.DOUBLEBUFFER, gtk.gdkgl.STENCIL_SIZE, 1, gtk.gdkgl.DEPTH_SIZE, 1)) but with no effect: STENCIL_SIZE seems to be not available I run Python 2.3, PyOpenGL 2.0, I tried pygtkglext-1.0.1 and python-gtkgl 2.0, both with pyGTK 2.0. My video-card is an NVidia geForce2 GTK with 1.0-6106 drivers. All on Debian Testing (a rather old testing version). Thanks for any help, Fulko |