# Aperture: surfaces with memory, openings with depth

Research completed 5 October 2026, before implementation. Twenty Codrops article bodies were read, including the implementation and refinement sections of the longer tutorials. This is a synthesis of lessons, not a reproduction of their code, artwork, or assets.

## Reading record

| Article                                                                                                                                                   | Lesson taken forward                                                                                                                                                                                      |
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Custom-Shaped Cursor Trail](https://tympanus.net/codrops/2026/09/24/custom-shaped-cursor-trail/)                                                         | A gesture can deposit information into a persistent field. Use bounded input, aspect-correct coordinates, and time-based decay. Afterimage retains coverage rather than reproducing its image-warp trail. |
| [ULTRAGRID Portfolio](https://tympanus.net/codrops/2026/09/30/ultragrid-portfolio/)                                                                       | Structure and material coherence matter before 3D detail. Give each research fork a dedicated room and a clear return path.                                                                               |
| [Crumpled Paper: Houdini VAT + Three.js](https://tympanus.net/codrops/2026/09/19/crumbled-paper-houdini-vat-threejs/)                                     | Deformation, interaction, and lighting normals must agree. Foldspace calculates changing normals from its parametric surface; it uses no baked Houdini data or imported paper asset.                      |
| [Wide Template](https://tympanus.net/codrops/2026/09/28/wide-template/)                                                                                   | Separate persistent scene objects from orchestration. Keep the expensive machinery inside the active experiment, rather than loading it into every gallery card.                                          |
| [The Drive](https://tympanus.net/codrops/2026/09/29/webflow-gsap-codetv-challenge/)                                                                       | Start with a mechanic that determines the experience. Afterimage is organized around opening, joining, and mending, rather than a decorative shader with unrelated controls.                              |
| [Infinite Liquid Glass Grid](https://tympanus.net/codrops/2026/09/08/building-an-infinite-liquid-glass-grid-with-three-js-webgpu-and-tsl/)                | Surface gradients can supply convincing local refraction without a costly physical glass scene. Afterimage lights the coverage boundary and offsets the underlying render.                                |
| [Drawing With Light: Lit GPU Tubes](https://tympanus.net/codrops/2026/09/07/drawing-with-light-an-exploration-of-lit-gpu-tubes-with-tsl-and-webgpu/)      | Define a moving surface in parameter space and keep the mesh allocation stable. Foldspace instances a ribbon grid and evaluates position and normals in its vertex shader.                                |
| [Infinite Loom](https://tympanus.net/codrops/2026/09/05/building-an-infinite-loom-unravelling-images-into-threads-with-three-js/)                         | Gaps and strip width change how a material reads. Foldspace’s first crowded bloom was revised to separated ribbons, with negative space throughout the passage.                                           |
| [Shape-Aware ASCII Renderer](https://tympanus.net/codrops/2026/09/04/beyond-the-luminance-ramp-a-shape-aware-ascii-renderer-in-three-js/)                 | Work at the resolution the effect needs, and stop repainting unchanged frames. Afterimage uses a smaller field than its final render; both clocks stop under reduced motion until input.                  |
| [Vercel’s Prism with vgpu](https://tympanus.net/codrops/2026/09/03/from-rays-to-meshes-building-vercels-prism-with-vgpu/)                                 | Choose the cheapest representation that preserves the intended perception. Foldspace uses actual strips with PBR lighting, not volumetric ray tracing or a huge model download.                           |
| [Real-Time Datamosh](https://tympanus.net/codrops/2026/09/02/breaking-the-frame-building-a-real-time-datamosh-effect-with-three-js/)                      | History requires separate read and write targets. Afterimage uses ping-pong textures; it never samples the target being rendered into. Its history describes openings, not corrupted video.               |
| [Eiffel Tower Catapult](https://tympanus.net/codrops/2026/09/01/bend-aim-fling-turning-the-eiffel-tower-into-a-catapult-with-three-js/)                   | A gesture needs a physical consequence. Foldspace’s tap launches a local surface wave; changing tension alters that response. There is no borrowed model or real-world map dependency.                    |
| [Volatile Nexus](https://tympanus.net/codrops/2026/08/31/volatile-nexus-tinkering-with-glass-caustics-cubes-and-sound-in-three-js/)                       | Use one impulse clock across the affected material. Foldspace evaluates a decaying, screen-local impulse in the same function used to calculate its geometry and normals.                                 |
| [Mouse-Following Square Lens](https://tympanus.net/codrops/2026/08/25/building-a-mouse-following-square-lens-effect-with-three-js-and-glsl/)              | Make UV spaces explicit, and expose parameters that change the outcome. Afterimage converts pointer coordinates into field space and offers brush size, healing, and surface controls.                    |
| [Sixty Frames for the Record](https://tympanus.net/codrops/2026/08/22/sixty-frames-for-the-record-a-three-js-game-seven-fly-throughs-and-a-wall-of-crts/) | Set a pixel workload budget, not only a DPR cap. Do not mistake JavaScript frame rate for GPU timing. These studies expose quality tiers and make no measured device-performance claim.                   |
| [Run Rob Run: Music-Reactive Goo](https://tympanus.net/codrops/2026/08/20/run-rob-run-building-a-music-reactive-goo-with-three-js-and-webgpu/)            | Separate calm baseline behavior from larger input-driven motion, and damp transitions over time. The studies run without audio; gestures supply the additional energy.                                    |
| [Relighting Images with Depth Maps](https://tympanus.net/codrops/2026/08/19/relighting-images-with-depth-maps-and-three-js/)                              | Surface normals and occlusion tell different parts of the depth story. Afterimage uses field gradients for its boundary, while the world behind it is separately rendered 3D geometry.                    |
| [Building Depth Inside Figma](https://tympanus.net/codrops/2026/09/13/building-depth-designing-and-developing-a-3d-renderer-inside-figma/)                | Let an object remain recognizable as its form and material change. Foldspace maintains one ribbon family through knot, bloom, and passage; the controls respond immediately.                              |
| [Yestalgia](https://tympanus.net/codrops/2026/09/12/yestalgia-bringing-decathlons-90s-spirit-to-life-through-a-playful-digital-experience/)               | A coherent interaction can carry personality while the interface stays simple. Gate motion by visibility and preference; give phones controls of their own readable size.                                 |
| [I Like to Play: Michael Vestergaard](https://tympanus.net/codrops/2026/10/01/michael-verstergaard/)                                                      | Tie interaction to the content, and remove machinery that contributes no visible value. These forks pursue different outcomes, rather than merely increasing the number of effects.                       |

## Two original directions

**Afterimage:** the transition becomes a persistent material. Your hand can compose multiple openings, join them, mend them, and let them drift and heal. A lit, refracting boundary connects a pearl/metal surface to an original cobalt 3D sculpture room. Exported traces are gesture recordings, not a new production recipe.

**Foldspace:** the transition becomes navigable geometry. Twenty-eight ribbons reshape through a knot, a woven bloom, and a helical passage. A changing camera makes the opening spatial. Surface impulses and recalculated normals preserve a relationship between input, shape, and light.

Material budget: material-rich stages, plain controls. Both use actual procedural WebGL geometry/shaders, not generated screenshots or third-party models. Page type, spacing, functional SVG symbols, and return navigation retain Aperture’s existing editorial system.

## Library progression

Each directory under `experimental/` contains its own copied core from commit `2f4a916` (Aperture 0.1.0), with MIT license and provenance. The renderer contract is the substantive shared experiment:

- `update(frame)` receives progress, phase, dimensions, origin, and reduced-motion preference.
- `resize(width, height)` reallocates only when dimensions change.
- `dispose()` participates in the controller lifecycle.
- The renderer owns all pixels, including the closed surface. The copied core owns interruption, completion, accessibility state, and options.

This is deliberately separate from production `src/`, public package exports, recipe v1, and the original six rooms. A useful result can later inform a renderer-neutral API after more profiling and compatibility work. No new stable API or WebGPU support is promised by these studies.

## Boundaries worth preserving

WebGL2/Three.js is the experimental rendering path. The shaders do not require WebGPU. A rendered still remains when the live backend is unavailable. Offscreen/hidden scenes stop. Reduced motion stops ambient time; direct input can still repaint, and scripted opening settles immediately. Geometry, materials, textures, observers, event listeners, and the frame clock dispose when leaving a study. Balanced pixel budgets are 480,000 on narrow canvases and 1,050,000 on wider canvases; fine mode allows 1,800,000 on wider canvases. These limits are workload decisions, not certified FPS or battery numbers.

Afterimage is a bounded, low-resolution coverage simulation, not a fluid dynamics solver. Its trace format has a 2,400-stamp and 120-second limit. Replay is a gestural reconstruction, not a pixel-identical recording across resolutions or frame rates. Foldspace’s ripple is a damped parametric displacement, not a collision-based cloth solver. Those constraints keep the experiments inspectable and independently reusable.
