Category archives: Snaking
Discussions of programming, particularly of programming Python
No luck on GLSLDevil + PyOpenGL yet
Written by
on
in
Snaking.
Hit a bug in my ARB buffer texture test-case this morning and decided to try out GLSLDevil to see what's going on in the shader (basically I seem to be getting out the wrong values from my texelFetch() calls). Long story short, while I can do a bit of hackery to get past some initial ...
Playing with extensions in PyOpenGL
Written by
on
in
Snaking.
Have been spending the afternoon doing a bit of cleanup in the later extensions and versions for OpenGL in PyOpenGL. Many of the later OpenGL versions do most of their work by importing entry points and constants from ARB extensions. That's now reflected in PyOpenGL so that the core GL namespace includes those extension entry ...
RunSnakeRun 2.0.1 Released
Written by
on
in
Snaking.
RunSnakeRun 2.0.1, a cross-platform profile viewer for Python, is now up. Mostly just changes for OS-X 32-bit loading since the last beta. Meliae (memory dump) loading is the major new feature since the 2.0.0 series.
Watch your texture bindings when using FBO attachments
Written by
on
in
Snaking.
I finally tracked down why the second "shadow" demo had regressed for OpenGLContext on AMD cards. Turns out that the order in which you bind/unbind textures and Frame Buffer Objects is very important. If you have a texture bound as the current TEXTURE_2D at the same time as it is attached to an FBO attachment ...
bytes(23) this is not your Python2.7 bytes...
Written by
on
in
Snaking.
Working on integrating a patch that lets parts of PyOpenGL work on PyPy 1.5 and Python 3.2 (thanks to Renaud). Tried creating a little wrapper that abstracts away the various changes. One of these is a function that can take a string, a unicode string, or an arbitrary object and wants to get a friendly ...
2.0.1 beta 5 of RunSnakeRun
Written by
on
in
Snaking.
I've just pushed the 5th beta of RSR 2.0.1 to PyPI. It fixes a few bugs on the Win32 platform. This should be the last beta of 2.0.1 if no show-stoppers crop up.
The wonder of writing code you can't run...
Written by
on
in
Snaking.
Updated the PyOpenGL code-base so that it can at least load the 4.x ARB extensions... thing is, I can't actually test anything because my now-rather-old laptop doesn't support any of the new extensions :) .
Columnar Sort of N Columns in 2 Directions, a.k.a. Data-grid Sorting
Written by
on
in
Snaking.
There is a thread on Python-list about removing the "cmp" parameter to Python's sort. One little tidbit I had missed was the introduction of a stable sort guarantee with Python 2.2. I've got lots of older code that uses cmp, so I figured I'll just start rewriting those as I come across them... later that ...
Violating my own principle in PyOpenGL sometimes works
Written by
on
in
Snaking.
As I've been listening to PyCon lectures in the background as I work, I'm struck by the number of times people discussing PyOpenGL refer to the OpenGL.array.vbo module positively. It's actually one of those pieces of the API where I have broken one of my rules for the project; "Don't extend the API".
Over the ...
Yay, fairly usable meliae loading
Written by
on
in
Snaking.
Unscheduled day off work today... which means... RunSnakeRun (and SquareMap) got quite a few performance improvements when handling Meliae dumps. It still takes 3-4 minutes to load a 16MB capture (that is, an dump that captured 16MB of objects) but once loaded it is reasonably close to interactive. I haven't got time to work on ...