Waypoint 04 of 12
Interactive snowball experience
How the descent, the forest and the wall work.
The homepage is one continuous mountainside. Scrolling pushes the ball from the summit to the valley floor.
Implemented
The descent
The route is a fixed line down a procedurally generated mountain. The ball's position, radius and spin are pure functions of how far down the line it is. The spin is integrated once from distance divided by radius, so the ball turns slower as it grows. Because everything is derived from scroll position, scrolling back up rewinds the ball exactly, and resizing or switching tabs never desynchronises it.
Scroll input passes through a critically damped spring before it reaches the ball, which gives the descent weight: it accelerates, carries momentum and settles instead of snapping.
Accumulation
The diameter grows from 0.6 m to about 6.5 m across the route. Fresh clumps of snow are pressed onto the surface at set distances, stay visible for a while, then get rolled in. The trail behind the ball is a groove pressed into the snow, as long as the distance travelled.
The forest and the wall
Loose stones, a timber fence, a snowbank and trees beside the line react as the ball passes. The stone wall at the bottom is pre-fractured: about 230 individual stones and a snow cap in 24 sections, with simple rigid-body motion (gravity, bouncing, friction, and being pushed out of the ball). Stones fall when the stones beneath them are knocked out. Time slows for a fraction of a second at the moment of contact. The powder cloud is a particle system lit from the sun's side, with cool shadows on the far side, and it fades into the snowfield instead of cutting through it. The forest is three kinds of conifer, each built from drooping branch whorls carrying snow.
Controls and comfort
- Push it off scrolls the page for you at a steady pace. Any scroll, touch or key gives control back.
- Skip the run jumps to the aftermath and the token information.
- Back to the summit returns to the summit with everything rebuilt.
- With reduce motion enabled in your system, camera shake, the slow-motion moment, snowfall, powder bursts and the white-out are turned off.
- Without WebGL, the page shows flat layered mountain art and all text as normal sections.
Rendering budget
The scene picks a quality tier from the device (cores, memory, screen size, pointer type) and scales terrain resolution, tree count, particle counts, shadow map size and pixel ratio. Rendering pauses when the tab is hidden or the scene is scrolled out of view. You can force a tier with ?quality=low, mid or high.