How I Built a Browser-Based New Year 2027 Drone Show Generator (18,500 WebGL Drones + iPhone MP4 Export)
I built a free, browser-based New Year 2027 Drone Show Maker that turns any photo or logo into an animated 3D drone light show — complete with a ground takeoff, a rotating Fibonacci sphere, a curl-noise swarm morph, a he
I built a free, browser-based New Year 2027 Drone Show Maker that turns any photo or logo into an animated 3D drone light show — complete with a ground takeoff, a rotating Fibonacci sphere, a curl-noise swarm morph, a hexagonal dot-matrix portrait, "HAPPY NEW YEAR 2027" single-line sky lettering, and outer ring fireworks.
Everything runs 100% client-side in your browser. Your photo never gets uploaded to a server.
Try it live here: https://newyear2027.sohnics.tech/
What It Does
-
Upload any portrait, couple photo, or logo (drag-and-drop, browse, or
Ctrl+V/Cmd+Vpaste — or click Try a sample). -
Watch up to 18,500 WebGL drones perform a 25-second show:
- Ground takeoff: Drones launch in staggered waves from below the city skyline along curved paths with soft glow trails, assembling a 3D sphere from bottom to top.
- Swarm morph: The sphere loosens into a drifting 3D curl-noise cloud with velocity-stretched trails.
-
Portrait reveal: Drones lock into your photo above single-line
"HAPPY NEW YEAR 2027"lettering while blue, cyan, and white ring fireworks burst around the edges.
-
Export for social sharing: Save a crisp PNG wishes image or record a 9:16 (
1080×1920) MP4 video ready for iPhone Photos, Instagram Reels, Stories, and WhatsApp Status.
4 Interesting Engineering Problems I Solved
1. Making Photo Portraits Look Like Real Drone Art (Not a Blurry Point Cloud)
Random particle scatter makes faces look noisy and muddy. Instead, the image sampler runs a local contrast pass (CLAHE-style luminance normalization) and packs drones onto a uniform hexagonal grid.
Dark regions (eyes, hair gaps, shadows, and backgrounds) stay completely empty against the night sky, while bright contours get uniform, non-overlapping warm peach-gold dots (with optional Original Color and Black & White modes). Because every point shares a consistent dot size and spacing, faces stay recognizable even from a quick mobile glance.
2. Smooth Bottom-to-Sphere Takeoff Without Chaotic Path Crossing
When 18,500 drones lift off from the bottom edge to build a 3D Fibonacci lattice sphere, matching random launch coordinates to random sphere points creates an ugly tangled mess.
To keep the launch looking choreographed:
- Launch delays are mapped by each drone's target latitude (
sphereY), so the bottom hemisphere takes off first and the sphere fills cleanly from bottom to top. - Each drone launches horizontally aligned below its assigned sphere slot with a smooth outward curve proportional to its horizontal position (avoiding any discontinuity down the center) plus an
easeOutCubictrajectory and a damped spring settle at arrival.
3. Keeping Mobile Fast (12,000–18,500 Drones + Lazy WebGL Loading)
Loading Three.js and WebGL upfront can tank mobile page speed. On the landing page, only static semantic HTML and a lightweight preview load first; the Three.js engine, image sampler, and Web Audio ambient synth are dynamically imported only when you start a show.
The engine also adapts the drone budget (12,000 to 18,500) based on viewport size and device hardware so phones stay smooth without overheating.
4. Fixing Video Downloads for iPhone Photos & Instagram Reels
Most canvas recorders just output video/webm, which iPhone Photos refuses to play. Even trickier: Chromium often reports MediaRecorder.isTypeSupported("video/mp4") === true, yet writes VP9 + Opus inside an .mp4 container (vp09 / Opus), which still fails on iPhone and Instagram.
Here is the export pipeline that fixed it:
-
9:16 vertical compositing (
1080×1920at 30fps, ~7 Mbps): Captures an offscreen vertical canvas so desktop users and mobile users both get a clean Reels/Stories frame without stretching the face or clipping"HAPPY NEW YEAR 2027". -
MP4-first detection: Checks
MediaRecorder.isTypeSupported()in order:video/mp4;codecs=avc1.42E01E,mp4a.40.2,video/mp4,video/webm;codecs=vp9,video/webm. -
Container box inspection + lazy
ffmpeg.wasm: Safari/iOS saves native H.264.mp4directly. If a browser records WebM — or VP9-in-MP4 — the app lazily loadsffmpeg.wasmwith a"Preparing your video..."progress indicator and transcodes to H.264 (avc1) + AAC (mp4a),yuv420p, even dimensions,+faststart(moovbeforemdat). -
iPhone Web Share API: Uses
navigator.share({ files: [mp4File] })on iOS so users can tap Save Video directly into Apple Photos, with a direct download fallback everywhere else.
Try It & Share Feedback
If you want to test it with your own portrait or project logo, give it a spin here:
- Live App: New Year 2027 Drone Show
- More Projects: Sohnics
I would love to hear how it performs on your device — especially how the hex-grid contrast handles different photos and how fast the 9:16 MP4 export feels on your phone or desktop. Drop your feedback or ideas for 2027 formations in the comments!
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.