December 9, 2025
Browsers vs Infinite Shapes
Periodic Spaces
Infinite shapes, confused comments, and one roasted browser
TLDR: A trippy demo shows “infinite” shapes using a technique called signed distance fields, wowing and bewildering viewers. Comments split between performance complaints, newbie questions, and one pro tip to speed it up by limiting ray steps—turning eye-candy into a lively battle of art vs. optimization.
The “Periodic Spaces” demo drops a wild promise: infinite shapes, soft shadows, and moving eyes—rendered in real time. The crowd’s reaction? Equal parts wonder and whiplash. One viewer just posted “Huh”, which quickly became the thread’s unofficial meme. Another begged: “Cool language! What language and library is this?” Cue a wave of curiosity over the mysterious code behind the visuals, teased with the page’s own wink: “psst, hey kid, wanna read a weird programming book”.
Then the performance wars began. “Just opening this page is a 'heavy' benchmark,” groaned one commenter, sparking jokes about laptops turning into space heaters. While some treated it like digital art you’re meant to vibe with, others wanted hard engineering: What’s an SDF? Translation for the uninitiated: a Signed Distance Field is basically a map that tells you how far you are from a shape, so the computer can draw cool stuff fast.
Enter the optimizer with the hot take: skip all those neighbor checks—clamp the ray’s step to the cell boundary—but he warns it only works when each chunk contains all its geometry. So the thread split into two camps: “this is sorcery, my fan is screaming” vs. “here’s a tidy trick to make it snappier.” Either way, the star-and-eyes playground got people talking—and laughing.
Key Points
- •Domain repetition tiles SDF geometry to create the appearance of infinite shapes.
- •Ray marching evaluates only one shape at a time as a ray progresses through the scene.
- •The article demonstrates periodic tiling with both complex 3D and simplified 2D code examples.
- •Visual effects like soft shadows and ambient occlusion are achievable with SDF rendering.
- •Animated elements and hash-based variation illustrate dynamic behavior within tiled scenes.