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

Expanding Solar System Simulator

  • 9 Devlogs
  • 14 Total hours

A pygame simulation of every known solar system in honor of the launch of the Nancy Grace Roman Space Telescope

Ship #1 Pending review

I made a simulation of every known solar system so far. I saw a video on youtube showing people how to make a basic simulation of our solar system using pygame and real physics, and I enjoyed the video so much I decided to take it a step further and make simulations of every system we know of. What was most challenging honestly was understanding how to merge physics with code, and I did have a hard time understanding how the data is structured in the Open Exoplanet Catalogue. It’s been a while since I used python but now I can say I have the hang of it again!

  • 9 devlogs
  • 14h
Try project → See source code →
Open comments for this post

1h 25m 41s logged

After almost 15 hours I FINALLY have a working simulation of every single solar system we know of so far! Honestly the last hour was the most GRUESOME because I faced sooo many errors when trying to deploy to web I had to change a lot of stuff in code but here we are! You can run this in the web or locally on your computer and you can also edit the project to use other exoplanet catalogues, such as NASA’s Exoplanet Archive. When the Nancy Grace Roman Space Telescope stars sending us back data, I will definitely be looking forward to upgrading this project!!

0
0
5
Open comments for this post

5h 6m 58s logged

I finally have a working simulation of every single solar system discovered according to the Open Exoplanet Catalogue, a project I did in honor of the successful launch of the Nancy Grace Roman Space Telescope! I need to deploy it on the web now which honestly is the biggest headache I’ve had in coding why is pygame like this… anyway, I also had to download the data in an xml file instead of retrieving it from github because of pygame complications bla bla bla but im SO CLOSE to finally deploying this project and moving on to the next. Key features include browsing and filtering through all solar systems (and checking out ours) and then clicking on one and watching a real physics simulation of planets orbiting their star take place. interesting way of seeing the scale of our universe maybe? Its currently 1am and I kinda broke the code (again) so I will show final results with simulations and everything tomorrow, here are my beautiful errors till now.

0
0
14
Open comments for this post

1h 5m 3s logged

I’m finally heading towards a SUPER exciting part. So now whenever you press on a planet you get some basic info about it retrieved from the solar system Open Data API as shown below. After taking care of that, I did some research on some APIs because I want to make a simulation of EVERY solar system known so far (and make the simulation update according to new discoveries). Of course my first choice was NASA’s Exoplanet Archive, but apparently they’re updating it or something and the links weren’t even opening so I opted for the Open Exoplanet Catalogue which is just as amazing! You can check it out here you don’t even need an API key: https://github.com/OpenExoplanetCatalogue/open_exoplanet_catalogue/tree/master . Tomorrow I will incorporate a search bar and allow users to explore other solar systems. It’s not going to look super pretty or stunningly 3D but it will be simulations of real solar systems with actual facts and that’s what matters!

0
0
3
Open comments for this post

1h 34m 23s logged

Fixed the laggy orbits and now you get images of the planets orbiting the sun instead of just colored circles! This was actually just a stupid mistake with the frames when I was half awake. ANDD… I incorporated the OpenData Solar System API!! Now, everytime you press on any object, it’s going to print its info in the terminal. Next time, I will make it display a screen with selected info.

0
0
17
Open comments for this post

41m 44s logged

I accidentally broke it partially by trying to render images for planets instead of circles which made the orbits extremely laggy. I mean I was also coding while barely being able to keep my eyes open so either I’ll fix this or drop the idea. On the bright side, I did find a great free API to upload some info about the planets and other celestial objects to my simulator. I have this idea of making like a dashboard where you can visit many actual solar systems other than ours!

0
0
14
Open comments for this post

1h 8m 15s logged

You can now adjust the timeframe to your liking and I added Pluto! Now I’m really starting to get the hang of this (at least for this project) and I’m having so much fun adding customizable features. I think next time instead of just circles I’ll render an image of each planet and integrate an API to get the current weather data for each. stay tuned!

0
0
22
Open comments for this post

1h 44m 19s logged

A very basic model completed! So I got the first 4 planets to move around the sun. Now, this was a beginner’s kind of project, so now I want to make it my own. I added a title and the Moon moving around the Earth (which doesn’t exactly look great). Next, I want to add the entire SOLAR SYSTEM (or at least as much as I can of it). I’m going to create some in and out zooming panels, the moons of other planets and I really want to implement some NASA api in some way

0
0
30
Open comments for this post

29m logged

Starting with the first 4 planets! So I’m a bit new to pygame (and it’s been a while since my last python project) so for the first step of this project I learned how pygame works through a youtube vid and set up the first four planets, once I get comfortable with it I’ll move solo. This simulation uses real physics and I plan on connecting NASA apis, moons and overlooked objects of our solar system and make it like a museum.

0
0
28

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…