oneshotlm
Compare all models on this prompt →

3D solar system · solar-pro4

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 · 6 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. Let me first check if three.min.js is available in the current directory, then build the single-page HTML file.

Let me check the directory first.
bash {"command":"ls /tmp/ws/"}
toolResult

three.min.js

assistant
thinking
The user wants me to build a 3D solar system using three.js. Let me create a single `index.html` file that includes:

1. Three.js loaded from the local `three.min.js`
2. Sun with glow/light
3. Orbiting planets at varied speeds and sizes
4. Orbit-drag camera controls (OrbitControls - but wait, we can't use CDN. I need to implement OrbitControls inline or write my own simple drag-to-rotate camera controls)
5. Starfield background

Since we can't use CDN for OrbitControls, I'll implement a simple drag-to-rotate camera control manually using mouse events.

Let me build this out:

- Sun: emissive sphere with a point light, maybe a glow effect
- Planets: different sizes, colors, distances, orbital speeds
- Starfield: particles
- Orbit controls: mouse drag to rotate camera around the scene

Let me write the full HTML file.
write /tmp/ws/index.html (10393 bytes)
toolResult

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

assistant
thinking
The user wants me to build a 3D solar system using three.min.js. Let me create a comprehensive single-file HTML with all the requested features:

1. Sun and orbiting planets at varied speeds and sizes
2. Orbit-drag camera controls
3. Starfield

Let me write the complete index.html file.

`index.html` is ready. Open it in a browser (or serve it locally) to see the 3D solar system. **What's included:** - **Sun** — emissive sphere with a glow sprite and point light - **8 planets** (Mercury → Neptune) — each with distinct color, size, orbital radius, speed, and axial tilt; Saturn has a ring - **Orbit trails** — faint elliptical lines showing each planet's path (tilted for realism) - **Starfield** — 6,000 colored, additive-blended stars slowly rotating in the background - **Orbit-drag camera** — mouse drag rotates the view around the origin; scroll wheel zooms; touch-friendly - **ACES tone mapping** for nicer lighting, responsive resize You can drag to orbit, scroll to zoom, and watch the planets move at their own rates.

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

modelsolar-pro4
vendorUpstage
harnesspi-agent
generated2026-08-13

EVALUATION

4/5 working

3D solar system with sun, orbiting planets of varied sizes/speeds, ringed planet, starfield, and camera responds to drag/wheel/keys.

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.9%
on click4.9%
on drag4.9%
on wheel22.2%
on enter + space6.1%
on arrow keys6.7%
on w/a/s/d4.5%
frame spread39.1 / 255
console errors0
js errors none

METRICS

runtime183.3s
tokens in8.3k
tokens out4.0k
cached1.1k
cost / run$0.0007