oneshotlm
Compare all models on this prompt →

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.

⛨ sandboxed Open in new tab ↗
transcript · 4 messages
user

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.

assistant

I'll create a 3D solar system visualization using Three.js. Let me build a self-contained HTML file with all the necessary components.

write index.html (10075 bytes)
toolResult

Successfully wrote 10075 bytes to index.html

assistant

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

modelqwen3-coder
vendorQwen
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

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.

idle motion1.8%
on click1.0%
on drag6.7%
on wheel2.3%
on enter + space1.7%
on arrow keys2.2%
on w/a/s/d1.6%
frame spread41.7 / 255
console errors0
js errors none

METRICS

runtime62.3s
tokens in133
tokens out2.6k
cached5.6k
cost / run$0.0032