Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Stripped pkg_resources out of OpenGLContext and PyVRML97

Definitely seems to have been a setuptools bug that karked my setup last week when trying to get TurboGears running with Twisted + Athena.  By downgrading to a previous version of SetupTools I was able to get TurboGears to run properly again.  Also ran into a weird bug where setuptools was causing a single character ...

Continue reading

Bit of PyOpenGL on the weekend

Spent much of the afternoon working on PyOpenGL.  Spent some quality time with kcachegrind and got something like a 1% speed up on a (rather dumb) benchmark I've been using (dumb because it does everything wrong, mostly).  In doing so I cut down on the amount of code in the "wrapper" module noticeably, which was ...

Continue reading

Where did *that* dependency come from?

Working on PyOpenGL today.  Few little fixes, a few wrapper operations to make things more Pythonic.  Nothing huge.  At some point, though, I discovered that pkg_resources was complaining that it couldn't find the PyOpenGL distribution (I eliminated pkg_resources from PyOpenGL, but OpenGLContext is, for now, using it).  Okay, so run setuptools and register PyOpenGL...

But ...

Continue reading

I rather enjoyed Mochikit

At my one client we use the Ext javascript library, which is somewhat of an all-singing-all-dancing javascript library with dozens of compound widgets, particularly these huge, heavily abstracted searchable, sortable, selectable grid widgets.  Ext doesn't float my boat.  I wouldn't pick it up to use it on a personal project.  The API just seems so ...

Continue reading

New PyOpenGL-Demo demos

Peter Roesch has just contributed a set of stand-alone demos for the PyOpenGL-Demo distribution.  There's shaders, nurbs surfaces and curves, beziers, interaction and stereo rendering.  They should show up in the next release of the package, and are available from bzr now.

bzr branch lp:~mcfletch/pyopengl-demo/trunk Demo

They'll also show up as example code in the ...

Continue reading

Need to expand vbo support... and support/contribution emails

The vbo module in PyOpenGL is currently making a bad assumption, namely that the value passed to gl*Vertex functions should be 0, it could be any integer to indicate an offset.  I'm thinking of creating a class which can be used to create offsets into the vbo which will always just be the offset:
glVertexPointerd( ...

Continue reading

OpenGL 2.1 manual sources are integrated...

OpenGL.org (Khronos) has made the OpenGL 2.1 docbook source files available, so the PyOpenGL 3.x documentation can now cover up to OpenGL 2.1 (and when 3.0 docs are out adding that should be relatively trivial).  I've also updated the OpenGLContext shaderobject test/demo to use a new feature in OpenGL.extensions which allows you to create functions ...

Continue reading

PyOpenGL 3.0.0b6 (likely the last beta) is up...

I've just uploaded PyOpenGL 3.0.0b6 to SourceForge and PyPI.  At this point there's not really much I'm intending to change before the 3.0.0 final release.  We now have support for extensions up to the OpenGL 3.0 release, we should run on Win32 and Linux at least.  We should be compatible with py2exe/pyinstaller/py2app.

From here on ...

Continue reading

A few steps forward...

Got PyOpenGL working on both Ubuntu and Win32 again for basically everything.  Cleaned up the baseplatform module to reduce the code duplication in there.  Updated the extensions included to OpenGL 3.0.  Added in a contributed demo in the demos package.

Will see if I can get a few hours to do a release over the ...

Continue reading