Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

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

Bit more maintenance work on OpenGLContext

Doing a bit of bit-rot fighting in OpenGLContext this evening.  Got the visual shell running again, so that you can load up a world in one window and type commands into another to modify the running world.  Mostly was just updating to use wx 2.8 and the new loader structure.

Also took the time to ...

Continue reading

OBJ loader for OpenGLContext

Have been working on PyOpenGL and OpenGLContext all day.  Have redone the OpenGLContext loader module and ported the OBJ loader from pyglet over.  The OBJ loader seems to work fine, but I didn't find any OBJ files that include material information to test that.  I'm going to have to fix the face-culling, seems that the ...

Continue reading

Frame Buffer Objects are Easy (ish)

Felt a little under the weather after a good party (apparently I picked up some soy, which I can't digest well) I decided to learn a little bit about Frame Buffer Objects in OpenGL. These are the new system that allows you to do "off screen" rendering and "rendering to texture" behaviours. Turns out they ...

Continue reading

OpenGL Vertex Buffer Objects (VBO)

Only had 1/2 day to work on PyOpenGL today (client needed work done this morning), so just played around with the Vertex Buffer Object (VBO) extension. In particular I added support for mapping data into the arrays and automatically deleting the arrays if the user forgets to do so. For those following along at home... ...

Continue reading

Programming Limits

Work with old, large systems enough and you start to get a persistent feeling of Deja Vu. Get large enough and you always seem to grow a set of features that is almost like every other large system, just implemented in a completely different way so that code sharing is simply impossible.

How many file-system ...

Continue reading