oneshotlm
Compare all models on this prompt →

Rotating icosahedron · qwen3.7-plus

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 · 4 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 with Three.js that renders:
1. A full-screen scene
2. A rotating icosahedron
3. Two colored point lights
4. Orbit-style auto-rotation
5. A subtle starfield background

All in one `index.html` file, using the already-present `three.min.js` file. Let me build this.

I need to use the global THREE from three.min.js. Let me create a nice scene with:
- An icosahedron geometry (maybe with some nice material)
- Two point lights with different colors (e.g., cyan and magenta)
- Auto-rotation (I can implement this manually since we might not have OrbitControls loaded - I'll make the camera orbit or the object rotate)
- Starfield background (particles)
- Full-screen canvas

Since we don't have OrbitControls as a separate file, I'll implement auto-rotation by rotating the mesh and maybe also moving the camera in a circular path. Or I can just rotate the icosahedron on multiple axes and have the camera slightly orbiting.

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

Successfully wrote 5889 bytes to /workspace/index.html

assistant
thinking
The file has been written successfully. Let me verify it's there.

The file is written. Here's what the scene includes: - **Full-screen canvas** — fills the viewport, handles resize, dark background with subtle exponential fog - **Icosahedron** — detail level 1 with flat shading, metallic material, plus a faint wireframe overlay and a gentle scale "breathing" animation; rotates on both axes - **Two colored point lights** — cyan (`#00ccff`) and magenta-pink (`#ff2288`) orbiting the icosahedron on different paths, each with a small glowing sphere marker; plus a dim ambient fill - **Orbit-style auto-rotation** — the camera slowly orbits the center, bobbing gently in the Y axis while always looking at the origin - **Starfield background** — 3000 particles spread in a sphere at distance, with slight color variation (warm whites/cool blues), additive blending, and slow rotation for parallax Everything loads from the local `three.min.js` — no network or CDN required.

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.7-plus
vendorQwen
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Rotating icosahedron with pink/cyan point lights and starfield background continuously animates; auto-rotation constant regardless of input.

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 motion10.0%
on click9.9%
on drag10.2%
on wheel7.7%
on enter + space10.5%
on arrow keys10.5%
on w/a/s/d10.6%
frame spread60.5 / 255
console errors0
js errors none

METRICS

runtime47.3s
tokens in5.6k
tokens out2.4k
cached0
cost / run$0.0049