Bump
I finally managed to make a kind-of-3D, kind-of-raytraced version of the simulator. Screenshot:
You can get it here:
Windows:
http://dl.dropbox.com/u/7065759/Black Hole/BHS-win32.zip
Linux:
http://dl.dropbox.com/u/7065759/Black Hole/BHS-linux-x64.zip
Why kind-of-3D? Well, it is actually 3D, but there are no objects that would let you feel the depth. The black hole itself looks the same from every direction.
Why kind-of-raytraced? I figured that raytracing it in real time would be too slow (I'm not as good at this as Artlav is
![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
), so I only used raytracing to prepare an array of angular deflections of rays emitted in different directions from different points. The arrays are then used by the shader to determine the color of the pixel it is rendering. This method isn't perfect, so there are artifacts in the rendered image, but they don't destroy everything
![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I might try to fix this in the future.
I also attempted to simulate the Doppler effect. It turned out quite nicely, though large amounts of green are a bit disturbing. I will try to find a way to model it more accurately.
Controls:
W/S/A/D/Q/E - rotate view (Q/E being for roll)
Y/H - burn forwards/backwards
G/J - burn left/right
R/T - time warp
Space - Pause/Resume (the program is paused right after launching)
Shift - holding makes movement controls more responsive
A few more notes:
For now you have to rely on visual clues during the flight. I've only included one "instrument" - the "R = ..." text in the lower right corner. It displays your distance from the black hole in Schwarzschild radii (Rs). R = 1.5 Rs is the photon sphere, or the place where theoretically light would be able to enter a circular orbit around the black hole (although such orbits are unstable). R = 1 Rs is the event horizon, point of no return. If you just fall freely towards the black hole, you probably won't even notice it. (There are some weird effects when passing the photon sphere, but they are just artifacts of the rendering method I mentioned earlier.)
Besides the artifacts, there are a few another limitations. For example, the image will go crazy when you are very far from the black hole. Also, when you fall inside with time warp > 1, the calculations might go crazy when you reach the singularity. Other than that, it should work quite nicely.
Fun thing to try: fall into the black hole with small tangential velocity (you start with 0 velocity) while looking to the side. Slow down time when close to the center. The image will become quite interesting
Hope you like it
![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)