Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
captainnemo729
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
Show HN: A Vanilla JavaScript 3D engine v2 to track lifetime space travel
(cosmicodometer.space)
1 points
by
captainnemo729
7mo ago
|
0 comments
2.
▲
Show HN: Built an space travel calculator with vanilla JavaScript v2
(cosmicodometer.space)
2 points
by
captainnemo729
7mo ago
|
0 comments
3.
▲
by
captainnemo729
8mo ago
Thanks! glad you liked it
4.
▲
by
captainnemo729
8mo ago
nice. i debated using three.js but didn't want the overhead/imports for a simple background. wanted to keep it raw canvas to stay zero-dependency. you're totally right about the resize jank though. the math definitely breaks
5.
▲
by
captainnemo729
8mo ago
i was just going for a synthwave/tron aesthetic. the glowing borders are a deliberate style choice, not a GPT artifact.
6.
▲
by
captainnemo729
8mo ago
thanks! glad you liked it
7.
▲
by
captainnemo729
8mo ago
fair point. i'm taking some poetic license with spacetime. treating 'distance traveled' as a proxy for age since we're all stuck on the same rock moving at the same speed.
8.
▲
by
captainnemo729
8mo ago
thanks! it was a fun weekend hack to put together. glad you liked it.
9.
▲
by
captainnemo729
8mo ago
that's a really interesting angle. i thought about it, but i was worried a log scale might abstract away the 'feeling' of the distance (making a light year look deceptively close to a kilometer). i want the user to feel small
10.
▲
by
captainnemo729
8mo ago
fair point. classic case of 'dev blindness'—i've tested it so many times i forgot it's not obvious to a new user. pushing a label fix now so it's not a guessing game. thanks.
11.
▲
by
captainnemo729
8mo ago
valid point on the visualization. i tried to map it initially, but the depressing reality is that even at 1.2 trillion km, we're basically a stationary dot on a galactic scale. a map just looked like a blank screen, so i went with the
12.
▲
by
captainnemo729
8mo ago
yeah it's actually depressing. based on the odometer's math (~850km/s), you hit the 1 Light Year mark around your 353rd birthday.
13.
▲
by
captainnemo729
8mo ago
thanks. i love those old screensavers because they were so efficient. tried to keep this one lightweight too just a simple canvas loop so it doesn't spin up the fans.
14.
▲
by
captainnemo729
8mo ago
I actually ran the numbers on time dilation! At 600km/s (0.2%), the effect is surprisingly small. We basically 'save' about 63 seconds a year compared to a stationary observer relative to the CMB. Not enough to live forever,
15.
▲
by
captainnemo729
8mo ago
The fish tank analogy is perfect. It feels illegal that we're moving this fast without a dashboard. And definitely give yours another shot. Since this is just vanilla JS, feel free to view source on mine to see how I handled the frame
16.
▲
by
captainnemo729
8mo ago
Yeah the scale difference is crazy. Once you add the Galaxy/CMB velocity, the earth's rotation basically becomes a rounding error. Good call on the number alignment. I'm using a variable-width font which makes comparing them
17.
▲
Show HN: I built a space travel calculator using Vanilla JavaScript
(cosmic-odometer.vercel.app)
54 points
by
captainnemo729
8mo ago
|
34 comments