XOR Tube

Wednesday, 13 April 2005.


A popular old-school demoscene effect, revisited as my first foray into Processing.



The mathematics involved in ray-casting the tube and applying the XOR texture map are both simple once you understand how they work (and daunting before then). Learning trigonometry is a must if you want to write graphical programs of any sophistication, and being able to cheat is a must if you want them to go fast.

I revisited it more recently, to add a motion blur effect, adding a little bit more visual interest.


Lavender, the Lonely Pink Elephant