Author archives: Mike

RSS feed of Mike

GL Arrogance Cleanup is Significant

There were (and still are) lots of places where PyOpenGL code assumed (assumes) that it is running GL. So far my cleanup efforts mean that on importing e.g. GLES1 you don't actually trigger a load of OpenGL. They also mean that most DLLs are lazy-loaded, something that means e.g. GLUT should no longer load on ...

Continue reading

GL Arrogance

There are a number of places in PyOpenGL where GL has been arrogantly assumed. In particular, error handling and the shader/VBO convenience code.  The result was that you'd wind up having GL error-checking in GLES or trying to create GL VBOs under GLES. I've done a bit of refactoring to get the error-handling squared away, ...

Continue reading

More consistency in array input/outputs

OpenGL often has situations where an argument is actually an output. PyOpenGL has traditionally wrapped those entry points such that they would be removed from the inputs and returned as an output.  I've just checked in code such that for most PyOpenGL entry points you can use either the Pythonic or the C-ish pattern (i.e. ...

Continue reading

Step 2: Get an amd64-compatible VS 2010

So Python 3.3 and 3.4 require Visual Studio (Express) 2010 to compile extensions.  I already had my machine setup with Visual Studio Express 2008 + the platform SDK to get 32 and 64-bit compilers for Python 2.6 and 2.7, but to release for the 3.x's I needed to get the new compilers.  There is, however, ...

Continue reading

Pygame-hosted EGL + ES1 works

So Pygame based EGL + OpenGL-ES1 context works with PyOpenGL 3.1 under Kubuntu amd64 with MESA EGL/GLES. Yay.

Really do need to get a couple SD cards ordered so I can port to the Raspberry Pi too. I expect that will be a matter of just getting the proper library-names defined in the platform loading ...

Continue reading

PyOpenGL 3.1.0b1 Available for Testing

PyOpenGL and PyOpenGL_accelerate 3.1.0b1 are now up on PyPI.  There's MS Windows 32 and 64-bit installers for the windows-ians. The main "features" planned for the 3.1.0 release (and available in the beta) are:

  • raw wrappers generated from the ARB source XML definitions, this means that it covers a lot more extensions, including GLX, WGL, EGL ...

Continue reading

Step 1: Get Windows Updated

Booted into Windows to get the PyOpenGL-Accelerate release compiled, and started following my standard "update windows, AV definitions, etc" pre-release steps... and Windows Update failed. Lots of fail (and 3 hours of trolling through MS support and trying dozens of different fixes intended to reset/verify/cleanup Windows Update state) later I wound up with some Windows ...

Continue reading

FGLRX fail again, now on 12.04

So I've pretty much given up on the laptop having fglrx running properly, current Ubuntu just doesn't get fglrx, sucks, but okay, I should have stayed on LTS if I wanted a working machine.  But now LTS Kubuntu fglrx is hosed after some system update.  Every attempt to run any OpenGL program just segfaults (not ...

Continue reading

Finally some EGL/GLES in PyOpenGL

I finally have a working demo using EGL and GLES under X11/Mesa (Kubuntu 12.04). I can run the most basic of ES1 and ES2 (as well as GL) tests under an EGL-provided context hosted by python-xlib (i.e. a raw X11 window). There's no guarantee that actual useful work could be done with it, but clearing ...

Continue reading