๐Ÿ”ฌ What Is This?

Metalrain GPU Tests is an interactive visualization of a GPU-accelerated falling sand simulation engine. Watch 20+ physics scenarios run in real-time, testing everything from basic particle physics to complex ecosystems.

This isn't a game—it's a window into a physics engine. Each test validates a specific behavior: fire spreading through wood, water cycling through phase transitions, plants competing for light and water, and more.

โœจ Features

๐ŸŽฎ Interactive Viewing

  • Navigate between tests with Page Up/Down
  • Pause/Resume with Spacebar
  • Restart any test with Left Arrow
  • Watch validation progress in real-time

๐Ÿงช 20+ Physics Scenarios

CategoryWhat You'll See
Basic Physics Sand falling, powder stacking, density-based layering
Reactions Fire spreading through wood, lava meeting water, acid dissolving metal, gunpowder explosions
Phase Transitions Ice melting, water boiling to steam, steam condensing (rain!), lava cooling to rock
Fluid Dynamics Liquids leveling, multi-fluid interactions, oil floating on water
Organic Growth Seeds germinating, plants growing toward light, roots seeking water, ecosystem competition

โšก GPU-Powered

  • All physics computed in parallel via WebGPU compute shaders
  • Hexagonal grid simulation for natural liquid flow
  • Temperature propagation, wind systems, and material reactions

๐ŸŒŸ Highlight Scenarios

๐Ÿ”ฅ Fire Spreads
Watch fire consume wood, creating charcoal and ash. Temperature propagates realistically—materials ignite when hot enough.

๐Ÿ’ง Water Phase Cycle
A complete water cycle: cold water falls onto a hot finned heatsink, boils to steam, rises to the ceiling cooler, condenses back to rain, and repeats.

๐ŸŒฑ Ecosystem
Multiple plant varieties compete around a central water pool. Grass and ferns on one bank, oak and pine trees on the other. Watch roots grow toward water, stems reach for light, and leaves emerge.

๐Ÿ’ฅ Gunpowder Ignites
A line of gunpowder meets a heat source. The resulting chain reaction demonstrates pressure propagation and combustion physics.

๐Ÿ–ฅ๏ธ Requirements

  • WebGPU-capable browser (Chrome 113+, Edge 113+, or Firefox with flags)
  • Modern GPU with WebGPU support
  • Desktop recommended (keyboard controls)

๐Ÿ“– Controls

KeyAction
Space Pause/Resume simulation
Page Up Previous test
Page Down Next test
Left Arrow Restart current test
Escape Quit (native only)

๐Ÿ› ๏ธ About Metalrain

This is the test suite for Metalrain, a GPU-accelerated falling sand engine written in Rust using wgpu. The engine features:

  • Modular WGSL compute shaders composed via naga_oil
  • Hexagonal grid for natural fluid dynamics
  • Temperature, wind, and pressure systems
  • Organic growth simulation (plants, trees, ecosystems)
  • Full material reaction system

๐Ÿ“œ Technical Notes

Each scenario has validation criteria shown in the side panel. Green checkmarks indicate physics behaving correctly. This is an automated test suite that happens to make for an interesting visualization.

The simulation runs entirely on your GPU. Frame rate depends on your graphics card and the complexity of the current scenario.

Download

Download
metalrain-gpu-tests-windows.zip 10 MB
Version 2026-01-18-c4169733 18 days ago

Development log

Leave a comment

Log in with itch.io to leave a comment.