From: Mike C. Fletcher <mcfletch@vr...> - 2006-09-29 03:43:36
I've done quite a bit of work on OpenGL-ctypes, OpenGLContext and the
vrml module this evening. Most of the work in vrml and OpenGLContext is
in eliminating needless array data-copying. That was done by using a
feature I just added to the numpy format handler. Basically if you do
OpenGL.arrays.numpymodule.NumpyHandler.ERROR_ON_COPY = True
in your application you will receive CopyErrors raised whenever the
system has to copy a numpy array due to format or contiguousness
issues. That should allow for optimising applications to prevent
Other minor fixes here and there.
I'm still trying to track down the problems with the gluNurbsSurface
call. It has started failing and I just can't seem to see where. Other
nurbs calls (e.g. gluNurbsCurve) are working, so it's likely that I've
messed up something in the custom wrapper for that particular function,
but I haven't found *what* I'm doing wrong yet.
Also seeing failures in the simple particles demo in OpenGLContext.
That's never failed before (ever), so I'm guessing I've subtly broken
something in the array handling that's affecting both operations.
Have fun all,
Mike C. Fletcher
Designer, VR Plumber, Coder