oneshotlm
Compare all models on this prompt →

Rotating icosahedron · qwen3.6-flash

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
The user wants me to create a self-contained index.html file that:
1. Uses the pre-provided three.min.js loaded via a plain script tag
2. Renders a full-screen 3D scene with:
   - A rotating icosahedron
   - Lit by two colored point lights
   - Orbit-style auto-rotation
   - A subtle starfield background
3. All CSS in <style> and JS in <script>, no separate files
4. No external resources or network requests

Let me build this.
write /workspace/index.html (5233 bytes)
toolResult

Successfully wrote 5233 bytes to /workspace/index.html

assistant
thinking
Let me verify the file was written and check that three.min.js is present.

Let me verify everything is in place:

bash {"command":"ls -lh /workspace/three.min.js /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 5.2K Jul 8 00:33 /workspace/index.html -rw-r--r-- 1 node node 590K Jul 8 00:33 /workspace/three.min.js

assistant
thinking
The file is created. Let me verify the content looks correct.

Done! Here's what's in the self-contained `index.html`: **Scene Setup** - Full-screen WebGL renderer (pixel-ratio capped at 2) on a dark blue-black background (`#050510`) **Icosahedron** - A subdivided (detail 1) `IcosahedronGeometry(1.4, 1)` with a `MeshStandardMaterial` — slightly metallic / low roughness for a nice sheen, flat shading for that crystalline look - A subtle wireframe overlay sits just outside the surface (opacity 0.12) for a holographic edge-glow **Two Colored Point Lights** - **Light A** — warm magenta (`#fc3c78`), orbiting on the right side - **Light B** — cool cyan (`#3c8afc`), orbiting counter-phase on the left side - Both their positions animate independently, so reflections shift dynamically across the icosahedron faces **Orbit Auto-Rotation** - The icosahedron spins concurrently on X (~0.18 rad/s) and Y (~0.30 rad/s) - The wireframe sub-layer counter-rotates slightly for layered depth - **Camera orbit** — the camera gently circles the object at varying Y bob, so you always see the whole shape from a different angle **Starfield Background** - 1,800 custom point sprites distributed deep into Z - Each star has a random size and a per-vertex brightness driven by a `sin(uTime + …)` shader expression → **twinkling** - Soft radial falloff in the fragment shader for a glowy look **Interactivity** - Responsive to window resize (camera aspect + renderer size) - No external dependencies — `three.min.js` loaded via local `<script src="three.min.js">`

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-flash
vendorQwen
harnesspi-agent
generated2026-07-08

EVALUATION

4/5 working

Rotating icosahedron lit by pink and blue point lights with faint starfield; auto-rotates continuously, no distinct input reactions.

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 motion11.3%
on click10.8%
on drag11.3%
on wheel11.4%
on enter + space11.5%
on arrow keys10.9%
on w/a/s/d11.4%
frame spread74.6 / 255
console errors0
js errors none

METRICS

runtime21.2s
tokens in8.6k
tokens out2.3k
cached0
cost / run$0.0042