oneshotlm
Compare all models on this prompt →

Rotating icosahedron · glm-5

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 me to create a single-page web app using Three.js (three.min.js which is already present in the directory) with:
1. A full-screen scene
2. A rotating icosahedron
3. Two colored point lights
4. Orbit-style auto-rotation (camera orbiting around the object)
5. A subtle starfield background

Let me create a self-contained index.html file with all CSS and JS inline, loading three.min.js from the local file.
write /workspace/index.html (6584 bytes)
toolResult

Successfully wrote 6584 bytes to /workspace/index.html

assistant
thinking
I've created the index.html file with:
1. Full-screen Three.js scene
2. A rotating icosahedron with flat shading and a wireframe overlay
3. Two colored point lights (pink/red and cyan/teal) that orbit around
4. Orbit-style auto-rotation where the camera orbits around the icosahedron
5. A starfield background with 2000 stars distributed in a sphere with subtle color variations

The file loads three.min.js locally as requested and contains all CSS and JS inline.

Created `/workspace/index.html` with a full-screen Three.js scene featuring: - **Rotating Icosahedron**: A flat-shaded icosahedron with subtle wireframe overlay, rotating on its own axes - **Two Colored Point Lights**: Pink/red (`#ff3366`) and cyan/teal (`#33ffcc`) lights that orbit around the shape, each with a small glowing indicator sphere - **Orbit-style Camera**: Auto-rotating camera that smoothly orbits around the icosahedron with a gentle vertical oscillation - **Starfield Background**: 2000 stars distributed in a spherical shell with subtle white-to-light-blue color variation, slowly rotating for added depth - **Responsive**: Handles window resize events The scene uses `MeshStandardMaterial` with metalness and roughness for realistic light interaction, and all resources are self-contained with no external dependencies beyond the provided `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

modelglm-5
vendorZ.ai · GLM
harnesspi-agent
generated2026-07-22

EVALUATION

3/5 working

Rotating icosahedron with pink/cyan point lights and faint starfield, but starfield lacks depth/motion and scene is small and static in framing.

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 motion5.2%
on click5.3%
on drag5.2%
on wheel3.3%
on arrow keys5.2%
on w/a/s/d5.0%
frame spread22.3 / 255
console errors0
js errors none

METRICS

runtime35.3s
tokens in1.9k
tokens out2.0k
cached2.9k
cost / run$0.0052