Re: [PyOpenGL-Users] PyOpengGL glHistogram()
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2008-08-07 02:52:28
|
Ant Sibthorpe wrote: > Hi > > I've been looking at the documentation for PyOpenGL and it certainly seems > to contain pages on the ARB imaging extension that allows image histogram > generation. However, I've not been able to make this work, nor have I been > able to find out definitively whether another package, like glewpy, provides > these functions. > PyOpenGL is intended to provide the functionality. It should have been working with the latest beta, but I've just tweaked it so that it should work more reliably on systems where the functions aren't defined until there's an active context. There's a bit of sample code in the OpenGLContext/tests/glhistogram.py script I just checked into CVS, this seems to show the histogram functions in OpenGL 1.2 working as expected, though it seems to produce too large an image (4 components) for the luminance set. That sample code has only been tested against CVS PyOpenGL, however. > func = functionTypeFor( self.DLL )( > NameError: global name 'functionTypeFor' is not defined > That code doesn't exist in the current CVS, nor should it have in the latest beta. If someone has some simple stand-alone code that would let me test the functions reasonably (i.e. should produce known results and can be inserted into a test case) I'd be interested in having it. Take care, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |