An open API service indexing awesome lists of open source software.

https://github.com/nir-bhay/3d-solar-system-simulation-

🌎 Interactive 3D Solar System simulation in pure JavaScript using Three.js. Realistic planets, orbital controls, and mobile-responsive UI.
https://github.com/nir-bhay/3d-solar-system-simulation-

front-end interactive simulation solar-system-3d threejs ui

Last synced: 6 months ago
JSON representation

🌎 Interactive 3D Solar System simulation in pure JavaScript using Three.js. Realistic planets, orbital controls, and mobile-responsive UI.

Awesome Lists containing this project

README

          

# 3D Solar System Simulation

A beautiful, interactive **3D Solar System** simulation built with [Three.js](https://threejs.org/) and plain JavaScript.
Easily visualize the planets, control their orbital speeds, and enjoy a responsive design across desktop and mobile.

## ✨ Features

- **Realistic planets** with NASA textures, Saturn's real rings, and glowing effects.
- **Interactive controls** to adjust the speed of each planet’s orbit.
- **Camera zoom:** Click a planet to zoom in and follow its orbit in real time.
- **Responsive UI:** Works great on both desktop and mobile.
- **Light/Dark mode** toggle.
- **Smooth animations** and subtle atmospheric effects.

## πŸš€ Getting Started

1. **Clone this repository:**
```bash
git clone https://github.com/your-username/solar-system-3d.git
cd solar-system-3d
```
2. **Open `index.html`** in your web browser (no build step needed).

## πŸ“ Project Structure

```
solar-system-3d/
β”œβ”€β”€ index.html
β”œβ”€β”€ script.js
└── (optional) responsive.css
```

- `index.html`: Main HTML file with panel UI and Three.js canvas.
- `script.js`: All 3D logic, planet data, camera controls, and UI hooks.
- `responsive.css`: (Optional) Extra CSS tweaks for mobile.

## πŸͺ Controls & Usage

- **Adjust Orbit Speed:** Use sliders in the panel for each planet.
- **Pause/Resume Animation:** Use the Pause button.
- **Zoom to Planet:** Click any planet to focus and follow it.
- **Back to Solar System:** Use the "Back" button to reset camera.
- **Light/Dark Mode:** Switch theme for better visibility.
- **Hover Planet:** See planet names as tooltips (desktop only).

## πŸ“± Mobile Friendly

- The controls panel can be collapsed for more viewing space.
- All interactive features work on touch devices.

## πŸ”— Tech Stack

- [Three.js](https://threejs.org/) for 3D rendering (CDN loaded)
- Pure JavaScript & CSS (no frameworks, no build tools needed)

## 🌏 Credits

- **Planet textures:** NASA, Wikimedia Commons (see inline image URLs).
- **Development:** [Your Name](https://github.com/your-username)

## πŸ“œ License

This project is open source under the [MIT License](LICENSE).

---

Enjoy exploring the Solar System! πŸš€