Category archives: Snaking

Discussions of programming, particularly of programming Python

RSS feed of Snaking

Playing with EGL platform for PyOpenGL

Played around a bit today with generating an EGL wrapper (for mesa-egl).  No real reason for it, other than I wanted to see what EGL is like.  One thing that shows up is that the current idea of a "platform" in PyOpenGL is a little too limited. EGL is cross-platform, and apparently can work with ...

Continue reading

QIII Shader File Parser added to Twitch

So after yesterday's post, you *must* have been thinking: "where *are* all those textures"? No one has 30 missing textures in a map level. A few of them seem like something that might have been hard-coded, "noshader" "clip" and the like, but there's no way those "sky" textures were going to be hard-coded to content ...

Continue reading

Added Textures to Twitch this evening...

I've been playing at writing a small Quake III BSP map rendering engine using PyOpenGL (and OpenGLContext, for now) when I get the bug to do 3D.

Today I added basic texture rendering for "simple" surfaces (non bezier spline patches). With that you can wander around (unzipped) maps and tell what's going on, but nothing ...

Continue reading

Video from PyCon.ca is up...


The video has a number of drop-outs, and as noted elsewhere, it turns out that the section on Python 3 was wrong. Sigh. Python 3 did not clean up the profile/cProfile duality as it did for all other name/cName pairs, so Python 3 profiling works as long as you use Python 2 tools to process ...

Continue reading

PyCon.ca Tools Sprint wrap-up (a bit late)

We just had two people out to the Tools Sprint, myself and Alex Volkov (of PyGTA fame).  Alex ported gprof2dot to Python 3, which was, as usual, complicated because the codebase already handled Unicode in various areas and because it is explicitly supporting very old Python versions.  Along the way we discovered that Python 3 ...

Continue reading

Line localtime inadvertantly implemented...

Started really looking at the results from Coldshot and realized that the line timings just didn't add up to the function timings... because the line-timings were "localtime" rather than "cumtime".  Local time is actually pretty interesting as a piece of information, but I'm guessing 95% of the time you actually want cumtime when you are ...

Continue reading

Coldshot progress...

Been playing with my experimental profiler (Coldshot) all day.

At this point it can load an OpenGLContext run with 207MB of trace data and produce a basic textual summary (both cProfile-style calls/timing and file:line level timings) in around 4s.  That's still quite slow, as the profiler records around 4MB/second of data, so multi-GB traces seems ...

Continue reading

Quadratic Bezier Splines

So as part of my little Quake 3 BSP loader (twitch) I need to render Quadratic Bezier Spline patches.  I want to do the whole thing from a VBO, so I'm doing the tessellation manually (I also wanted to do it to play).  The basic rendering is now working, that is, I can render a ...

Continue reading