Continuity at scale. Worlds that load, breathe, and persist without discrete asset swaps.
trench-builder is the open-world integration demo layer of the MANIFOLD field computation system. It scales continuous field simulations into traversable, chunk-streamed environments. Traditional open worlds swap static LOD meshes; trench-builder streams continuous material tensors into Three.js geometries, keeping the simulation alive at infinite horizons.
Open worlds built on discrete assets suffer from LOD popping and static environments. If you blow up a mountain, you have to swap a mesh and write a custom crater decal.
In trench-builder, the world is a continuous 6-channel material tensor driven by hyperpoly-terrain. As chunks load, tensors are extracted into QEF meshes directly on the GPU and passed to the Three.js scene graph. There is no asset popping, only material density refinement. The world is a single, unbroken substrate.
(Placeholders — replace with actual assets)
💡 Contributor opportunity: Help capture these! See
CONTRIBUTING.md.
Requirements:
- WebGPU-capable browser
- Node.js 18+
git clone https://github.com/COMMENCINGTHESCOURGE/trench-builder.git
cd trench-builder
npm install && npm run devOpen http://localhost:8080 in a WebGPU browser.
WASD/Mouse— Spectator flightC— Toggle chunk grid overlayP— Toggle telemetry / frame budget logger
Spatial partitioning handles infinite scaling. Tensors are streamed asynchronously; as the camera moves, out-of-bounds chunks sleep while incoming chunks are generated entirely on the GPU.
Tensors are resolved via cohesion-weighted QEF into vertex and index buffers. These are mapped zero-copy to Three.js BufferGeometry for rendering.
- Streaming Target: 12 chunks/sec async generation
- Memory Ceiling: <1.5GB VRAM allocation
- Frame Budget: 16.6ms (60 FPS minimum)
Scale introduces sharp edges. trench-builder needs your systems architecture skills. See CONTRIBUTING.md.
Good first issues:
- Tune chunk prefetch radius
- Document material passthrough to Three.js
- Add frame budget logger to HUD
MIT © 2026 DaShawn McLaughlin / Guinea Pig Trench LLC
Part of the MANIFOLD ecosystem.

