Computing in 3D.
Real-time 3D computer science and AI visualizations — neural networks, transformer attention, diffusion sampling, sorting, pathfinding, ray tracing, and CPU pipelines.
Computing
22Bloom Filter
A Bloom filter represents a set using a bit array and k hash functions — inserting sets k bits; querying checks all k; false positives emerge as different keys hash to overlapping bits, revealing the probabilistic tradeoff.
Boids
200 simulated birds obey three local rules — separation, alignment, cohesion — and self-organise into flowing flocks that ripple, split, and re-merge through 3D space.
Cellular Automata
Three classic cellular automata run side by side — Wireworld routes electron heads along conductor paths, Brian's Brain pulses with synchronized firing, and Langton's Ant carves a path through its grid by a simple local rule.
Convex Hull 3D
An incremental Quickhull algorithm builds the convex hull of a 3D point cloud — new points are tested against current faces, visible faces get removed and replaced with triangles fanning to the new extreme point, revealing the geometric heart of the hull.
CPU Pipeline
A 5-stage CPU pipeline processes instructions — fetch, decode, execute, memory, writeback — each slot shows an instruction progressing through the stages, with hazard stalls and forwarding paths visualized when dependencies arise.
Diffusion Sampling
A denoising diffusion model samples an image — pure Gaussian noise iteratively refined over T steps as the U-Net predicts and subtracts noise, a blurry structure emerges, sharpens, and converges to a clean image.
Elliptic Curve
Point addition on an elliptic curve builds the cryptographic group — two points draw a chord, intersection with the curve and reflection yields their sum, iterating the generator G traces out the cyclic subgroup used in ECDSA.
FFT Visualizer
A time-domain signal morphs into its frequency-domain spectrum through the fast Fourier transform — the incoming waveform decomposes into its constituent sine components, bins light up at matching frequencies, then transform back to reconstruct.
Game of Life
Conway's cellular automaton runs on a 3D plane — living cells extrude as glowing pillars whose height tracks their age, gliders cross the grid, oscillators pulse in place, and chaos blooms from random seeds.
Graph Traversal
BFS and DFS explore a 3D graph from the same start node in parallel — nodes light up in the order each algorithm visits them, edges pulse as they're traversed, revealing how breadth-first spreads in waves while depth-first dives along one path.
Hash Table
A hash table inserts keys with open-addressing and chaining — a side-by-side comparison shows linear probing's walk along the bucket array versus chaining's linked-list growth when collisions strike.
Marching Cubes
Marching cubes extracts an isosurface from volumetric scalar data — each 8-corner cube consults a lookup table and emits triangles where the surface crosses its edges, sweeping cell by cell to build a smooth mesh from discrete samples.
Merkle Tree & Blockchain
A Merkle tree hashes transactions up to a root, and chained blocks each reference the previous block's hash — inserting a new transaction ripples hash recomputation up the tree, while blocks link into a tamper-evident chain.
Neural Net Training
An MLP learns a 2D classification boundary through backpropagation — the decision surface warps over epochs, weights visualize as connection thickness and color, loss descends as the network finds the pattern.
Pathfinding 3D
A* and Dijkstra search a 3D terrain grid for the shortest path — open and closed sets highlight as the frontier expands, backtrack reveals the optimal path snaking through obstacles and elevation changes.
Q-Learning Agent
A reinforcement learning agent explores a gridworld maze, learning by trial and error — ε-greedy action selection balances exploration against Q-value exploitation, the Q-table heatmap gradually carves out a policy leading from start to reward.
Quadtree / Octree
An octree adaptively subdivides 3D space around moving points — dense regions split into smaller cells while sparse regions merge, illustrating how spatial indexing accelerates collision queries and nearest-neighbour lookups.
Ray Marching SDF
Ray marching traces the camera's rays through a signed distance field — each step advances by the SDF's safe distance toward surfaces, a heatmap shows how many steps each pixel needed, while a clean shaded render emerges above.
Red-Black Tree
A red-black tree maintains balance through rotations and recoloring — nodes inserted one at a time trigger left/right rotations and color flips, guaranteeing O(log n) depth even under adversarial input.
Sorting Race
Four sorting algorithms race on identical bar landscapes — quicksort, mergesort, heapsort, and radix sort — each bar's height encodes its value, pivots/partitions highlight as the array is reorganized in real time.
Transformer Attention
A transformer's self-attention matrix lights up across layers — query-key dot products form a heatmap showing which tokens attend to which, softmax normalizes each row, multi-head attention streams from input tokens to a final representation.
Turing Machine
A 3D Turing machine runs a busy-beaver program — the tape unspools as a line of cells, the read-write head hops left and right flipping symbols, the state transitions light up in a state-graph above as the machine computes.