Skip to content

Commit b4b8c1c

Browse files
committed
Merge branch 'main' into gh-pages
2 parents e5ee225 + 445efe6 commit b4b8c1c

10 files changed

Lines changed: 1210 additions & 704 deletions

File tree

β€ŽREADME.mdβ€Ž

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</p>
77

88
## πŸ“– About
9-
<p>The project is an experimental render of a black hole, where gravity bends space around itself so much that even light becomes visibly distorted.</p>
9+
<p>The project is an experimental render of a black hole, where gravity bends space around itself so much that even reflected light becomes visibly distorted in space.</p>
1010

1111
<p>If we place a black hole in front of a star, it distorts the light from it so much that it looks like it bends the star and carves itself into it.
1212
If we add a disc ring of hot matter around the black hole, it bends the light coming from it such that it displays a new ring on a new axis and has a second inner ring.</p>
@@ -32,14 +32,13 @@ npm run dev # starts the build/watch loop and serves the app through live-server
3232

3333
<p><big>The project is pretty much done for me, but these are some improvements I might do in the future:</big></p>
3434

35-
<p>
35+
<small>
3636
1. Rewrite the CPU pipeline into WASM (AssemblyScript), including the grid.<br>
37-
2. Apply geodesics (distortion) to the background.<br>
38-
3. Add translucency and movement to the disc.<br>
39-
4. Add textures and reflections to objects, plus an orbiting system.<br>
40-
5. Cache rendered objects for a speed improvement.<br>
41-
6. Add a simple scene editor UI.
42-
</p>
37+
2. Add translucency and movement to the disc.<br>
38+
3. Add textures and reflections to objects, plus an orbiting system.<br>
39+
4. Cache rendered objects for a speed improvement.<br>
40+
5. Add a simple scene editor UI.<br>
41+
</small>
4342

4443
## πŸ“š References
4544
<small>
11.8 MB
Loading

β€Žindex.htmlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
</style>
2626
</head>
2727
<body>
28-
<canvas id="blackhole-canvas" width="500" height="500">
28+
<canvas id="blackhole-canvas" width="700" height="550">
2929
if you are reading this, this means, the content was not loaded, try refreshing site....
3030
</canvas>
3131
<script src="./dist/bundle.js"></script>

β€Žpackage.jsonβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rendering-black-hole",
3-
"version": "1.0.1",
4-
"description": "Recreational Programming: Rendering Black Hole",
3+
"version": "1.1.0",
4+
"description": "Recreational Programming <- πŸŒŒβš«πŸ’« black hole render simulation in web using TS + webGPU",
55
"main": "src/main.ts",
66
"scripts": {
77
"build": "node esbuild.config.mjs",

0 commit comments

Comments
Β (0)