oneshotlm
Compare all models on this prompt →

Rotating icosahedron · nex-n2-pro

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
We need respond by creating index.html in current dir. Need inspect directory maybe three.min.js exists. Need build single-page web app self-contained except load three.min.js. Need full-screen scene rotating icosahedron lit by two colored point lights, orbit-style auto-rotation, subtle starfield. We can create index.html. Need maybe use three.min.js global. No external resources. Need ensure if no network. Need maybe include canvas full screen. Use Three.js. Need maybe "orbit-style auto-rotation" could mean camera orbits around object automatically, maybe also controls? We can implement camera orbit around icosahedron. Need two colored point lights. Starfield background. Rotating icosahedron. Fullscreen scene. Could include resize. Use BufferGeometry? Since three.min.js pre-provided maybe version unknown. Use classic THREE APIs. Need write file. Maybe check three.min.js? But likely. We can just create.

Need be careful with self-contained file. It loads local three.min.js. Use no external resources. Need final concise. Let's create index.html.
bash {"command":"ls -la /tmp/ws"}
toolResult

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

assistant
thinking
Need write. Need maybe no external resources. Need maybe style body margin 0 etc. JS. Let's craft robust.

Need maybe use THREE.WebGLRenderer antialias true. Scene fog? Background transparent? Starfield as Points with BufferGeometry random positions. IcosahedronGeometry with MeshStandardMaterial maybe metalness/roughness, emissive. Lights: point lights colored. Maybe ambient low.

"orbit-style auto-rotation" maybe camera orbit. We'll implement camera around radius 5, angle += delta * 0.25, lookAt origin. Icosahedron rotates on x/y. Starfield subtle background: PointsMaterial with small size, transparent opacity, depthWrite false. Maybe also add scene background color.

Need maybe handle device pixel ratio. Use THREE.MathUtils maybe version? three 603k maybe r? Could use basic Math.PI. Need maybe no OrbitControls. "orbit-style auto-rotation" no controls.

Need maybe if THREE not loaded? show fallback message. But if script src before our script. Good.

Need maybe in CSS canvas display block. Include overlay maybe title? User didn't ask text. Single-page web app maybe no text. Could include minimal hidden. Maybe full-screen scene.

Need maybe use "renderer.setClearColor(0x050711,1)".

Need maybe create star positions in sphere shell: random spherical coords. Use Math.random. PointsMaterial color 0x9fb7ff size 0.018 opacity 0.65. Could add second layer maybe twinkle? Simpler.

Need maybe render loop uses requestAnimationFrame. Clock for delta. Resize.

Potential issue "three.min.js" may be minified global with no THREE? It should. Need maybe if WebGL not supported? Could fallback.

Need maybe use BufferGeometry attribute "position". Points. Use THREE.Float32BufferAttribute? Some versions support. To be safe use new THREE.BufferAttribute(new Float32Array(...),3). But Three r? Yes.

Need maybe no external resources. Good.

Need write file.
write /tmp/ws/index.html (4670 bytes)
toolResult

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

assistant
thinking

Done — created `index.html` in the current directory.

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

modelnex-n2-pro
vendorNex AGI
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Rotating icosahedron with blue/pink point lights and faint starfield; auto-rotates but no visible input-driven 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 motion7.3%
on click12.2%
on drag11.2%
on wheel10.2%
on enter + space9.1%
on arrow keys11.7%
on w/a/s/d11.3%
frame spread24.5 / 255
console errors0
js errors none

METRICS

runtime17.1s
tokens in2.7k
tokens out2.2k
cached5.1k
cost / run$0.0030