π 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:
-
π 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.
-
π οΈ 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 -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.