Album covers spiral into the center and dissolve into a sphere of particles, built for Recs, which is launching soon-ish(?). Scroll through it, and scroll back to reverse it. Once the camera lands on the sphere, you can grab it and spin it.
Each cover carries 4,096 particles that sample their color from the original image. All of the covers ride one shared spiral, so they reach the center in order and never pass through each other.
A sheet's dissolve is driven by noise, so its particles leave it a few at a time. The same function runs in the fragment shader that cuts away the sheet and the vertex shader that launches the particles, which keeps the two in sync.
float dissolveDelay(vec2 uv, float seed) {
vec2 p = uv * 3.5 + seed * 17.0;
float noise = valueNoise(p) * 0.6 + valueNoise(p * 2.3) * 0.3 + valueNoise(p * 5.1) * 0.1;
return clamp((uv.x * 0.6 + (1.0 - uv.y) * 0.4) * 0.55 + noise * 0.45, 0.0, 1.0) * 0.5;
}
Made with Lenis, GLSL, Three.js and React Three Fiber (R3F).
- Joey