Category archives: Snaking
Discussions of programming, particularly of programming Python
Oh, OpenGL 3.2 in PyOpenGL, PyOpenGL in Python 3.x
Written by
on
in
Snaking.
Checked in the initial OpenGL 3.2 support, haven't done *any* checking on it yet. So buyer beware on bzr trunk :) . Really do need to get the pyglet-generator branch working some day.
Oh, also ran 2to3 across the package. It finished (used to blow up on the larger files), so it may be possible ...
Add context managers to PyOpenGL?
Written by
on
in
Snaking.
Playing a bit with Python context managers for PyOpenGL. Considering adding them pervasively, likely with a configuration flag. (idea is from Florian's gletools)...
- OpenGL.arrays.VBO -- make a context manager itself (this is already implemented)
- OpenGL.GL.compileShader -- make the shader int returned a context manager (implemented)
Those two I consider non-controversial, as they are already non-standard ...
PyGTA on Tuesday: Exceptional Conditions
Written by
on
in
Snaking.
Our open discussion on Tuesday will be on the topic of exceptional conditions (and how to handle them). More details on the PyGTA site.
New tutorial(s) up...
Written by
on
in
Snaking.
Continuing to plow through writing tutorials. There's now 10 GLSL code walk through style tutorials for OpenGLContext. Next up should likely be texturing/samplers. I'm going to have to start factoring out some of the common code, as large blocks are basically the same for each tutorial and they're making it somewhat cumbersome. I'm also thinking ...
GLSL tutorial intro to structures and arrays...
Written by
on
in
Snaking.
Moving forward on the GLSL tutorials. Latest introduces the use of structures and arrays. Needs more commentary, but I'm off to friends' for dinner.
Code-walkthrough Overkill
Written by
on
in
Snaking.
I'm beginning to think that the "code walkthrough" style is just way too involved for many of these tutorials/demos. Most of them can be reduced to "define scenegraph", maybe set up a few event handlers to manipulate it. I think I'll go back to the low-level tutorials when I get a chance to work on ...
OpenGLContext Fun
Written by
on
in
Snaking.
Beginning work on OpenGLContext release
Written by
on
in
Snaking.
Sometimes you get discouraged about a project that you work on all the time. You think "no one uses it, so I may as well just do whatever I feel like doing". Over the years, you lose track of the idea of releasing it as a working piece of software, you just sort of think ...
PyOpenGL 3.0.1a2, for the forward-thinking...
Written by
on
in
Snaking.
Second alpha of the 3.0.1 series includes a number of bug-fixes from PyOpenGL 3.0.1a1, as well as updated extensions (including OpenGL 3.1 core). The new extensions are currently just auto-generated, so if you see something that needs special wrapping, feel free to ping me. The OpenGL.org extension header now breaks out the deprecated/non-deprecated functionality, so ...
Day of Exploring
Written by
on
in
Snaking.
Spent the day at Science 2.0 down at the Mars Centre. Kinda freaky how many people I am getting to know at these things. Greg is, as was mentioned, definitely a node in the connectivity graph. The *P marketing department did a presentation, I've never personally looked into the system, but the few quick snippets ...