oneshotlm
Compare all models on this prompt →

3D solar system · ling-3.0-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 3D solar system using three.js (already available as global THREE) in a single index.html file. Let me create a comprehensive solar system with:

1. Sun with glow effect
2. Orbiting planets at varied speeds and sizes
3. Orbit-drag camera controls (using OrbitControls from three.js examples or implementing custom)
4. Starfield background

Since three.min.js is pre-provided and we can't use CDN, I need to check if OrbitControls is available or if I need to implement custom orbit controls. Let me first check what files are available.

Actually, the user says "three.min.js (global THREE)" is pre-provided. I need to check if OrbitControls is also available or if I need to implement my own orbit drag controls.

Let me check the current directory first.

Let me check what files are available in the working directory.

bash {"command":"ls -la /tmp/ws/"}
toolResult

total 592 drwxr-sr-x. 2 node node 26 Aug 1 16:57 . drwxrwsrwx. 3 root node 16 Aug 1 16:57 .. -rw-r--r--. 1 node node 603445 Aug 1 16:57 three.min.js

assistant
thinking
I have three.min.js available. I need to check if it includes OrbitControls or if I need to implement custom orbit drag controls. Let me check the file briefly.

Since three.min.js is a minified single file, it likely only contains the core THREE library, not the addons like OrbitControls. I'll need to implement custom orbit-drag camera controls myself.

Let me build a comprehensive solar system with:
1. Sun with glow/emission
2. Multiple planets with varied sizes and orbital speeds
3. Custom orbit-drag camera controls (mousedown + mousemove to rotate, scroll to zoom)
4. Starfield background (particle system)
5. Nice styling and UI

Let me create this now.

Now I'll build the complete 3D solar system in a single `index.html` file with a custom orbit-drag camera, starfield, sun, and orbiting planets.

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

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

assistant
thinking
The file has been written. Let me verify it's correct and complete by reading it back and checking the structure.

The file has been written. Let me verify it's well-formed and complete.

bash {"command":"wc -l /tmp/ws/index.html && head -5 /tmp/ws/index.html && echo \"---\" && tail -5 /tmp/ws/index.html"}
toolResult

416 /tmp/ws/index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> --- animate(); })(); </script> </body> </html>

assistant
thinking
The file looks good - it's a complete HTML document with 416 lines. Let me verify it has all the key components:
1. Sun with glow effect ✓
2. 8 orbiting planets with varied speeds and sizes ✓
3. Custom orbit-drag camera controls (mouse drag, scroll zoom, right-drag pan, touch support) ✓
4. Starfield (particle system) ✓
5. UI controls (speed slider, reset view, toggle orbits) ✓
6. Planet hover info ✓
7. Saturn rings ✓
8. Earth's moon ✓
9. No external resources - uses three.min.js from local file ✓

Everything looks complete. The file is self-contained and uses only the local three.min.js.

The `index.html` is complete and self-contained (416 lines). Here's what it includes: **🌞 Sun** — Bright yellow core with 3 layered glow shells and a `PointLight` illuminating the scene. **🪐 8 Planets** — Mercury through Neptune, each with: - Unique size, orbital radius, and orbital speed - Tilted rotation axes matching real solar system inclinations - Saturn has a visible ring system - Earth has a orbiting Moon **⭐ Starfield** — 6,000-point particle sphere with warm-to-cool color variation at distances 800–2000 units. **🎮 Orbit-Drag Camera Controls** (custom implementation, no addons needed): - **Left-drag** — orbit around the scene - **Right-drag** — pan the view - **Scroll wheel** — zoom in/out - **Touch** — single-finger orbit, two-finger pinch zoom **🖥️ UI Panel** — Speed slider (0–3×), Reset View button, toggle orbit rings on/off, and a hover tooltip showing planet details.

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

modelling-3.0-flash
vendorinclusionai
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

3D solar system with sun, orbiting planets of varied sizes/speeds, rings, starfield, orbit lines, and drag/wheel camera control.

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.7%
on click1.4%
on drag2.4%
on wheel3.3%
on enter + space2.0%
on arrow keys2.1%
on w/a/s/d2.3%
frame spread32.5 / 255
console errors0
js errors none

METRICS

runtime19.5s
tokens in20k
tokens out6.5k
cached17k
cost / run$0.0000