Show HN: I built an interactive 3D three-body problem simulator in the browser

(structuredlabs.github.io)

57 points | by amrutha_ 4 days ago ago

18 comments

  • neondude 10 hours ago ago

    Feedback : The ui covers more than half my screen on mobile browser

    • tecoholic 3 hours ago ago

      +1 Please add a hide button for the UI. I love the animation. Unfortunately can’t see it fully

      • djmips 3 hours ago ago

        I set the zoom to 50% in the browser and was able to see well.

  • modeless 8 hours ago ago

    How many of these are there? https://trisolarchaos.com/

  • koolala 9 hours ago ago

    When I hit Random 3d to see a normal three-body they yeet out of existence far far away.

  • efilife 6 hours ago ago

    OP's account posts LLM generated comments almost exclusively, this is likely not an exception

  • curseofcasandra 10 hours ago ago

    The tri-Solarians could have just used this!

    • qingcharles 9 hours ago ago

      They did :) That's why they said fuck that and moved to Earth.

  • vivzkestrel 6 hours ago ago

    - i have seen a tonne of these

    - would be nice if someone at this point actually made a tutorial on how to go about making one from scratch with threejs

  • hazrmard 12 hours ago ago

    Very cool! Interesting how the choice of solver affects the solution. Euler doesn't handle misbehaved equations very well. You can see this in the Helix setup where the bodies just fly off.

  • hermitcrab 13 hours ago ago

    Random3D seems to always have all the stars heading off to infinity.

    • Nevermark 11 hours ago ago

      Occasionally two will tight spiral off together.

      (Experimentally 5/250, including 1 cool wide, almost flat spiral.)

  • ubezon 13 hours ago ago

    Very cool! nice to be able to export json too

  • kordlessagain 12 hours ago ago

    No Weber very sad.

    • koolala 9 hours ago ago

      needs a WebXR bookmarklet

  • kurthong 4 days ago ago

    Had a similar idea and built a prototype for it. :)

  • westurner 12 hours ago ago

    Notes re: Multi-body problems on "Show HN: Browser-based interactive 3D Three-Body problem simulator" (2025) https://news.ycombinator.com/item?id=45981336 which has Velocity Verlet integration method, 4th-order Runge-Kutta (RK4), and Kepler solvers

  • kurthong 4 days ago ago

    https://solgrbit.d9ng.co.kr/ Had a similar idea and built a prototype for it.