3D solar system · qwen3-coder
Using the pre-provided three.min.js (global THREE), build a 3D solar system with the sun and orbiting planets at varied speeds and sizes, orbit-drag camera controls, and a starfield.
transcript · 4 messages
Using the pre-provided three.min.js (global THREE), build a 3D solar system with the sun and orbiting planets at varied speeds and sizes, orbit-drag camera controls, and a starfield.
I'll create a 3D solar system visualization using Three.js. Let me build a self-contained HTML file with all the necessary components.
index.html (10075 bytes)Successfully wrote 10075 bytes to index.html
I've created a complete 3D solar system visualization in a single HTML file. The implementation includes: 1. A vibrant sun with a glowing effect at the center 2. Eight planets (Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune) with: - Realistic relative sizes - Varied orbital speeds and distances - Unique colors for each planet - Rotation on their own axis 3. Visual orbit paths for each planet 4. A starfield background with 10,000 stars 5. Interactive camera controls: - Drag to rotate the view around the solar system - Mouse wheel to zoom in/out 6. Responsive design that adapts to window resizing The visualization uses Three.js (referenced via the provided three.min.js file) and is completely self-contained with all CSS and JavaScript in the HTML file. The planets orbit at different speeds with Mercury (closest to the sun) moving fastest and Neptune (farthest) moving slowest, accurately reflecting our solar system's dynamics. To view the solar system, simply open the index.html file in any modern browser. You can: - Click and drag to rotate your view - Use the mouse wheel to zoom in and out - Watch as planets rotate on their axes and orbit the sun at different speeds The implementation is optimized for performance and visual appeal with proper lighting, colors, and spacing.
TAKE IT TO CODE
A single self-contained HTML file — copy it and open in any browser, or reuse the prompt with your own pi-agent run.
RUN
EVALUATION
Sun, orbiting planets of varied sizes/colors, starfield, and orbit-drag zoom controls all work smoothly.
Vision grade · anthropic/claude-sonnet-5
MEASUREMENTS
Raw readings from the capture, not a verdict — the grade above is the only judgement. Percentages are how much of the screen changed; the measure under-reports sparse motion on a dark background.