WebGPU Sand: A Browser Terrain That Responds to Tires
A browser-based simulation combining deformable sand terrain and vehicle physics using WebGPU, Three.js, and procedural shading.

Highlights and Results
Thomasma's browser sand study couples a vehicle to deformable terrain. Its public demonstrations progress from driving to collision and destruction tests. The creator identifies Three.js and WebGPU, with custom terrain simulation, vehicle physics and procedural sand shading. Initial study.
A red vehicle drives through the simulated sand surface. Source: Thomas Ma; original browser-demo video, 49.55 s.
A collision produces vehicle debris and a sand plume in the same demonstration. Source: Thomas Ma; original video, 126.96 s.
Image source: Thomas Ma’s sand-simulation demonstration.
How It Works
The author identifies a heightmap representation and names Bekker–Wong sinkage, Mason traction and Pouliquen grain flow as ingredients. These connect tire loading, grip and granular movement to an evolving surface. The implementation is described as mass-conserving rather than a painted tire-mark effect.
WebGPU supplies compute passes and asynchronous readback for physics. That architecture allows terrain work to run on the GPU while the simulation obtains relevant feedback without a fully synchronous readback every frame. The author says there is no WebGL fallback for the complete system: WebGL2 could run the core sand pass, but not the remaining pipeline at the same speed. The collision study is described as physics-driven, without canned crash animation. Author's implementation replies.
Applications and Availability
The study illustrates terrain interaction for driving prototypes and web simulation. The precise solver equations and source implementation were not released in the reviewed material. The author's stated next step is further updates and a demo; the shared clips remain work in progress.
FAQ
Is the sand just a decal under each wheel?
The author describes an evolving heightmap with sinkage, traction and mass-conserving granular flow.
Can the complete demo fall back to WebGL2?
The author explicitly says no complete fallback is provided; the compute and readback architecture depends on WebGPU.
Could a V2Fun vehicle mesh use this simulation?
A V2Fun mesh could be proposed as the visual vehicle body. Wheel placement, mass, suspension and tire–soil parameters must be wired into the custom simulator; mesh generation does not supply those physics.




