Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Oh, OpenGL 3.2 in PyOpenGL, PyOpenGL in Python 3.x

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 ...

Continue reading

Add context managers to PyOpenGL?

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 ...

Continue reading

New tutorial(s) up...

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 ...

Continue reading

Code-walkthrough Overkill

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 ...

Continue reading

OpenGLContext Fun

Spent the whole day on OpenGLContext.  I bashed out a "molehill" tutorial based on the classic from Mark Kilgard), mostly to verify that the NURBS stuff really isn't broken[1], and did a bit of work creating a "gear" geometry type (not satisfied with that one at all, very dull looking).  I made the ROUTE mechanism ...

Continue reading

Beginning work on OpenGLContext release

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 ...

Continue reading

PyOpenGL 3.0.1a2, for the forward-thinking...

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 ...

Continue reading

Day of Exploring

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 ...

Continue reading