rungzero
Projects / RogueLab

RogueLab

Raise a sea with the wind, then send a rogue wave, or a rogue hole, through it and watch what it does to a kayak, a sailing yacht, a trawler or a 300 m container ship. Replay the historical ones, Draupner included.

Open full screen → Kids mode → Runs in your browser with WebGPU (WebGL2 otherwise). Best on a laptop or desktop with a graphics chip; illustrative physics, not naval architecture.

001What you can try

Any sea

Set the wind and how far it has blown, from a breeze to a hurricane-force storm, and the sea builds the way measured seas do, whitecaps and spray streaks included.

Rogue waves and holes

Send a wave more than twice the size of the sea around it, or a deep hole, through the buoy at a time you choose. The buoy graph marks it against the usual definitions.

Historical events

Draupner 1995 and other recorded rogue waves, rebuilt from their published numbers. Every number says whether it comes from a source, is derived, or is assumed.

Nine vessels

From a kayak and a jet ski to a bulk carrier and a cruise ship. Pick a heading and speed; the outcome card reports heel, slamming, water on deck and whether it survived.

Ride along

Orbit, chase or float at the surface beside the buoy or any vessel, and watch the wave come in.

Kids mode

Big picture buttons and no numbers: pick the weather, a boat and a wave, count down, and see what happens.

002How it works

The sea
Thousands of wave components drawn from a directional JONSWAP spectrum. The long waves are summed exactly on the graphics card and, term for term, by the physics, so a boat feels the wave you see; the short waves add detail with FFT cascades.
The rogue
Up to three dispersive wave groups focused at one point and moment, with the sea around them adjusted so the published crest and height hold there.
The vessels
Each hull is one triangle mesh used for both the picture and the physics: buoyancy, wave pressure, drag, slamming and breaking crests act on its panels, and a six-degree-of-freedom body answers. Capsize, flooding and damage come from stability and strength criteria, never a script.
Built with
three.js with WebGPU and its shading language, a WebGL2 fallback, and the physics in a Web Worker.