oneshotlm
Compare all models on this prompt →

3D solar system · glm-4.7-flash

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 · 8 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 single-page web app with a 3D solar system using three.min.js. Let me break down the requirements:

1. Sun and orbiting planets
2. Varied speeds and sizes for planets
3. Orbit-drag camera controls
4. Starfield background

I need to:
1. Read the three.min.js file to understand what's available (though it's a minified library)
2. Build a self-contained index.html with:
   - CSS in a <style> tag
   - JS in a <script> tag
   - Load three.min.js from the current directory
   - Create the 3D solar system

Let me start by checking what files are in the current directory, especially the three.min.js file.

I'll build a 3D solar system with the pre-provided three.min.js. Let me first check what files are available and then create the single-page app.

bash {"command":"ls -la"}
toolResult

total 644 drwxrwxrwx 3 node node 96 Jul 8 00:47 . drwxr-xr-x 1 root root 4096 Jul 8 00:47 .. -rw-r--r-- 1 node node 603445 Jul 8 00:47 three.min.js

assistant
thinking
Good, three.min.js is present. Now I'll create a comprehensive single-page web app that includes:
1. A scene with the sun (emissive mesh)
2. Planets with varied sizes and orbital speeds
3. Orbit paths visible
4. Camera orbit controls (I'll implement this manually since we need to use the existing three.min.js)
5. Starfield background
6. Proper lighting and materials

Let me write the complete index.html file.
write index.html (14558 bytes)
toolResult

Successfully wrote 14558 bytes to index.html

assistant
thinking
The file has been created. Let me verify it was written correctly and that the app is working as expected by checking if the file exists and has the correct content.
bash {"command":"wc -l index.html && file index.html"}
toolResult

405 index.html /bin/bash: line 1: file: command not found Command exited with code 127

assistant
thinking
Good, the file is there. The 3D solar system app is complete with:

1. ✅ Sun with glow effect
2. ✅ 8 planets with varied sizes (Mercury to Neptune)
3. ✅ Varied orbital speeds (Mercury fastest, Neptune slowest)
4. ✅ Saturn's ring
5. ✅ Starfield background with 15,000 stars
6. ✅ Manual orbit-drag camera controls (drag to orbit, scroll to zoom, right-click to pan)
7. ✅ Visible orbit paths
8. ✅ Planet labels
9. ✅ Speed control slider
10. ✅ Toggle buttons for orbits and labels
11. ✅ Reset view button
12. ✅ Responsive design
13. ✅ All code in a single self-contained HTML file using the pre-provided three.min.js

The app is ready to run.

Created `index.html` - a complete 3D solar system with: **Features:** - ☀️ Glowing sun with pulsing effect - 🪐 8 planets with realistic relative sizes and orbital speeds - 🪵 Saturn's iconic ring - ✨ 15,000-star background field - 🔄 Visible orbit paths - 📍 Planet labels that follow them in 3D space **Controls:** - **Left-drag**: Orbit camera around the scene - **Scroll**: Zoom in/out - **Right-drag**: Pan the view - **Speed slider**: Adjust simulation speed (0x to 5x) - **Toggle buttons**: Show/hide orbit lines and planet labels - **Reset view**: Return to default camera position All code is self-contained in a single file using only the provided `three.min.js`. The planets orbit at realistic relative speeds (Mercury fastest, Neptune slowest) and scale down appropriately from Jupiter to Earth.

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.7-flash
vendorZ.ai · GLM
harnesspi-agent
generated2026-07-08

EVALUATION

4/5 working

3D solar system with sun, orbiting planets, rings, starfield, and responsive drag/wheel camera controls; orbits animate 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 motion0.9%
on click1.4%
on drag4.2%
on wheel8.0%
on enter + space3.3%
on arrow keys3.2%
on w/a/s/d2.4%
frame spread43.4 / 255
console errors0
js errors none

METRICS

runtime72.4s
tokens in5.5k
tokens out4.2k
cached8.6k
cost / run$0.0021