hn.today

Abyssal Garden: A dreamy underwater world you can swim through (96 KB HTML)

github.com43 points4 comments
Screenshot of Abyssal Garden: A dreamy underwater world you can swim through (96 KB HTML)

Abyssal Garden is a browser-based underwater world designed for visitors to swim through rather than simply view. It features swaying kelp forests, shafts of sunlight and shimmering seabed patterns, a sunken wooden ship, a giant stone whale tail, rock arches and canyons, manta rays, fish, bubbles, and a glowing purple grotto. The project’s central idea is to create this detailed, atmospheric scene entirely with code: it uses no images, 3D models, or prerecorded sound files, and the experience is packaged in a roughly 96 KB HTML file. Its ambient soundscape is generated live, with low rumbles, whale calls, chimes, and bubbles.

The scene is rendered directly with WebGPU, without a game engine or 3D library. Each visit procedurally builds the seabed and populates it with about two million leaves and plants, tens of thousands of rocks, and thousands of corals, sponges, and fish. Visitors can steer with a mouse and keyboard or use experimental touchscreen controls; six keyboard shortcuts jump to preset viewpoints. Low, medium, and high detail settings adjust scene density and graphics, while the browser remembers settings and can lower quality if loading fails. The experience runs offline after downloading, but requires a WebGPU-capable browser such as desktop Chrome or Edge. The repository includes readable source code, build instructions, development tools, and an MIT license for reuse and modification.

Read on github.com4 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Web

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.