Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Sketchy network library...

Couldn't sleep this evening, so I sat down and hacked up a loose sketch of a networking library for Pygame.  The loose sketch is based on the description Phil gave at the OLPC jam at PyCon, but it's nowhere near finished yet.  Basically it's got the ordering and reliability stuff built, but hasn't touched ...

Continue reading

Check explicitly for extension support in OpenGL

Discovered a bug in PyOpenGL under Mesa this morning.  One of those "duh!" moments where you realise you're being a bit too clever and simple about things.  Luckily it was pretty easy to fix, as the whole of the extension hierarchy is auto-generated.

Basically, in OpenGL, extensions and functions > 1.1 are all potentially missing ...

Continue reading

PyOpenGL 3.0.0b4 available

Just released PyOpenGL 3.0.0b4.  This is a fairly minor point release.  It's the first to contain the proof-of-concept VBO support.  It also has a few more tests.  Still need work on the WGL extensions so that older WGL-using code that uses them will work.

A few fixes in OpenGLContext CVS as well.  Not releasing a ...

Continue reading

Code Aesthetics Excitement...

Sat down to collect my contribution for tomorrow's PyGTA. I've cut the set down to 8, maybe tomorrow after work I can narrow it down further. At the moment everything is my own code, save for Tim Peter's toposort from way back when. There's a number of very different views of what makes good code ...

Continue reading

Reminder Code Aesthetics @ PyGTA Tomorrow

Hope you're all wracking your brains and your source code control systems looking for that perfect piece of code that shows (some) programming has beauty and wonder.  Or maybe you're putting together a piece that shows programming really is just a kludge to get the job done.

PyGTA is tomorrow at Linux Caffe, 7:00pm.

RunSnakeRun Python Profile Viewer Updated

RunSnakeRun is one of my older projects.  It's a small utility which loads HotShot profiler data into a sortable GUI table.  It now also supports cProfile/profile module profile runs.  I've also updated it to work with modern wxPython and numpy instead of Numeric (it uses numpy to speed up loading of very large HotShot profiles). ...

Continue reading

Toronto Plone Meeting Tonight

John has started a Toronto Plone group.  Meeting is this evening @360 Adelaide St. W. (near Spadina).  6pm to 8pm, apparently a variety of speakers.  Be there.[1]

[1] With the assumption that you're interested in Zope/Plone and are in Toronto...

IndexedFaceSet compilation improving

Working on the IndexedFaceSet support this afternoon and evening (with a birthday party for a friend in the middle).  IndexedFaceSet's are very generic ways of defining face geometry, which makes it easy to hand-edit VRML files with them.  Unfortunately, that generality means they are also rather involved to prepare for rendering, you basically have to ...

Continue reading

Smooth Movement for OpenGLContext

Finally got around to implementing smooth movement for OpenGLContext.  Instead of just "jumping" a given distance on each press of the key, the default movement manager will now smoothly interpolate to the position (same for orientations).  Code is pretty straightforward, the only tricky thing was getting holding down the key to make the motion faster. ...

Continue reading

Other 90% of OBJ files still pending

Playing with the OBJ file loader for OpenGLContext this evening (briefly).  Forgot to check in a number of fixes on Friday (oops).  Anyway, as of now CVS OpenGLContext with CVS PyOpenGL can load OBJs from the internet via the (now somewhat inappropriately named) bin/vrml_view.py script.  Still haven't found any samples where there's .MTL files (and/or ...

Continue reading