Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Doesn't look like I'll get the nurbs finished this weekend (Darn it)


I've probably got 80 or 90% of the work done for making NURBs work in OpenGL-ctypes. This is mostly just refactoring the code from the Tessellation structure into a base class and then writing up the various wrapper functions. Unfortunately, there doesn't seem to be a generic way to know, at the callback level, what ...

Continue reading

gluTess* working now (Though it's really ugly under the covers...)


The problem with the GLU tessellation routines does appear to have been an indirection-level problem. Basically I'd been passing a byref( func ) instead of a func into the function. The reason for that is that the data-type of the argument wouldn't accept bald func, so I'd assumed it was a pointer-to-a-function. In fact it ...

Continue reading

RunSnakeRun released (finally) (HotShot profile loading/viewing utility using wxPython)


Since Dobes wanted it, I've packaged up RunSnakeRun as a distutils archive so that people can install it on their systems easily. It even has its own little web-page now on which you can see a screenshot and from which you can download a copy.

Shane's Darwin platform module for OpenGL-ctypes (Test and report bugs...)


Shane Holloway just sent in a darwin.py platform module that should let OpenGL-ctypes run on OS-X (he's only tested with the wxPython demo so far). I've checked the module into CVS, so all you darwin peoples who've just been chomping at the bit to see the OpenGL-ctypes goodness, feel free to check it out and ...

Continue reading

Well that was cool (For about 5 seconds...)


So, I finally got all the ducks in line enough to let Cinemon do an entirely "remoted" scan of a real CMTS and all of its modems... It was kinda cool. My little workstation here was running both the server and the client, along with another hundred or so processes, including recording video and everything ...

Continue reading

Sometimes the solution needs time to gestate (Sometimes you induce labour...)


Had another one of those moments, you know the ones; you are starting to run out of tickets in the project and realise that 2 or 3 of them are actually the same basic problem that you've been avoiding for a few months because it doesn't seem to have an elegant solution.

You back off ...

Continue reading

A bit of paying work (Since I don't seem to be getting anything done on the Open Source stuff)


Finally discovered the reason the silly togl ebuild doesn't work: the makefile doesn't actually install anything, so it creates an empty package... so useful. I got to that point and just said to heck with togl.

Decided instead to take a nap and then get some paying work done. Discovered one of those nasty bugs ...

Continue reading

Togl really is a PITA (ebuilding works... sort-of...)


Decided this evening I'd try to get Togl working under OpenGL-ctypes. First annoyance was discovering that the project page claims the project is GPL-licensed (the license text in the project file is basically a BSD license). Anyway, built an ebuild for the project, having to create a diff for the amd64 processor, but otherwise no ...

Continue reading

Sleep descends disquietly (Comes back for a rematch a few hours later...)


Rather a slow start today. Got up on time, but didn't sleep particularly well. By the time I'd sat down to work I realised I just wasn't clear-headed enough to be charging anyone for my work. 3 hours of napping later it's already dark out, but at least I feel like I could write a ...

Continue reading

It's been too long since I played with graphics (Algebra and geometry is starting to fail...)


Just realised as I was working out linear interpolations across a plane in 2D that I'm getting very rusty in my basic math skills. Used to be that I played with this kind of stuff every time I sat down to program. Nowadays it's all if statements and SQL queries, with elegant algorithms few and ...

Continue reading