Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jgchaos
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
jgchaos
11mo ago
I just added that option. It wasn’t there when you initially looked :). Are you using one of the 3D presets/random config or are you using a 2D preset? I'll order a set of glasses so I can test. Not very familiar with this so woul
2.
▲
by
jgchaos
11mo ago
I do not currently have a set of those glasses so I can't test it, but three.js has this and it's pretty easy to add. There should be an "Anaglyph 3D" checkbox at the bottom of the configuration settings. Let me know if
3.
▲
by
jgchaos
11mo ago
Yeah, I used Claude Code, definitely started as a vibe-coded thing. First pass was just basic physics + Three.js rendering. But once I saw it working, I spent some more time on better numerical stability and adding presets from stable 3D or
4.
▲
by
jgchaos
11mo ago
This is cool thanks for sharing. I hadn't seen this.
5.
▲
by
jgchaos
11mo ago
Yes, the softening factor keeps the forces from getting too big when bodies get close together. Better for the visualization but not very accurate to leave it in.
6.
▲
by
jgchaos
11mo ago
I'm using https://threejs.org/docs/#Line2 which does support variable thickness - you can change this via the Trail Thickness slider. I think older versions did have some issues with line width.
7.
▲
by
jgchaos
11mo ago
This should be fixed!
8.
▲
by
jgchaos
11mo ago
It might be fun to add some kind of visualization showing when a body has enough energy to potentially escape the system.
9.
▲
by
jgchaos
11mo ago
Thank you! Your 2D version is great, I love seeing how different people approach this stuff. As for integrators, I currently only have Velocity Verlet and RK4 (can change in the advanced settings). I started with just Verlet, but to get som
10.
▲
by
jgchaos
11mo ago
The link points to one of the stable solutions, and there are actually quite a few of those. The problem is that there’s no general closed form that tells us exactly where the bodies will be in the future, so we rely on numerical methods to
11.
▲
by
jgchaos
11mo ago
Thanks so much, really appreciate it! I’ve been focusing the presets on stable or interesting solutions that aren’t tied to real systems, but adding a few real examples like Alpha Centauri would fit in nicely. I’ll keep that on the list for
12.
▲
by
jgchaos
11mo ago
Thanks! The Three-Body series definitely helped spark the idea, and the URL is a little nod to the books. I also took some simulation classes back in college, so the math and physics side pulled me in too. It’s crossed my mind that it could
13.
▲
Show HN: Browser-based interactive 3D Three-Body problem simulator
(trisolarchaos.com)
249 points
by
jgchaos
11mo ago
|
113 comments