Submitted by: Veera Bhadhra
This is a mobile-responsive 3D simulation of the solar system, built using Three.js. It fulfills the requirements of the Frontend Developer Assignment.
- 🪐 Sun + 8 planets orbiting in 3D space
- 🌍 Realistic textures for Earth and others
- ☁️ Clouds, bump maps, night lights (Earth)
- 🌠 Starfield background (Three.js Points)
- 🌀 Orbital rings for each planet
- 🔄 Pause/Resume animation button
- 🎛️ Real-time speed control for each planet
- 📷 Top-down camera with orbit controls
- 🌌 Skybox environment
project-root/
├── index.html # Main solar system viewer
├── planet.html # Individual planet viewer (planet.html?name=mars)
├── style.css # Shared styles
├── README.md # This file
├── js/
│ └── main.js # Planet loading, animation, controls
├── src/
│ ├── getStarfield.js # Starfield background
│ └── getFresnelMat.js # Fresnel shader for Earth glow
├── textures/ # Earth textures
│ ├── 00_earthmap1k.jpg
│ ├── 01_earthbump1k.jpg
│ ├── 02_earthspec1k.jpg
│ ├── 03_earthlights1k.jpg
│ ├── 04_earthcloudmap.jpg
│ └── 05_earthcloudmaptrans.jpg
├── img/ # Skybox and other planet textures
│ ├── sun_hd.jpg
│ ├── saturn_ring.jpg
│ └── skybox/
│ ├── corona_ft.png
│ ├── corona_bk.png
│ ├── corona_up.png
│ ├── corona_dn.png
│ ├── corona_rt.png
│ └── corona_lf.png
- HTML, CSS, JavaScript
- Three.js (via Skypack CDN)
- OrbitControls, ShaderMaterial
- RequestAnimationFrame for updates
- Solar system in motion
- Speed sliders in action
- Code and file structure walkthrough
- Voice explanation by Veera Bhadhra
🎥 See the video file in your submission package.
- Download or clone the repo
- Open
index.htmlin any modern browser - Use UI controls or open
planet.html?name=earthto view a planet - Adjust orbital speeds using the sliders
- Press "Pause" to stop motion
| Requirement | Status |
|---|---|
| Sun + 8 planets orbit | ✅ |
| Real-time animation (rotation + orbit) | ✅ |
| Speed control sliders | ✅ |
| Pause/Resume toggle | ✅ |
| Background stars | ✅ |
| Planet viewer page with camera | ✅ |
| Code structure + comments | ✅ |
| Mobile-responsive design | ✅ |
MIT – Free to use and adapt with credit.