A real-time WebGL visualization of a Schwarzschild Black Hole.
python2, numpy, scipy, matplotlib
solveode.py
is an odeint()-powered general solver for the photon-orbit equation described in here. It is imported as a python module and provides a minimal set of function for parallel solution for lists of initial conditions.
generatetex.py
is the script that generates the lookup texture for the deflection angle using solveode.py
. It produces deflections_tex.png
, used by the WebGL applet.
This is the webpage for the live applet, including the shader source.