kritb
January 16, 2025, 9:22pm
1
Throwing my hat in the ring for a Three.js solar system. Pretty simple scene, so I’d appreciate any feedback.
Demo Here
Planets are 10 times larger than they should be. This was done because it helps reduce the orbit lines shaking around too much. ¯_(ツ)_/¯
Time is scaled by 100x (faster). Maybe wait 3.65 days and Earth will do a full orbit
I think it’s decently accurate, loading the planet data and then solving the n-body simulation with a rk4 propagation model.
Also - another space model I’ve been working on…
Demo2 Here
4 Likes
Fennec
January 17, 2025, 1:28am
2
This simulation is inaccurate. Don’t believe me? See you in a few hundred million years! (or if another body introduce itself)
1 Like
kritb
January 17, 2025, 4:56am
3
lol - you had me going for a second
1 Like
kritb
January 17, 2025, 5:15am
4
Added it to GitHub in case anyone wants to see how Python gets the data
1 Like
This is quite lovely. Very cool.
1 Like
How do we show real position of stars and constellation in space?
kritb
February 5, 2025, 4:20pm
7
Skyfield, the Python I’m using for astrodynamics, provides star positions.
Once you get the stars in whatever reference frame they come in, I would think transforming them to your needed reference frame would be easy. Skyfield does a good job of that, imho.
https://rhodesmill.org/skyfield/stars.html
1 Like