Every splash, drop and stain here is computed, not animated. The page runs Liquid Dynamics, a C++ fluid engine compiled to WebAssembly, and only draws what it returns. Panes of glass are broken by Glass Dynamics, the engine behind the Glass lab, running alongside it.
Controls
Pick a scene, set it up, press Go (Space). R runs it again with the same seed: the result is deterministic.
In the shot scene nothing fires until you do: click anything in the room to aim and fire there; F or Fire shoots again at the same spot, as often as you like, with whichever round is picked. Each pane takes every hit. Put glass in front of the dummy, behind it or both (a car's windscreen and rear window), any glazing from the Glass lab, as near as you like; C has a view of the inside of the glass. Follow the round (T) rides beside the round in bullet time.
Drag to orbit, scroll or pinch to zoom, C cycles the camera. Bullet time slows the clock down by itself for the fast moments (a round crosses the room in 8 ms) and back up for the drops.
Strings (S) does what a bloodstain analyst does with string at a scene: a line back from every measurable stain to where they converge, and up to the height the stain shapes give. The true origin, which the simulation knows, is drawn beside it.
Export writes a binary glTF (.glb) that Unreal (Interchange) and Unity (glTFast) import: the liquid surface as a flipbook of meshes, the drops, the glass and every shard with its motion, and the stains as decals. The stains also come as JSON for placing decals yourself, and the particles as a PLY point cache for Houdini or Blender.
What is solved
The liquid: smoothed-particle hydrodynamics held incompressible by position-based density constraints, with the liquid's own viscosity (shear-thinning for blood: the Cho & Kensey fit), surface tension as a continuum force with its real value, contact-angle hysteresis that stops a spill spreading, and walls handled analytically. Glass and liquid push each other both ways.
Drops: anything too small for the particles flies as a sphere in air (the standard drag curve; terminal speeds match Gunn & Kinzer's raindrops), breaks up above a Weber number of 12 after the Pilch & Erdman time, and leaves a stain where it lands and stays there: width from Laan et al.'s spreading law (fitted on blood), length from the impact angle, a tail the way it was going, and spines and satellite drops above Mundo's splash threshold.
Splashes: liquid thrown off faster than 2 m/s relative to the rest tears into drops of a few millimetres, as splash sheets and ligaments do; slower liquid leaves as a blob that rejoins the bulk. A surface keeps a thin film where drops land; what lands beyond it pools back into liquid, so a spill makes a puddle and a spray stays as spatter. Flying drops are drawn along their motion over a frame, as a camera would see them. A fine drop that has slowed to its terminal speed falls straight down from there, so it is landed at once where it would land: the stain is in the same place, it just appears sooner.
Glassware: the wine glass and the bottle are revolved profiles with their real masses and capacities. When they strike something, the peak force comes from Hertz contact and the wall's own shell flexibility (or the carpet's pile), the wall's bending stress from that force, and a Weibull probability decides whether it breaks. Broken glass becomes Voronoi shards, crowded round the strike, that fly as rigid bodies while the wine escapes between them.
The dummy stands where it is, or, with the ragdoll on, is a 78 kg ragdoll (the Hybrid III's mass): its capsules are point masses held at their lengths, with a spine and neck that flex a little, shoulders and hips that swing within human ranges of motion, knees and elbows that bend one way only, rocking ankles, and limbs that do not pass through the body. A hit pushes it where it strikes, so a shoulder hit turns it. In life a bullet's momentum barely moves a body (a 9 mm round moves 78 kg about 3 cm/s); with tarantinoness up, part of the energy the round deposits knocks it about too. It stands on a release stand until it is hit, then falls under gravity with the momentum the rounds left in it; its wounds, the drips from them and the stains on it go down with it.
Colour changes how the liquid looks, never how it flows: each liquid keeps its own physics whatever colour you give it, and the stains are the same colour, darker. The dotted swatch is the liquid's own colour, the rainbow one any colour at all; the choice is kept for that liquid.
tarantinoness: 1 is realistic, the measured amounts. Up from there the wounds throw more spatter in bigger, faster drops, and hits knock a ragdoll about (up to a quarter of the energy deposited). Past 5 the wounds spurt like cut arteries, a few pulses a heartbeat apart that arc across the room; 11 is Kill Bill. Either way they ooze for only a second or two, so the spatter stays as it landed. It starts green (Colour changes that).
.50 BMG: a 45.9 g bullet at 900 m/s, about 36 times a 9 mm round's energy (18.6 kJ); Glass Dynamics breaks the glass for it as in the Glass lab.
Buckshot: a 12-gauge 00 buck shell is nine 3.5 g pellets in a cylinder-bore pattern, strung out along the path; each is its own round through the glass and the dummy. When there are more drops than the device can fly, the spatter is sampled: each drop flown stands for several, so the volumes stay exact.
Spatter on broken glass: Glass Dynamics hands over the pieces of a broken pane as they form and move. Drops land on the pieces still in the frame and on those falling out, and their stains go where the pieces go: back spatter on the inside of a windscreen, forward spatter on a window falling out behind. A crazed tempered pane comes down and lets the spatter through; a laminate holds; pieces that crumble into dice take their stains with them. The export animates every piece with its stains.
The shot: the round crosses the crash dummy's capsules with Poncelet's resistance (fitted so a 9 mm round penetrates 65 cm of gelatin), throws back spatter from the entry wound and forward spatter from the exit, and the wounds drip afterwards. A pane in front of the dummy or behind it is broken by Glass Dynamics, which hands back the round's remaining speed and the hole.
Stain analysis
For each elongated stain the impact angle is read from its shape, sin(angle) = width / length, and its tail gives the direction. The lines through the stains converge on the area of convergence; each stain's distance to it times the tangent of its angle gives a height, the area of origin. Drops fly in arcs, not straight lines, so on a floor the straight strings put the origin too high; the panel shows by how much against the truth the simulation knows.
Honest limits
Below the particle size (3 to 8 mm depending on the quality setting) the liquid is drops, not a resolved surface, so a thin film or a fine splash is coarser than life. Glass pieces only a few particles heavy feel the liquid one way. The spatter volumes, drop sizes and speeds from wounds are orders of magnitude from published high-speed films, not fits (and tarantinoness turns them up: slide it to the bottom for the measured amounts), and the dummy is a target, not an injury model. The glass strength is calibrated to everyday experience (a knock never breaks a glass, a fall onto tile does), not to a test standard. The stage blood is green by default so it stays G-rated; Colour changes only its look.