Skip to content

Latest commit

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Typing SVG

Three.jsJavaScriptHTML5CSS3

Live DemoStarForks


╔══════════════════════════════════════════════════════════════════╗
║ "The cosmos is within us. We are made of star-stuff." ║
║ — Carl Sagan 🌌 ║
╚══════════════════════════════════════════════════════════════════╝

🌌 About

A high-fidelity, interactive 3D simulation of our solar system built using Three.js. Featuring realistic planet textures, accurate orbital paths, moons, and celestial mechanics — all running live in the browser.

🎯 Explore the entire solar system — from Mercury to Neptune — right in your browser.


🪐 Features

🌟 Feature📖 Description
🎨 Realistic TexturesCustom textures for the Sun, all 8 planets, and major moons
🖱️ Interactive ControlsOrbit around planets, zoom through space freely
☀️ Dynamic LightingCentral point-light source simulating real Sun illumination
🌍 Inner PlanetsMercury, Venus, Earth (Luna), Mars (Phobos & Deimos)
🪐 Gas GiantsJupiter (Galilean moons) and Saturn (Titan, Enceladus + rings)
🌀 Ice GiantsUranus and Neptune with accurate tilt and color
🛸 Orbital PathsVisible elliptical orbit rings for all planets

🌍 Celestial Bodies Included

☀️ Body🌙 Moons📝 Notes
☀️ SunCentral light source with glow effect
🪨 MercuryClosest to Sun, fast orbit
🌫️ VenusThick atmosphere, retrograde rotation
🌍 EarthLunaBlue marble with cloud layer
🔴 MarsPhobos, DeimosRed planet with 2 moons
🟠 JupiterGalilean moonsLargest planet + 4 major moons
💫 SaturnTitan, EnceladusIconic ring system
🔵 UranusIce giant with axial tilt
🌊 NeptuneFarthest planet, deep blue

🛠️ Built With

TechnologyPurpose
Three.js3D rendering engine — planets, lighting, camera
JavaScriptCore logic, animations, orbital mechanics
HTML5 / CSS3Layout, UI, canvas container

🚀 How to Run Locally

Option 1 — Clone & Open

# 1. Clone the repository
git clone https://github.com/Tcode-Motion/solar-system.git
# 2. Navigate into the projectcd solar-system
# 3. Open index.html in your browser
open index.html

Option 2 — Live Server (Recommended)

# If you have VS Code, install Live Server extension# Right-click index.html → Open with Live Server

Option 3 — View Live Demo

🔗 https://tcode-motion.github.io/solar-system//


📁 Project Structure

solar-system/
├── v1/ # Version 1 of the simulation
├── v2/ # Version 2 — improved & updated
├── index.html # Main entry point
├── sw.js # Service worker
└── README.md

🎮 Controls

🖱️ Action⚙️ Result
Left Click + DragOrbit / rotate around the solar system
Scroll WheelZoom in and out
Right Click + DragPan the camera

🤝 Contributing

Contributions, issues, and feature requests are welcome!

  • Star the repo if you like it
  • 🐛 Open an issue for any bugs
  • 🔧 Submit a pull request for improvements

👨‍💻 Author

Tanmoy — Tcode-Motion

GitHubYouTube

"Predict the future by coding it." ⚡


📄 License

This project is licensed under the MIT License.


About

solar system simulator

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages