Author archives: Mike

RSS feed of Mike

easy_install no longer working with SourceForge-hosted projects?

It seems like all of the projects I host on SourceForge are no longer easy-installable. The only ones that can install are the ones that have been uploaded to PyPI, and then only the versions on PyPI install (i.e. a later version on SF doesn't install or prevent an earlier version from installing). I'm guessing ...

Continue reading

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