A water balloon popped in slow motion: soft-body tearing, water that holds its shape then splashes, true time scaling and refractive water.
A water balloon popped in slow motion: soft-body tearing, water that holds its shape then splashes, true time scaling and refractive water.
No runs posted yet. Be the first: post yours and tag @wikiwayne.
POP! 10,000 FPS: The Water Balloon Lab
HOOK OBJECT: window.__balloon
Build "POP! 10,000 FPS": a high-speed camera lab where a needle pops a water balloon and the moment plays back in extreme slow motion. The rubber skin tears from the needle point and snaps away, while the water keeps the balloon's round shape in mid-air for a split second before it wobbles, sags and splashes onto a steel tray. It should feel like the best slow-motion videos, and every pop should look a little different.
LOOK
- Style: dark product studio. Black backdrop #050608, two cool rim lights and one warm key light, a glossy steel tray #8C939B on a black stand.
- Subject: a round balloon 30 cm across hanging from a thin clip, its bottom 15 cm above the tray. Translucent latex in one of four colors (red #E5322D, blue #2D6BE5, green #2DBF5A, yellow #F2C230; a new color each pop), filled with clear water that refracts the lights and sparkles at the rim. A steel needle on a small arm waits 10 cm to one side.
- High-speed camera overlay in the corners, thin monospace, never over the balloon: "10,000 FPS", the time since the pop in milliseconds (3 decimals) and the frame number (10 frames per millisecond of simulated time).
- FIRST FRAME (t = 0, no input): the whole balloon fills at least 50% of the screen height, glossy and backlit, with the needle in view and a "TAP TO POP" chip at the bottom.
MOTION / PLAY
- Pop: tap or click the balloon (or press P). The needle darts in and pricks the skin at the spot you tapped; P and the demo prick the side facing the needle.
- Tear: a tear starts at the needle point and races across the skin, crossing the balloon in about 2 ms of simulated time and splitting into 2–4 cracks. The skin peels back from the cracks and snaps away in at least 6 shredded pieces that fly off and fall.
- Water: for the first few milliseconds the water keeps the balloon's round shape with no skin on it. Then it wobbles (ripples run over its surface), sags under gravity and falls as one blob that hits the tray, throws up a splash crown and droplets, and spreads into a puddle. Water never goes through the tray.
- Playback speed (buttons and keys 1–4): 1x, 1/30x, 1/1,000x, and RAMP (the default): 1/1,000x through the tear and the floating water shape (about 12 s on screen), then smoothly speeding up to about 1/30x for the fall and splash (about 12 s). At 1x the whole pop is over in under half a second.
- Drag to orbit the camera around the balloon, wheel or pinch to zoom; the camera can't go below the tray. setCameraOrbit(azimuthDeg, elevationDeg, distance) sets the same orbit. advance(seconds) moves screen time forward that much at the current playback speed.
- After the splash settles, the tray drains and a fresh balloon in the next color lowers in on the clip over 2 s.
- ATTRACT MODE: with no input, a hands-free demo starts on load: a pop every 25–30 s in RAMP speed, with the camera slowly orbiting, ending on the splash. Any input takes over; the demo resumes after 8 s with no input.
SOUND
- A soft whoosh as the needle darts in.
- The pop: a sharp snap pitched down in slow motion (lower and longer at slower speeds, sharp at 1x).
- Rubber flaps as the shreds fly off, then a deep splash when the water hits the tray, and patters as droplets land.
- A low camera-whine drone that rises as the RAMP speeds up.
COUNTERS
stats() returns { fps, pops, cracks, shreds, splashes, playbackRate, msSincePop }.
- pops: +1 when the needle touches the skin and the tear starts. Never on load, never on a timer.
- cracks: the number of tear branches in the current pop (2 to 4), set as each branch appears.
- shreds: +1 each time a piece of skin breaks free.
- splashes: +1 when the water first touches the tray, once per pop.
- playbackRate and msSincePop: the current speed and the simulated time since the pop (these drive the overlay).
- On screen: the camera overlay plus a small "POPS N" at the top left, readable in a paused frame and never over the balloon.
CHECKS for ?test=1
With ?test=1, run an accelerated self-test that measures real positions and real events (not self-set flags) and logs "TEST n PASS" or "TEST n FAIL: reason" to the console and to window.__testResults:
1. Before the pop, the balloon fills at least 50% of the screen height, and no water vertex or particle sits outside the skin.
2. Tear: after a scripted pop, the tear front reaches the far side 1.5–3 ms (simulated) after the prick, with 2–4 cracks and at least 6 shreds.
3. Floating shape: 4 ms after the prick, skin covers less than 30% of the water surface, while the water's height and width are still within 10% of the balloon's size.
4. Fall and splash: the water reaches the tray within 15% of the free-fall time from its height, splashes goes up by exactly 1 per pop, and no water ever ends up below the tray surface.
5. Real slow motion: stepping the same pop at 1x and at 1/1,000x gives the same physical state at the same simulated time (positions within 1 mm), proving slow motion is real time-scaling and not a separate canned animation; the run has zero console errors.
KEEP IT SHORT
- Keep the whole file under about 1,500 lines (soft target) so you can write it in one pass and finish well inside 15 minutes.
- Save lines with helpers, loops and instancing, not by dropping features. Everything above must really work: no placeholders, no TODOs.
BUILD RULES (all required):
- Deliver ONE self-contained HTML file: inline CSS and JS, no build step, no local assets. Libraries only from a CDN. If you use Three.js, use exactly this import map: {"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/"}}
- It must open straight from disk in desktop Chrome and on an iPhone (Safari), fill the full screen, handle resize and touch, and stay smooth (target 60 fps).
- It must look stunning in the very FIRST frame: no black screen, no loading wait, no tiny subject. The main subject fills at least 50% of the screen height.
- SOUND (required): all sound is made in code with Web Audio (no audio files). Show a small "🔊 TAP FOR SOUND" chip; on the first tap create ONE AudioContext, route everything through a master gain of 0.6 into a DynamicsCompressor, and hide the chip. Also expose enableAudio() on the hook object named at the top.
- Expose the hook object named at the top with: setCameraOrbit(azimuthDeg, elevationDeg, distance) (or an equivalent camera setter), advance(seconds) that steps the simulation exactly that much for still captures, enableAudio(), and stats() returning {fps, ...the counters named above}. Use a fixed random seed of 360 so every run is the same.
- Every on-screen counter must count a real event you can see happen. No fake numbers.
- No text overlapping the subject; any label must be readable in a paused frame.
- No brand logos, no real people, no copyrighted characters, brand names or logos.
FAILURE MODES TO AVOID
- The balloon just vanishing or bursting into confetti. The skin must tear from the needle point, and the water must hold the balloon shape for a moment.
- Slow motion done as a separate canned animation, or speed changes that make the physics jump.
- Water that looks like a gray solid ball. It must refract, sparkle and ripple.
- Water passing through the tray, or falling forever off the bottom of the screen.
- The tear starting in the same place every time, no matter where you tap.
- A scene so dark the balloon can't be seen, or a white blown-out frame.
- Overlay text over the balloon.
- The same variable declared twice, or methods called on objects that don't exist yet.
SELF-TEST LOOP
- If you can run code: build the file, open it, read the console, run ?test=1, and take screenshots at 3 s, 10 s and 30 s at 1280x720 and 390x844. Look at the screenshots and fix what looks wrong. Fix and retest until all 5 checks pass with zero console errors. Mark anything you could not run as UNMEASURED; never invent results.
- If you are chat-only: go through this prompt line by line, check your code against each line, and fix anything that would fail. Then write one corrected, complete file.
- Final answer: ONE complete HTML file in ONE code block, then the 5 checks marked PASS, FAIL or UNMEASURED. No snippets, no "rest unchanged".
Built one? Post it on X and tag @wikiwaynePost on X