Post #2448527
2026-02-10 13:48 UTC
Replies (1)
-
@bazzargh@hachyderm.io 2026-02-10 18:29
@tth@mastodon.tetaneutral.net it would have made more sense to use webgl for the floor, with the carpet being a tiled texture, but I hit limitations: I think the far end of the floor exceeds the normal coordinate limit in p5js's webgl canvas - over 10k units away - plus the clip mask I did to show Danny doesn't work in webgl, the outermost shape is the mask, when I wanted to use a winding rule to unmask the middle. I could have done it just by drawing the image twice, but in the end it was just easier for me to do the projective transform and display the 2d image...in case you hit any of that. Also, my math is a bit wrong, I think the repeat spacing? you can see it when the orange S shape rotates, the hexagons expand slightly. I couldnt be bothered fixing it!