« Towards Horizontal Scrolling in Quartz Composer | Main | Who stole my disk space ? »

MulleLife for Quartz Composer


Don't bug me about the movie not playing, looping correctly. This is a QuickTime bug.
This isn't really any progress towards the horizontal scroller, but the nifty stuff by Sam Kass inspired me to do a little Life demo using the GLSL shading language. This was not quite as easy as I thought, because the GLSL language subset that Apple provides can't do if statements really. I then figured I was going to use an array as a truth table, alas array aren't supported either.

Hmmm....

Then I had the idea, that I could use a texture as a truthtable and I handpainted a texture with the life truth values and this worked.

Although I did screw it up a little, because Painter likes to alias graphics, even when single pixel drawing But that is corrected in the code.
I suspect generations of shader coders have figured this out before me, but nevertheless I had to pat myself on my back for that. :)

So here it is MulleLifeFilter.qtz.zip.

About

This page contains a single entry from the blog posted on May 12, 2005 8:29 PM.

The previous post in this blog was Towards Horizontal Scrolling in Quartz Composer.

The next post in this blog is Who stole my disk space ?.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.34