Skip to content
← Technical Documentation

Physics Animation (Blender)

One scene, one earthquake, different sites, and what actually moves the table.

Three Animation Types, One Scene

For significant events (maximum MMI ≥ 5.0), Intensity Lab automatically generates physics-based MP4 animations. All three types share the identical Blender scene (object properties, physics constants, camera, rendering) and differ only in which displacement record drives it: View all animations →

  • City (simulated): the nearest significantly-affected city, driven by a BBP physics-based seismogram, or an empirical synthetic when no simulation is available (see Physics-Based Simulation (BBP)).
  • Station (observed): the nearest seismic station with MMI ≥ 5.0, driven by a real recorded waveform (see Observed Seismic Station Data).
  • Decay (simulated): three virtual sites at increasing distance from the epicenter, showing how shaking intensity falls off with distance.

Each is drawn in one of two scenes, Tabletop or Kitchen, from the same ground motion. Every video, plot and data file says whether its motion was Simulated or Observed.

Four different producers (the empirical synthetic, BBP, real observed waveforms, and the decay interpolation) all hand off the same displacement-array shape (t, disp_x/y/z, pga_g, pgv_ms, pgd_m, duration) to the Blender scene; the scene itself has no idea which one produced its input.

Empirical Synthetic Ground Motion

When a physics-based BBP seismogram is not available, each simulated animation begins with a synthetic accelerogram generated from the site's ShakeMap-interpolated Peak Ground Acceleration (PGA). The signal is constructed at 100 Hz using a Saragoni-Hart time-modulating envelope applied to filtered white noise:

  • Envelope shape: e(t) = t² · exp(−5t/duration): builds up then decays naturally
  • Kanai-Tajimi filter (ωg = 15.7 rad/s, ζ = 0.6) applied via IIR to reproduce soil frequency content typical of firm California sites
  • Filtered signal scaled so peak absolute acceleration matches the target PGA in m/s²
  • Two independent horizontal components: X-axis at 100% PGA, Y-axis at 70% PGA with a different random seed
  • Double-integrated to displacement (acceleration → velocity → displacement) using trapezoidal integration with linear detrending to prevent drift

The displacement time series drives the scene: the floor and table are passive kinematic rigid bodies that receive location keyframes directly from the computed displacements at each animation frame. A one-second gravity settle precedes the shaking; a one-second smooth return follows.

Ground Motion Decay Animations

The decay animation illustrates one of the most important principles in seismology: shaking intensity decreases with distance from the earthquake source. A single 4-panel video is produced showing the wave propagation map alongside table-shaking scenes at three distances simultaneously.

Layout (1280×720, 24 fps):

┌───────────────┬───────────────┐
│ Wave propagation map     │ Site 1, 5 km           │
│ P/S wavefronts + markers  │ strongest shaking        │
├───────────────┼───────────────┤
│ Site 2, 50 km         │ Site 3, 100 km        │
│ moderate shaking        │ weakest shaking         │
└───────────────┴───────────────┘

Site selection: Three virtual sites are placed at 5, 50, and 100 km from the epicenter along a bearing toward the nearest reference city more than 60 km away.

Ground motion at virtual sites: When driven by BBP (see Physics-Based Simulation (BBP)), all three sites come from one simulated rupture. Otherwise, PGA is bilinearly interpolated directly from the USGS ShakeMap grid at each site's exact coordinates (the same interpolation method used to estimate shaking at gazetteer cities), falling back to the nearest stored city estimate within 75 km, then to GMPE-predicted PGA. Reading PGA straight off the ShakeMap grid typically shows a 5–10× range in PGA between the near and far sites for a moderate-to-large event, rather than the compressed range GMPE point-source predictions produce for deep or large earthquakes: a physically realistic difference the decay animation exists to show.

Frame synchronization: The map's wavefronts are timed to a peak-shaking velocity measured from the same three ground-motion records that drive the panels (a least-squares fit through the origin, hypocentral distance vs. peak-arrival time), so the map and the panels cannot disagree: they are the same data. Fronts expand from the fault trace (a stadium shape), not from the epicenter as a point, using the same fault length and strike the rupture used.

Object Properties & Physics

Object dynamics are simulated using Blender's rigid body physics engine (20 substeps/frame, 20 solver iterations). Active objects respond freely to the moving floor and table:

Object Mass Friction Restitution Collision
Bowling pin (×3)1.587 kg0.450.35Convex hull
Wine glass0.18 kg0.380.05Convex hull
Soccer ball0.430 kg0.450.82Sphere
Apples (×5)0.182 kg0.280.28Convex hull
Chess pieces0.055–0.075 kg0.600.10Convex hull
Table (passive)–0.700.05Convex hull
Floor (passive)–0.800.65Convex hull

Object geometry is stored as OBJ mesh files baked into the worker Docker image at build time. All meshes are re-centered and scaled to real-world dimensions before physics is applied. Regulation bowling pin dimensions (381 mm tall, 127 mm COM height) and USBC mass (1.587 kg) are used. The wine glass uses a Fresnel glass material with IOR = 1.52.

Rendering & Encoding

Scenes are rendered with Blender's EEVEE rasterizer at 854×480, 24 fps, with 8 temporal anti-aliasing samples, screen-space reflections, and ambient occlusion. PNG frames are encoded to H.264 MP4 (CRF 20) via ffmpeg. A text overlay (city name, distance from epicenter, local event time, and an IntensityLab.com copyright watermark) is stamped onto frames via Pillow before encoding.

