Skip to content

prathmesh-git/Solar-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌌 3D Solar System Simulator

A mobile-responsive interactive 3D simulation of the solar system built using Three.js and Vite.

This project demonstrates 3D graphics, animations, and user interaction without CSS animations β€” everything is rendered and animated via JavaScript and WebGL.


πŸš€ Features

  • β˜€οΈ Sun at the center of the solar system
  • 🩠 8 orbiting planets with realistic distances and sizes
  • πŸŽ›οΈ Speed control sliders for each planet (0.1Γ— to 3Γ—)
  • βœ‹ Pause/Resume animation
  • 🧱 Zoom-in on planet click
  • 🌠 Background stars and orbit rings
  • πŸ‘Ÿ Tooltips on hover with planet names
  • β†Ί Reset all speeds button
  • πŸ“± Fully responsive canvas view

🧰 Tech Stack

  • Three.js – for rendering 3D objects and animation
  • Vite – for local development and bundling
  • Vanilla JavaScript + HTML

πŸ“† Folder Structure

your-project/
β”œβ”€β”€ index.html
β”œβ”€β”€ main.js
β”œβ”€β”€ package.json
β”œβ”€β”€ node_modules/
└── README.md

πŸ’» How to Run the Project

1. Clone the project or download ZIP

Or create a new folder and add the provided files.

2. Install dependencies

Make sure you have Node.js installed, then run:

npm install

3. Start the development server

npm run dev

Vite will start a local server. Open the URL shown in the terminal, typically:

http://localhost:5173/

πŸ“Œ Notes

  • All animations are done using THREE.Clock and requestAnimationFrame
  • No CSS animations are used
  • Optimized for modern browsers and mobile-responsiveness
  • Works standalone with just Node.js and Vite

πŸ™Œ Credits

  • Powered by Three.js
  • Developed by Prathmesh Pimpalshende

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published