GravyLensing

GravyLensing is a real-time gravitational lensing demo. It takes a live camera feed, works out where the “mass” is in each frame — a person, or an object of a chosen colour — and uses an FFT-based deflection calculation to lens a background image around it, at camera frame rate.

It was built for public engagement and outreach, with support from the Goodwood Festival of Speed Future Lab. The physics is the real thing: the mask acts as a projected mass distribution, and the background image is deflected the way a distant galaxy is deflected by a foreground cluster.

GravyLensing running with a lensed background

New here? Start with Installation, then Quick start. Before running the demo in front of an audience, read Ways to run the demo — the choice between mirror mode and telescope mode shapes everything else — and Running a good demo.

Contents

Contributing

Contributions, issues, and feature requests are welcome. Fork the repository and open a pull request.

License

GravyLensing is free software made available under the GNU General Public License v3.0. See LICENSE for details.