Live idealised lock-outflow estimate. Adjust the water head and sluice opening to see how discharge changes.
Torricelli's law
v = √(2 g h)Orifice discharge
Q = Cᵈ A √(2 g h)Chamber volume
V = L × W × hIdeal drain time
t ≈ V / QUses g = 9.81 m/s² and Cᵈ = 1. The displayed estimate assumes constant head, a sharp circular opening, incompressible water and no pipe, gate, friction or approach losses. Real lock drainage is unsteady: head falls during emptying, so the constant-head time is an illustrative approximation rather than an operational prediction.
Heightfield uses seeded multi-octave value noise with bank carving and a shallow feeder channel. Terrain is chunked with near/far meshes; buildings are parametric placeholders. The water shader geometry is animated visually but does not solve computational fluid dynamics.
Movement is a visual exploration controller, not a rigid-body simulator. Building mass is a coarse material-volume estimate.
Click a building to inspect it.