Category archives: Snaking
Discussions of programming, particularly of programming Python
Tiniest little bit of StarPy hacking (Pitifully small, really...)
Written by
on
in
Snaking.
Discovered a little while ago that there were 7 unread messages about StarPy that got sorted into the Thunderbird folder and never read. Urgh. 4 patches, a bug report and an offer to work on the system Duh!
So yesterday I set up the laptop to have Asterisk, StarPy, and StarMail so that I can ...!-->!-->
GLSL demo ported into OpenGL-ctypes (Cartoon shading is fun!)
Written by
on
in
Snaking.
I just checked in the the (minor) enhancements to allow for compiling and running GLSL shaders with OpenGL-ctypes (based on the PyGame wiki page). This is by no means a complete wrapping, it's just the features that the demo uses wrapped up so that they have "pythonic" interfaces and match the C definitions (e.g. allowing ...
OpenGL-ctypes play in the margins (Where's the time...)
Written by
on
in
Snaking.
I've been trying to work on OpenGL-ctypes in the hours here and there. Mostly minor fixes. I've added the Demos directory from PyOpenGL. I've added and tested the Tk/Togl system with Togl 1.7 (system install (though there was no emerge for Gentoo and required re-emerging Python with Tkinter (yay, Tkinter isn't included in Python))) and ...
Invoicing with ReportLab (A bit of sample code for the curious...)
Written by
on
in
Snaking.
Have been working with the open-source ReportLab package to create invoices the last few days. The results aren't what I would consider beautiful yet, but they are a reasonable layout format for an invoice. Since it took me a bit of time to set it up I figure I'll share it with the world.
The ...!-->!-->
Making mountains (Molehill demo not working...)
Written by
on
in
Snaking.
Working a bit on OpenGL-ctypes as I wait for Soni. The molehill demo, which renders a multi-coloured NURBS surface with "plastic" lighting is rendering the surface (that is, is creating the nurbs shape) perfectly well, but isn't managing to display the colours.
Little traction this afternoon (Bouncing around between tasks...)
Written by
on
in
Snaking.
I was fully intending to spend the evening on porting OpenGL-ctypes to Win32. However, I realised that the workstation doesn't have the Toolkit compiler set up, which always takes hours, so I thought I'd try wrapping some of the more advanced extensions (vertex shaders, pixel shaders, that kind of thing).
Of course, I don't have ...!-->!-->
On fixing taps (Don't do it until there's a real problem...)
Written by
on
in
Snaking.
Friday I tried to fix the (Windows XP) 3D rendering on the laptop. Now XP simply can't boot (crashes trying to load the AGP module). I need to use an XP Pro disk to repair the installation, but I don't have one of those (the XP instance is the one that came pre-installed on the ...
OpenGL-ctypes finally gets tessellation (Read the spec a little more carefully and all becomes clear...)
Written by
on
in
Snaking.
I'm obviously not spending enough time with coding OpenGL these days. The reason that the GLU tessellation callbacks were messed up was that I was mis-reading the spec and trying to convert pointers to Vertex objects into double arrays. I went through altering the OpenGLContext code to work with vertex pointers before I realised "wait ...
Changing PyGTA's meeting day (3rd Tuesday of the month instead of the 4th)
Written by
on
in
Snaking.
We're tentatively (pending clearing it with Linux Caffe) planning to move PyGTA to the 3rd Tuesday of the month in order to stop conflicting with DemoCamp. Will try to get that cleared up tomorrow.
PyGTA this Tuesday, 6:30PM at Linux Caffe (Starting earlier to get finished earlier...)
Written by
on
in
Snaking.
PyGTA this month is going to try starting 1/2 hour earlier, at 6:30, instead of 7:00. Linux Caffe stays open just for us on these nights, so we're going to try to finish around 8:30 or so so that they can get home to their loved ones. We'll do mostly socialisation and chatting for the ...