Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sirxemic/wormhole
A wormhole simulation.
https://github.com/sirxemic/wormhole
spacetime threejs webgl webvr wormhole
Last synced: 2 months ago
JSON representation
A wormhole simulation.
- Host: GitHub
- URL: https://github.com/sirxemic/wormhole
- Owner: sirxemic
- License: mit
- Created: 2015-10-24T20:58:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-03T15:17:14.000Z (9 months ago)
- Last Synced: 2024-05-03T17:57:13.699Z (9 months ago)
- Topics: spacetime, threejs, webgl, webvr, wormhole
- Language: TypeScript
- Homepage: https://sirxemic.github.io/wormhole
- Size: 8.34 MB
- Stars: 46
- Watchers: 1
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wormhole simulation
Experience the space time curvature and strange lensing effects of a 3D wormhole in your browser.
## Mathematical details
In this simulation you see the curvature of an Ellis wormhole with a throat.
The metric used to trace all light rays is
$ds^2=dl^2+(k^2+x^2)(d\theta^2+sin^2 \theta\ d\varphi^2)$
where
$x=\max(0, |l| - a)$\
$k$ = the wormhole's interior's radius\
$a$ = half the throat's length.Due to the spherical symmetry, instead of integrating the light rays in spherical coordinates, they are first projected onto a 2D plane through the origin and integrated in 2D space (using metric $ds^2=dl^2+(k^2+x^2)d\theta^2$).
## Credits
The skyboxes were made using [Space Engine](http://spaceengine.org/).