oneshotlm
Compare all models on this prompt →

Rotating icosahedron · glm-5.2

Using the pre-provided three.min.js (global THREE), render a full-screen scene with a rotating icosahedron lit by two colored point lights, orbit-style auto-rotation, and a subtle starfield background.

⛨ sandboxed Open in new tab ↗
transcript · 6 messages
user

Using the pre-provided three.min.js (global THREE), render a full-screen scene with a rotating icosahedron lit by two colored point lights, orbit-style auto-rotation, and a subtle starfield background.

assistant
thinking
Let me check the current directory for three.min.js.
bash {"command":"ls -la /workspace"}
toolResult

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

assistant
thinking
Let me create the index.html file.
write /workspace/index.html (4603 bytes)
toolResult

Successfully wrote 4603 bytes to /workspace/index.html

assistant

Created `/workspace/index.html` — a self-contained single-file app. Summary: - **Loads** `three.min.js` via a plain `<script src="three.min.js">` tag (no CDN). - **Full-screen** WebGL canvas sized to `100vw × 100vh`, with a resize handler keeping the camera aspect and renderer in sync. - **Rotating icosahedron**: `IcosahedronGeometry` with `MeshStandardMaterial` (flat-shaded, metalness/roughness) plus a faint wireframe overlay for definition; it spins on X and Y each frame. - **Two colored point lights**: a pink/red (`0xff3366`) and a blue (`0x33aaff`) PointLight, each orbiting around the mesh for moving highlights. A dim ambient light keeps the shadowed faces barely visible. - **Orbit-style auto-rotation**: the camera traces a slow circular orbit (with a gentle vertical bob) around the origin, always `lookAt`-ing the icosahedron. - **Subtle starfield**: ~1200 points distributed on a large spherical shell, with white / faint-blue / faint-yellow tinting, slowly rotating for parallax against the dark background. `index.html` is present in the current directory and runs fully sandboxed with no network requests.

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

EVALUATION

3/5 working

Rotating icosahedron with pink/blue point lights and starfield, animates continuously but inputs don't add extra interactivity.

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 motion9.3%
on click9.0%
on drag10.3%
on wheel9.3%
on enter + space9.3%
on arrow keys7.8%
on w/a/s/d9.6%
frame spread41.4 / 255
console errors0
js errors none

METRICS

runtime52.7s
tokens in2.1k
tokens out1.8k
cached4.1k
cost / run$0.0080