# Blur Study Grid

**Group:** 3D and WebGL scenes  
**Recording:** [https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/blur-study-grid.mp4](https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/blur-study-grid.mp4)  
**Source:** [https://ui.aryank.space/components/blur-study-grid](https://ui.aryank.space/components/blur-study-grid)  
**Human:** https://blankinterfaces.com/lab/blur-study-grid

---

## What it is

A hundred capsules on a ten by ten grid pivot to face the pointer behind a frosted render pane, with each cell's seeded depth setting its own blur radius, diffusion ramp, opacity, and dithered edge. The original ninety-six depth samples run in one instanced WebGPU draw instead of a hundred separate meshes. Settings change live without restarting the renderer, and verified square PNGs from 2,048 to 24,000 pixels export through tiled GPU readback and stripe-streamed compression.

## Behaviour

### Every capsule aims at the pointer

One smoothed pointer position drives all one hundred axes. Each capsule points from its own grid cell toward that position on the render pane, so cells near the cursor foreshorten into dots while distant ones read as full strokes.

### Depth is the blur input

Each proxy integrates ninety-six samples through its analytic capsule. The distance from the render pane drives diffusion radius, density, opacity falloff, and the dithered edge instead of applying a screen-space blur after rendering.

### One instanced draw

The hundred transforms go into one instance buffer and a single WebGPU draw resolves every capsule, which keeps the depth integration without paying for a hundred mesh submissions.

### Depth spread is one seeded number per cell

A Mulberry32 sequence gives each cell a single offset in the range minus a half to a half. Multiplied by depthSpread it sets how far behind the pane that capsule sits, which is why the grid reads as a field at mixed sharpness rather than a flat lattice.

### Settings are a uniform write, not a restart

Changing settings on a mounted study writes uniforms and re-aims the capsules on the next frame. The renderer, geometry, and GPU context survive, so the prop is safe to drive from a slider.

### Render scale is the frame-rate control

Cost is ninety-six samples per fragment times the pixel count, so a 2x display renders four times the work for the same picture. The renderScale prop caps device pixels per CSS pixel and defaults to 1. Raise it to 2 for a pixel-exact match on a high-density screen. Exports render at their own print size either way.

### Large exports never allocate the full image

The export camera renders 1,024 by 256 pixel tiles. Rows are joined into one stripe, filtered, compressed through CompressionStream, and written to origin-private storage before the verified file downloads.

---

[View all content](https://blankinterfaces.com/sitemap.md)
