Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Sumeets-Code/The_Solar_System

Open more actions menu

Repository files navigation

🌌 The Solar System — 3D Model

Stars Forks Issues License Made with JS

A 3D interactive visualization of the Solar System built using modern web technologies.
Explore the Sun and planets, observe orbital motion, and understand planetary structure — all directly in your browser.

This project is ideal for learning, demos, and educational purposes.


📚 Table of Contents


✨ Features

  • 🌞 3D Sun and planetary models
  • 🪐 Realistic orbital motion
  • 🎥 Smooth animations
  • 🖱️ Interactive browser-based visualization
  • ⚡ Fast development setup using Vite
  • 🎓 Educational and beginner-friendly

🧠 Technologies Used

  • JavaScript — Core logic and animations
  • HTML5 & CSS3 — Structure and styling
  • React & Vite — Lightning-fast build tool
  • Three.js — 3D rendering

🚀 Live Demo

https://sumeets-code.github.io/The_Solar_System/

📥 Installation

Clone the repository

git clone https://github.com/Sumeets-Code/The_Solar_System.git
cd The_Solar_System

Install dependencies

npm install

▶️ Running the Project

Start development server

npm run dev

Open the URL shown in the terminal (usually):

http://localhost:5173

Build for production

npm run build

🧩 Project Structure

The_Solar_System/
├── public/
|   └── Textures/                       # Planet textures and assets
|
├── src/                                # Core JavaScript & 3D logic
|   ├── Components/
|   |   ├──AnimationControler.jsx       # UI for controlling animation        
|   |   ├──EarthGroup.jsx               # Earth and Moon group
|   |   ├──SaturnGroup.jsx              # Saturn and rings group
|   |   ├──Planet.jsx                   # Generic planet component
|   |   └──Sun.jsx                      # Sun component
|   ├──App.jsx                          # Main application logic
|   ├──index.css                        # Global styles
|   └──main.jsx                         # Entry point for React
|
├── index.html                          # Entry point
├── package.json                        # Dependencies & scripts
├── vite.config.js                      # Vite configuration
├── .gitignore
└── README.md

⚙️ How It Works

  • Each planet is represented as a 3D object
  • Orbital motion is calculated using rotation loops
  • Animations update every frame
  • Continuous rendering ensures smooth motion

This design makes the project easy to extend with moons, rings, labels, or real astronomical data.

🌱 Future Enhancements

  • 🛰️ Add moons and asteroid belt

  • 📏 Realistic scale and distances

  • 🏷️ Planet labels and info panels

  • 🎮 Camera controls (zoom, rotate, pan)

  • 🌌 Background stars and textures

🤝 Contributing

Contributions are welcome 🚀

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Submit a Pull Request

📄 License

This project is licensed under the MIT License. You are free to use, modify, and distribute it.

❤️ Acknowledgements

  • NASA and open astronomy resources
  • Three.js community
  • Open-source contributors

About

3D Model of Solar System

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.