oneshotlm
Compare all models on this prompt →

Rotating icosahedron · deepseek-v4-flash-0731

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 · 8 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
The user wants a single-page web app in index.html using the provided three.min.js. Let me check if the file exists first.
bash {"command":"ls -la /workspace && ls -la /workspace/three.min.js 2>/dev/null && head -c 200 /workspace/three.min.js"}
toolResult

total 644 drwxrwxrwx 3 node node 96 Aug 1 05:17 . drwxr-xr-x 1 root root 4096 Aug 1 05:17 .. -rw-r--r-- 1 node node 603445 Aug 1 05:17 three.min.js -rw-r--r-- 1 node node 603445 Aug 1 05:17 /workspace/three.min.js /** * @license * Copyright 2010-2021 Three.js Authors * SPDX-License-Identifier: MIT */ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&de

assistant
thinking
The three.min.js is present. Let me build the app.
write /workspace/index.html (3955 bytes)
toolResult

Successfully wrote 3955 bytes to /workspace/index.html

assistant
thinking
Let me verify the file loads without errors. I could do a quick node-based syntax check by extracting the script, but three.min.js is a browser global. Let me do a basic sanity check.

I built the app. Let me verify the JS syntax is valid by extracting and checking it in Node.

bash {"command":"cd /workspace && node -e \"\nconst fs=require('fs');\nconst html=fs.readFileSync('index.html','utf8');\nconst scripts=[...html.m
toolResult

inline script 0 OK three.min.js referenced: true

assistant

The app is complete at `/workspace/index.html`, fully self-contained with no external resources. **Features implemented:** - **Full-screen Three.js scene** — `WebGLRenderer` with antialiasing, resize handling, and a fixed full-viewport container. - **Rotating icosahedron** — `IcosahedronGeometry(2, 1)` with a `MeshStandardMaterial` (flat shading, metalness/roughness) that continuously self-rotates. - **Two colored point lights** — a pink point light (`0xff3366`) and a blue point light (`0x33aaff`) positioned on opposite sides, plus a subtle ambient light so shadowed faces remain visible. - **Orbit-style auto-rotation** — the camera slowly orbits the origin while looking at the icosahedron, giving a cinematic orbit effect in addition to the object's own spin. - **Subtle starfield background** — 3,000 star points distributed across a large spherical shell (`radius 60–90`) via a `BufferGeometry` + `PointsMaterial`. The pre-provided `three.min.js` is loaded with a plain `<script src="three.min.js"></script>` (no CDN), and all logic runs in a single inline `<script>` block. Verified: inline script syntax is valid and the library reference is present.

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

modeldeepseek-v4-flash-0731
vendorDeepSeek
harnesspi-agent
generated2026-08-01

EVALUATION

4/5 working

Rotating icosahedron lit by pink and blue point lights over a starfield, continuously auto-rotating; no distinct input reactions but matches the prompt well.

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 motion17.1%
on click16.9%
on drag17.5%
on wheel16.2%
on enter + space15.9%
on arrow keys16.0%
on w/a/s/d15.2%
frame spread45.7 / 255
console errors0
js errors none

METRICS

runtime13.5s
tokens in1.8k
tokens out1.7k
cached8.2k
cost / run$0.0083