video
video |
---|
π 3D Solar System Animation β All Planets
This project is a 3D animation of the Solar System built using Python's matplotlib
and numpy
.
It visualizes the orbits of all eight planets around the Sun in an interactive and animated 3D model.
Developed by Eris Dataworks, part of the Berinspa open science and technology initiative.
Licensed under the MIT License.
π― Features
- Saves animation as GIF or MP4 (with fallback to PNG if rendering fails)
- Fully open source and easy to modify
πͺ Planet Data Included
Planet | Distance (AU) | Relative Speed | Color | Size |
---|---|---|---|---|
Mercury | 0.39 | 4.8 | Gray | 50 |
Venus | 0.72 | 1.8 | Orange | 80 |
Earth | 1.00 | 1.0 | Blue | 100 |
Mars | 1.52 | 0.8 | Red | 60 |
Jupiter | 5.20 | 0.3 | Brown | 400 |
Saturn | 9.58 | 0.2 | Gold | 350 |
Uranus | 19.22 | 0.1 | Light Blue | 200 |
Neptune | 30.05 | 0.06 | Dark Blue | 200 |
Distances are in Astronomical Units (AU). Speeds are relative to Earth's orbital speed.
π¦ Requirements
Install dependencies:
pip install numpy matplotlib To save as MP4, install FFmpeg:
Linux: sudo apt install ffmpeg
Windows: Download from ffmpeg.org and add it to PATH
To save as GIF, install Pillow:
π Usage Run the script:
python3 3d.py The animation will be saved as:
3d-solar.gif (if Pillow is available)
3d-solar.mp4 (if FFmpeg is available)
3d-solar.png (fallback static image)
python3 mercury.py The animation will be saved as:
mercury_surface.mp4
python3 venus.py The animation will be saved as:
venus_surface.mp4
............
π Code Overview The SolarSystemAnimation class handles:
Axis setup and scaling
Orbit paths and planet rendering
Frame-by-frame position updates
Rotating 3D camera
Saving the animation in multiple formats
Planet data is stored in the PLANET_DATA list, making it easy to adjust colors, sizes, distances, and speeds.
............. π License This project is licensed under the MIT License.
π’ About Eris Dataworks Eris Dataworks is part of Berinspa, dedicated to:
Open source technology
Data automation and AI
Educational and scientific tools
We believe in open data and open code as foundations for innovation. ..............
π€ Contributions We welcome contributions! You can:
Improve graphics (textures, lighting, labels)
Add moons, asteroid belts, or comet paths
Make orbits more realistic (elliptical, inclined)
Submit a Pull Request or open an Issue to discuss ideas.
π¬ Contact π§ Email: [email protected] π§βπ» GitHub: github.com/eris-dataworks
- Downloads last month
- 126