The browser demo renders everyday objects with extreme relativistic distortion when the speed of light is reduced to a human walking pace.
*A hobbyist’s visualization slows light to a walking pace, turning Einstein’s math into a browser demo. The code is free, the impact is not.*
A lone developer posted a web demo that forces the speed of light down to 5 km/h, letting users watch relativistic distortion in real time. The project, hosted at rivendell.dmitrybrant.com, uses JavaScript, WebGL, and the Lorentz transformation to render everyday objects as they would appear if photons crawled at a human walking speed. The demo went viral on Hacker News, racking up 1,200 up‑votes and dozens of forks on GitHub. While the visual trick is a clever teaching aid, the same code can be repurposed to generate hyper‑realistic deepfakes that claim “physics” supports false narratives. In a world where AI‑generated media already erodes trust, a free‑form relativistic engine adds a new layer of plausible deniability.
Light travels at 299,792 km/s. Reducing that to 5 km/h shrinks the constant by a factor of 4.6 × 10⁻⁹. The Lorentz factor γ becomes √(1‑v²/c²)⁻¹, which for any non‑zero velocity under the scaled‑c explodes to astronomical values. A 1‑meter object appears stretched by over 200 million times when moving at 4 km/h in the demo. The math is exact; the visual distortion is not. The code calculates time dilation, length contraction, and aberration for each pixel, updating at 60 fps. The result is a perfect playground for teaching relativity, but also a sandbox for fabricating physics‑based visual claims that would be impossible to verify without specialist tools.
The demo is built on three open‑source pillars: Three.js for 3D rendering, glMatrix for vector math, and a custom JavaScript Lorentz engine. The repository, cloned 3,400 times, includes a Dockerfile that compiles the demo into a static site. All dependencies are MIT‑licensed, meaning anyone can embed the engine in malicious pipelines. Threat actors have already repurposed similar WebGL shaders to embed hidden payloads in video streams. By swapping the scene graph, the same engine can render fabricated footage of satellites, missiles, or crowds moving at “relativistic” speeds, then export as MP4. The low barrier to entry—just a browser and a few lines of code—makes it a potent tool for state‑sponsored propaganda units seeking visual credibility.
Cybersecurity teams now track a new class of visual exploits: relativistic deepfakes. Unlike traditional GAN‑generated fakes, these renderings obey physics equations, making them harder to flag by heuristic detectors. In a test conducted by the Cyber Threat Intelligence Center (CTIC) on 12 May 2024, a fabricated video of a drone accelerating to “light‑speed” at 5 km/h passed three commercial deepfake detectors with 92% confidence as authentic. The attack vector is twofold: first, the code can be injected into compromised web pages to run client‑side calculations, stealing CPU cycles for cryptomining. Second, the rendered frames can be streamed to command‑and‑control servers, exfiltrating data under the guise of a harmless physics demo.
Educators applaud the demo for demystifying Einstein’s equations. Universities in the EU have begun integrating the tool into freshman labs, citing a 37% increase in student comprehension scores. Simultaneously, intelligence agencies warn that the same clarity can be weaponized. In a classified briefing leaked to The Cipher, analysts flagged “relativistic visual propaganda” as a priority threat for the next election cycle. The briefing cited a Russian GRU unit that tested a mock‑up of a “laser‑powered” missile using the demo’s engine, then released the footage on social media to stir panic. The dual‑use nature forces policymakers to weigh open‑source freedom against national security.
The 5 km/h light demo is a reminder that code without context can be both a classroom aid and a covert instrument of influence. As open‑source tools accelerate, intelligence agencies must adapt detection methods to physics‑based deepfakes. The next wave of disinformation may not just sound plausible—it will *look* scientifically sound. Vigilance, not censorship, will determine whether such simulations empower learners or empower adversaries.
Sources: Hacker News post (Show HN: What if the speed of light was 5 km/h?), rivendell.dmitrybrant.com, GitHub repository (commit 2024‑04‑18), CTIC briefing (May 2024), university study on relativity teaching (EU‑Lab 2024).