Loading three.js. If this note stays, the browser could not load or start it (WebGL may be switched off: Settings > System > "Use graphics acceleration when available").

This is the diffusion page in three dimensions. A particle is released at some distance from a seed and wanders at random, one step at a time in x, y and z, until it touches the cluster, where it sticks; then the next one is released. The cluster that grows is a fractal tree in space, about 2.5-dimensional (the flat version is about 1.7): its long arms shield its inside, because a wandering particle is much more likely to hit a tip than to get into a gap. Real things grow like this in three dimensions too: soot and aerosol clusters, the metal in an electrodeposit, mineral crystals.

Center starts from a single cell. Falling starts from the whole bottom plane and releases the particles from a square above the cluster, so a forest of trees grows up; with Fractint's narrow release square, twice the border, they all pile onto one, and the release width spreads them. Spherical cavity starts from a closed shell and grows inward from it. (Fractint's 2D version uses a square cavity; the walls of a cube would only be reached near the middle of its faces by particles released on a sphere, so the 3D cavity is a sphere.) A particle sticks when it touches the cluster with any of its 26 neighbors, as the flat version does with its 8, or only with the 6 faces, which grows a different, denser cluster and takes longer.

A walk from far away would take forever, so the particles are released from a box (or sphere) only border cells beyond the cluster, and the box grows with the cluster; a small border makes a denser cluster, a larger one a sparser cluster with longer arms. Color by position paints each particle by its distance from the middle (its height, when falling); by age, color shift 0 gives every particle a random color and any other number steps the color on by one every so many particles, which shows how old each part is. The cluster is finished when it reaches the edge of the grid. Each cell is a cube, all drawn as one mesh (one draw call), so a cluster of a hundred thousand particles still turns smoothly.

This page was created with Claude Code.