Scroll Tunnel 3D

group .........
3D and WebGL scenes
markdown ......
/lab/scroll-tunnel-3d.md
human .........
/lab/scroll-tunnel-3d

── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────

An endless depth tunnel of images: photos ring an ellipse four at a time and stack back along the Z axis, while wheel, drag, and idle motion pull the camera forward through them. Each layer wraps in depth so the tunnel never ends, and a per-layer black overlay fogs frames in from the far end and out as they pass the lens. One requestAnimationFrame loop, no animation library.

── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────

  • * Endless by wrap

    A fixed set of layers wraps in Z with a modulo, so the camera can fall forever through a handful of rings. Far frames re-enter from the back rather than running out.

  • * Overlay is the fog

    Depth is faked with a per-layer black overlay, not real fog. Its opacity is a hand-written curve of Z: frames fade in from the far end, hold clear through the visible band, and black out as they pass the lens.

  • * One target, three inputs

    Wheel, drag, and idle autoplay all push a single scroll target that is lerped into the current depth, so every input shares the same soft, mechanical follow.