You are browsing as a guest. Sign up (or log in) to start making projects!

Trisolaris

  • 8 Devlogs
  • 13 Total hours

A command-line based 3-body problem visualiser, simulator, and renderer, with live terminal-visual modes, png-render output, or infinite brute-force configuration finder functions. Highly customisable; every aspect from masses, gravity, positions and velocities, simulation time steps, etc. can be customised with extensive CLI flags. Great as a screen saver, or for accurate (rk4) renders of three bodies. Enjoy :D

Ship #1 Pending review

I finished Trisolaris! After fighting with camera zooming and clamping, I finally have a visually smooth and cohesive real-time TUI sim of three bodies, in three glorious, distance-scaled colours, in braille. After confirming renders, saving, and infinite-brute-force methods work, I updated README with screenshots and uploaded to PyPi. Hope you like it; it's available with pip install trisolaris (or other package managers, e.g. uv tool install trisolaris).

  • 8 devlogs
  • 13h
Try project → See source code →
Open comments for this post

1h 25m 5s logged

Uploaded to Pypi! You can now use with pip install trisolaris.

Uploaded to Pypi! You can now use with pip install trisolaris.

Replying to @martin_chen_au

0
1
Open comments for this post

1h 14m 22s logged

Camera optimisations (more advanced smoothing and stricter body-within-frame regulation), plus more presets :D

Camera optimisations (more advanced smoothing and stricter body-within-frame regulation), plus more presets :D

Replying to @martin_chen_au

0
3
Open comments for this post

57m 37s logged

Added colour averaging (direct average without squares or roots; seems to look more convincing!), presets (figure 8 and ephemeral twirls for now), along with other minor changes. Screenshot shows colour averaging; green and blue overlap become a more greyish colour.

Added colour averaging (direct average without squares or roots; seems to look more convincing!), presets (figure 8 and ephemeral twirls for now), along with other minor changes. Screenshot shows colour averaging; green and blue overlap become a more greyish colour.

Replying to @martin_chen_au

0
1
Open comments for this post

45m 13s logged

Added artificial damping (unrealistic but more pretty for live rendering) for TUI live mode, along with other QoL improvements and optimisations

Added artificial damping (unrealistic but more pretty for live rendering) for TUI live mode, along with other QoL improvements and optimisations

Replying to @martin_chen_au

0
1
Open comments for this post

1h 10m 52s logged

Updated visuals, and optimised variuos aspects (e.g. trail logic, anti-singularity, etc.) while adding more cli flags for customisation (e.g. trail length). Experimented and found a few presets for cool behaviour (more intertwined path, not instantly ejecting out into infinity). Planning to add a systematic –preset flag soon!

Updated visuals, and optimised variuos aspects (e.g. trail logic, anti-singularity, etc.) while adding more cli flags for customisation (e.g. trail length). Experimented and found a few presets for cool behaviour (more intertwined path, not instantly ejecting out into infinity). Planning to add a systematic –preset flag soon!

Replying to @martin_chen_au

0
1
Open comments for this post

36m 34s logged

Infinite TUI mode! Implemented a continuous, live simulation, not unlike a terminal-based screensaver. (Forgot to update devlogs; this took much longer than 36 minutes)

Infinite TUI mode! Implemented a continuous, live simulation, not unlike a terminal-based screensaver. (Forgot to update devlogs; this took much longer than 36 minutes)

Replying to @martin_chen_au

0
1
Open comments for this post

4h 40m 54s logged

Added infinite automatic config finder with judging mechanism, to brute-force try configurations and categorise them into interesting (e.g. butterly, figure-8), uninteresting (straying off into infinity), or unsure (complex patterns for human review)

Added infinite automatic config finder with judging mechanism, to brute-force try configurations and categorise them into interesting (e.g. butterly, figure-8), uninteresting (straying off into infinity), or unsure (complex patterns for human review)

Replying to @martin_chen_au

0
1

Followers

Loading…