Story

On air. The free wire runs 15 minutes behind live. See pricing

World, crypto, finance and tech news, scored for impact.

TechHacker NewsFiled 5 h ago

Cloth simulation with XPBD | ricar.do

Open the sourceReported by Hacker News, ricar.do, 27 November 2026

Not investment advice. Muhabbit scores how much a story may matter, not which way to trade.

Developer Ricardo Cabello has released a cloth simulation system built on an extended position-based dynamics (XPBD) solver for his in-progress native 3D engine, drie, which uses sokol_gfx for rendering. The solver runs in compute shaders after originally operating on the CPU, a shift he says reduces stutter even though the raw performance gap was modest. The system offers deterministic replay, crease preservation so pleated curtains retain their shape, coarse simulation with fine display, two-way collision with objects and other cloth, aerodynamic drag, and a sleep mode that cuts compute when idle. Cabello flags self-tangling and rips as unresolved problems, noting points can slip through gaps in the coarse mesh—spaced roughly 1.7cm in the demos—and through sharp or thin geometry, with a spatial hash used to keep separate cloth sheets from merging. He is experimenting with signed distance fields to replace collision meshes, and the WebGPU-based demos, including a handkerchief test and a furniture drape scene, are available for browser testing.

Muhabbit's AI wrote this summary in its own words from Hacker News's report. It can get details wrong, so check the source.

Named in this story

drie, XPBD, sokol_gfx