Onions have layers. Ogres have layers.
Couldn't resist trying to play with color. I managed to work in a hack that for all intents and purposes seems to do anti-aliasing without oversampling.
Composing SDFs together is very satisfying. Looking forward to controlling these things with sound/signal.
@paul the trick, as i worked out in my own head while talking @selfsame through it, is the function you sample has gradients between edges that are exactly 1 pixel thick anywhere on the screen. this, by chance, happens to result in point samples that are more or less the same as what you’d get by super sampling at high resolution, so it feels like getting anti-aliasing for free.
@paul to state it in the opposite direction, an anti-alised pixel should represent the percentage of coverage by the shape over the pixel. if you want the correct values to appear underneath your point samples, the “filter” function just happens to be 1 pixel wide gradients around every hard edge, which just happens to be trivial to get with sdf. (though it gets more complicated once you involve perspective texture projection and gamma correction)
Welcome to post.lurk.org, an instance for discussions around cultural freedom, experimental, new media art, net and computational culture, and things like that.