Skip to content

Lekhitcoder7/solar-system1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🌌 Solar System Project πŸš€ Overview This project is an interactive 3D solar system built with Three.js, featuring smooth animations, real-time speed control, and user-friendly interactions. The goal is to provide an engaging visual representation of planetary movements using modern web technologies.

πŸ› οΈ Technologies Used

  • Three.js – For rendering 3D models and animations.
  • HTML, CSS, JavaScript – Basic web development stack for structuring and styling.
  • GSAP (optional) – Used for smooth animations and transitions.

🎬 Features βœ”οΈ Real-time planetary motion with speed adjustments. βœ”οΈ Interactive controls to zoom, pan, and rotate. βœ”οΈ Light and shading effects for realistic visualization. βœ”οΈ Optimized rendering to maintain smooth performance. βœ”οΈ Scalable design for future enhancements like asteroid belts or moons.

πŸ“‚ Project Structure /solar-system │── index.html # Main page setup │── style.css # Basic styling │── script.js # Core logic for 3D rendering & animations │── assets/ # Planet textures & models │── utils/ # Helper functions for rendering optimizations

πŸš€ Future Enhancements

  • πŸͺ Adding moons with proper orbital paths.
  • 🌍 Realistic planet textures using NASA image datasets.
  • 🌌 Implementing VR support for an immersive space experience.

πŸ“œ Credits Built by Lakshay Powered by Three.js & Web Tech

πŸš€ How to Run the Project Follow these simple steps to run the 3D Solar System simulation:

  1. πŸ“ Clone or Download the Project bash Copy Edit git clone https://github.com/your-username/solar-system.git cd solar-system Or download the ZIP and extract it.

  2. πŸ› οΈ Project Structure Ensure the project folder has these files:

css Copy Edit index.html # Main HTML file index.js # Main JavaScript logic 3. 🌐 Use a Local Server (Required for Modules) Since ES Modules (type="module") are used in index.js, you must run this project on a local web server.

Option A: Using VS Code with Live Server Install the Live Server extension in VS Code.

Right-click index.html β†’ "Open with Live Server".

Option B: Using Python (if installed) bash Copy Edit

Python 3.x

python -m http.server Then open your browser and go to:

arduino Copy Edit http://localhost:8000 4. βœ… Explore the Simulation Control planet speeds with sliders.

Pause or resume the orbits.

Hover over planets to see names.

Click on planets to zoom the camera.

Toggle between dark and light themes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published