oneshotlm
Compare all models on this prompt →

3D solar system · glm-4.5

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
thinking
The user wants me to build a 3D solar system visualization using Three.js. Let me plan what I need to create:

1. A single index.html file with:
   - CSS in a <style> tag
   - JS in a <script> tag
   - Load three.min.js from the current directory
   - No external resources or CDNs

2. Features needed:
   - Sun at the center
   - Planets orbiting at varied speeds and sizes
   - Orbit-drag camera controls (I'll need to implement orbit controls since I can't load external files)
   - Starfield background

Let me create a complete, self-contained solar system visualization.

I'll create a 3D solar system with Three.js, including the sun, orbiting planets, camera controls, and a starfield - all in a single HTML file.

write /tmp/ws/index.html (10366 bytes)
toolResult

Successfully wrote 10366 bytes to /tmp/ws/index.html

assistant
thinking
Done! I've created a complete 3D solar system in a single index.html file with:

1. **Sun** - A glowing yellow sphere at the center with a glow effect and point light
2. **8 Planets** - Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune with:
   - Varied sizes (from 1.5 to 8 radius)
   - Varied orbital distances (25 to 175)
   - Varied orbital speeds (faster inner planets, slower outer planets)
   - Distinct colors
3. **Saturn's rings** - Added as a tilted ring around Saturn
4. **Earth's moon** - Orbiting around Earth
5. **Orbit paths** - Visible ring paths for each planet's orbit
6. **Starfield** - 10,000 randomly placed stars in the background
7. **Orbit-drag camera controls** - Custom implementation allowing:
   - Click and drag to orbit around the scene
   - Scroll to zoom in/out
   - Touch support for mobile devices
8. **Responsive design** - Handles window resize

Everything is self-contained with no external dependencies except the local three.min.js file.

I've created a complete 3D solar system visualization in `index.html`. Here's what's included: **Features:** - **Sun** - Glowing yellow sphere at the center with light emission - **8 Planets** (Mercury through Neptune) with: - Realistic relative sizes and colors - Varied orbital distances and speeds (inner planets orbit faster) - Visible orbit paths as subtle rings - **Saturn's rings** - Tilted ring system around Saturn - **Earth's moon** - Orbits around Earth - **Starfield** - 10,000 stars in the background **Camera Controls:** - **Drag** to orbit around the solar system - **Scroll** to zoom in/out - Touch support for mobile devices **Technical details:** - Uses the local `three.min.js` (no CDN) - Custom orbit controls implementation - Point light from the sun illuminates planets - Responsive to window resizing - All CSS and JS inline in a single HTML file Open `index.html` in a browser to explore the 3D solar system!

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

modelglm-4.5
vendorZ.ai · GLM
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

3D solar system with sun, orbiting planets of varied sizes/colors, rings, starfield, and responsive orbit-drag camera controls.

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 motion3.3%
on click4.0%
on drag3.1%
on wheel13.8%
on enter + space22.7%
on arrow keys13.6%
on w/a/s/d3.0%
frame spread34 / 255
console errors0
js errors none

METRICS

runtime55.2s
tokens in5.8k
tokens out3.2k
cached2.6k
cost / run$0.0091