oneshotlm
Compare all models on this prompt →

3D solar system · qwen3.6-35b-a3b

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 · 10 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 the pre-provided `three.min.js` library. Let me create a single `index.html` file that includes:

1. A 3D solar system with the sun and orbiting planets at varied speeds and sizes
2. Orbit-drag camera controls (I'll implement this manually since OrbitControls might be part of three.js addons, but since we only have `three.min.js`, I should implement orbit controls manually or check if OrbitControls is bundled)
3. A starfield background

Since we only have `three.min.js` (not the full library with addons), I'll need to implement orbit camera controls manually. Let me create this as a single self-contained file.

Let me first check what's in the directory to confirm the file exists.
bash {"command":"ls -la /workspace/three.min.js"}
toolResult

-rw-r--r-- 1 node node 603445 Jul 31 08:52 /workspace/three.min.js

assistant
thinking
The file exists. Now let me create the solar system. Since we only have `three.min.js` without addons, I'll implement orbit camera controls manually. Let me build a comprehensive 3D solar system.

Key features:
- Sun with glow effect
- 8 planets with varied sizes, colors, and orbital speeds
- Starfield background
- Manual orbit/pan/zoom camera controls
- Planet labels
- Orbital path visualization
- Nice lighting

Let me create this.
write /workspace/index.html (21070 bytes)
toolResult

Successfully wrote 21070 bytes to /workspace/index.html

assistant
thinking
Let me verify the file was created correctly and check it's self-contained.
bash {"command":"ls -la /workspace/index.html && echo \"---\" && head -5 /workspace/index.html && echo \"...\" && tail -5 /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 21086 Jul 31 08:53 /workspace/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 is created. Let me verify there are no external references and that it properly loads three.min.js from the same directory.
bash {"command":"grep -n \"http\\|https\\|cdn\\|external\\|fetch(\" /workspace/index.html | head -20"}
toolResult

(no output)

assistant
thinking
No external resources. The file is self-contained. Let me provide a summary of what was built.

Built **`/workspace/index.html`** — a fully self-contained 3D solar system. Here's what's included: ### Celestial Bodies - **Sun** — large glowing sphere with procedural surface detail, corona shell, and additive-blended glow sprite - **8 planets** (Mercury → Neptune) with procedurally generated textures, varied sizes, and distinct colors - **Saturn's rings** — procedural texture with banding and transparency - **Earth's Moon** — small orbiting sphere with its own orbital path - **Asteroid belt** — 2,000 particles between Mars and Jupiter ### Features - **Starfield** — 12,000 stars with color variation (white, blue-white, yellow) - **Orbit lines** — faint circular paths for each planet - **Planetary labels** — togglable sprite labels above each planet ### Camera Controls - **Left-drag** → orbit rotation - **Right-drag** → pan - **Scroll wheel** → zoom (clamped 5–500 units) - **Touch** — single-finger orbit, pinch to zoom ### UI Controls | Button | Function | |--------|----------| | ⏸ Pause / ▶ Play | Freeze/resume all motion | | ◯ Orbits | Toggle orbit path visibility | | Aa Labels | Toggle planet name labels | | ⟳ Reset View | Return to default camera angle | ### Keyboard Shortcuts - **Space** — pause/play - **+/-** — speed up/down (0.1x to 10x) The only external reference is `<script src="three.min.js"></script>` loading the local library file — zero network requests, fully sandboxed.

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.6-35b-a3b
vendorQwen
harnesspi-agent
generated2026-07-31

EVALUATION

3/5 working

Sun with orbiting planets, starfield, orbit lines visible; drag/wheel zoom camera, space toggles pause; arrows/WASD have no effect.

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.3%
on click0.5%
on drag0.6%
on wheel0.6%
on enter + space0.6%
on arrow keys0.0%
on w/a/s/d0.0%
frame spread8.4 / 255
console errors0
js errors none

METRICS

runtime80.2s
tokens in32k
tokens out8.0k
cached20k
cost / run$0.0096