Category archives: Snaking
Discussions of programming, particularly of programming Python
What to do with vertex_buffer_objects? (Pushes itself deep into the rest of OpenGL)
Written by
on
in
Snaking.
A few fixes here and there in OpenGL-ctypes, allows a few more of the samples to run properly. Also did some preliminary testing with PyGame-ctypes (seems to work fine with OpenGL-ctypes). Then sat down to work on the ARB vertex_buffer_objects extension. The extension itself is fairly straightforward, but it's the side effects that make it ...
StarPy patches integrated into CVS (Maybe 20 lines of changes...)
Written by
on
in
Snaking.
Taking the lunch-hour here to work on getting the StarPy patches integrated. The changes are fairly minor in terms of new functionality, a few bug fixes and adding a few (new) parameters to AMI originate. I haven't investigated, but I gather the "variables" patch is the exposure of the new api for originate that was ...
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 ...