Cylinder Block Gallery
- group .........
- Galleries and grids
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/cylinder-block-gallery.mp4
- source ........
- https://ui.aryank.space/components/cylinder-block-gallery
- markdown ......
- /lab/cylinder-block-gallery.md
- human .........
- /lab/cylinder-block-gallery
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
Photographs mounted as curved panels on the inside of a tall cylinder you fly up through. Each panel is a hand-built buffer geometry bent to the cylinder's radius, so the picture wraps with the wall instead of floating flat in front of it, and its UVs are inset a tenth on each side so the edges do not smear. Panels sit in horizontal bands with a random angular jitter, the ring turns on its own at a constant crawl, and scroll velocity is injected as extra spin that decays on its own. Three.js and Lenis, no animation library.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* The panels are bent, not billboarded
Each panel is a generated buffer geometry whose vertices follow the cylinder's arc. A flat plane rotated to the same angle would visibly chord away from the wall at this radius.
* UVs are inset a tenth on each side
The horizontal UV runs 0.1 to 0.9 rather than 0 to 1, so the edge texels are never stretched across the curve. It costs a slight crop and removes the smear at the panel edges.
* Spin is base plus impulse
The ring always turns at a constant crawl; scroll velocity is added on top and is overwritten by the next scroll event. Stopping the scroll leaves the idle rotation behind rather than a dead ring.