GitXplorerGitXplorer
l

Interstellar-Wormhole-Ray-Tracing

public
9 stars
5 forks
2 issues

Commits

List of commits on branch master.
Unverified
8186e3b773e33aca277b60e809041e45cc45c78c

Update README.md

llennrt committed 8 years ago
Unverified
6e2a47dd2d5770761250d92d6b4034c864a056b4

Updated readme

llennrt committed 8 years ago
Unverified
cf7b320edcab72a8b48d9de5fe3367873d3e497b

Deleted .txt version of InterstellarWormholeFinalBuild_UNPARALLEL

llennrt committed 8 years ago
Unverified
6142d8aad3d431e44306719c5ed8eed36b4f4a78

Deleted .txt version of InterstellarWormholeFinalBuild

llennrt committed 8 years ago
Unverified
0967c8f5a7b3cad6c124deb56d99eb7d8f349342

Added notebook version of InterstellarWormholeFinalBuild_UNPARALLEL.txt

llennrt committed 8 years ago
Unverified
03e9df70eb87008eb1cf5bdac4837177336320e7

Added notebook version of InterstellarWormholeFinalBuild.txt

llennrt committed 8 years ago

README

The README file for this repository.

Interstellar-Wormhole-Ray-Tracing

As part of a computational methods in physics class, my two team members and I created this Mathematica notebook which implements a ray tracing map for the light from a wormhole. Our approach was based on the paper by Kip Thorne et al. (http://arxiv.org/abs/1502.03809)

We have implemented parallelized and nonparallelized versions of the raytracing computation. The parallelized version leverages Mathematica's ParallelTable.

To run the notebook, place files named "GargantuaSide.jpg" and "SaturnSide.jpg" in the same directory as the notebook file. These images will represent the two sides of the wormhole. To increase the accuracy of the algorithm at the cost of increased computation time, make the division size smaller in the ray-trace computation. For example, change the two instances of 512 in CreateMap to 1024. One can adjust the location of the camera by adjusting theta_c, phi_c, and l_c. One can also adjust the wormhole's lensing width, mass, diameter, and length. These parameters are more fully described in the aforementioned paper.

One can use the images provided by Double Negative VFX (http://www.dneg.com/dneg_vfx/wormhole/) to render images which resemble the wormhole from Interstellar.

We used the following star field image and Saturn image:

With these images and our ray tracing implementation (with 1024 divisions), we obtained the following image:

This rendering simulates the perspective of a camera at the star field location looking into a wormhole which leads to Saturn.