Rendering runs on on-demand GPU cloud instances. When animations are queued, the system launches an AWS EC2 instance carrying an NVIDIA T4 GPU (g4dn.xlarge), renders the queued scenes, and terminates the instance as soon as the queue empties, and a hard lifetime cap terminates it regardless, so an instance cannot be left running by a failure.

The performance difference is roughly two orders of magnitude. A single animation renders in about 6–10 minutes on the T4. The same scene rendered in software on the application server (which has no GPU, and so falls back to Mesa llvmpipe CPU rasterization) takes on the order of 10–14 hours. Observed-waveform animations are the extreme case: because they combine a split-view layout with a measured displacement time series, they never completed within the CPU render timeout at all. GPU rendering is therefore not merely an optimization for that animation type, it is what makes it possible.

GPU capacity is not always available at a given moment, so the system requests a spot instance in each availability zone in turn and falls back to a full-price on-demand instance if spot capacity is exhausted everywhere. Simulated and ground-motion-decay animations retain a CPU rendering path as a last resort, accepting the multi-hour render time; observed animations do not, since CPU rendering cannot complete them, and are instead left queued for a later attempt.

Strong ground motion is a record, not a single value

During strong shaking the ground does not move by one amount. It accelerates back and forth many times a second, and it keeps doing so for seconds or minutes. The complete measurement of that motion (acceleration sampled hundreds of times a second, in three directions) is a ground motion time series, or seismogram. It is what seismometers record and what engineers analyse.

An intensity value such as MMI VII, or a peak acceleration in %g, reduces that entire record to one number. That is the right thing to do for a map, and it is what our event pages report. But a great deal is lost in the reduction: two earthquakes can produce the same peak and behave nothing alike.

Duration and frequency are the difference. A brief, sharp pulse can rattle objects and leave them standing. Sustained shaking of the same peak amplitude, repeated over half a minute, is what topples furniture and damages structures: energy delivered again and again rather than once. Every animation on this page is driven by the full record, which is why it can show that difference at all.

Same peak acceleration — same intensity value peak peak brief pulse a few seconds — objects rattle sustained shaking tens of seconds — objects fall

Why a simulation, not just a prediction equation

A ground motion prediction equation (GMPE) answers a narrow question: given a magnitude, a distance and a site condition, what is the median peak acceleration (or spectral acceleration at one period), and how much scatter is there around it? The answer is a handful of numbers at a point. That is enough to shade a map, and it is what most rapid shaking products report.

A ground motion simulation answers a larger one. It returns a full three-component time series: the actual motion of the ground, second by second, in all three directions. Everything a scalar leaves out is in there:

  • Duration. Two sites can share a peak acceleration and shake for ten seconds or for sixty. Damage does not care only about the largest cycle.
  • Frequency content. A structure responds at its own period. A time series says what energy arrived near that period; a single peak value cannot.
  • Arrival and sequence. P-wave, S-wave, surface waves, and the gap between them, which is what makes a simulated record look and behave like a recording rather than a bar chart.
  • Near-field and directivity effects. Rupture propagating toward a site produces large velocity pulses that a distance-based regression averages away.
  • Basin response. Sedimentary basins trap and amplify long-period energy in a way that depends on the wave path, not just on the site's VS30.

That output is what an engineer needs for a response-history analysis, and it is what drives the shaking animations published here; neither is possible from a peak value alone. A physics engine has to be told where the ground is at every frame; there is nothing to hand it in a single number.

There is a second difference, about where each method's confidence comes from. A GMPE is a regression fitted to recorded earthquakes, so it is best constrained where recordings are plentiful (moderate magnitudes at moderate distances) and thinnest exactly where the stakes are highest: large ruptures, close in. A Broadband Platform seismogram is instead computed, propagating a kinematic rupture model through a regional crustal velocity model, so it is not limited to the magnitude-distance range that happens to be well sampled.

The simulated seismograms behind these animations are produced on the SCEC Broadband Platform through the BBP API, and the verification and validation evidence for that service is published separately.

One standard environment

Every animation uses the same scene, so the only thing that differs between two videos is the ground motion driving them. A wooden kitchen table carrying familiar objects of known size and weight: put two animations side by side and any difference you see is the earthquake, not the set dressing.

The Tabletop scene: a wooden table carrying a block of dice, two chess pieces, five apples, two bowling pins, a soccer ball and a mug of juice.
The Tabletop scene before the shaking arrives, from the 2019 M7.1 Ridgecrest City animation (ci38457511). The same objects appear in every animation, in both scenes; only the ground motion driving them changes.

Dice

A stacked block of standard 16 mm casino dice. Light, and the first thing to scatter.

Chess pieces

A rook and a king. Tall, narrow, and sensitive to how hard the table is pushed sideways.

Soccer ball

Rolls rather than tips, which makes the direction and duration of the shaking visible.

Bowling pins

Regulation pins, weighted low. They need real shaking to fall, so they mark the higher intensities.

Apples

A cluster of five, each about 8 cm and 180 g. They roll off the table under moderate shaking.

The objects are simulated as rigid bodies with their real masses, friction, and centers of mass. Nothing is animated by hand: the floor and table are driven by the ground motion time series, and everything on the table responds to that.

How close is the simulated shaking?

A simulated seismogram can be off by a factor of two or more at a given place. See why a simulation can differ from what was filmed.