oneshotlm
Compare all models on this prompt →

Rotating icosahedron · glm-4.6

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 single-page web app with a Three.js scene. The requirements are:
1. Use the pre-provided three.min.js file
2. Full-screen scene
3. Rotating icosahedron
4. Two colored point lights
5. Orbit-style auto-rotation
6. Subtle starfield background
7. Everything in one self-contained index.html file
8. No external resources, CDNs, or network requests

Let me first check if three.min.js exists in the current directory, then create the HTML file.
bash {"command":"ls -la"}
toolResult

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

assistant
thinking
Great! The three.min.js file is present. Now I'll create a single HTML file with:
1. A full-screen canvas
2. Three.js scene with an icosahedron
3. Two colored point lights
4. Auto-rotation
5. A starfield background
6. All CSS and JS inline

I'll create a visually impressive scene with proper lighting, materials, and animation.
write index.html (7871 bytes)
toolResult

Successfully wrote 7871 bytes to index.html

assistant
thinking
Perfect! I've created a single-page web application with a Three.js scene that includes:

1. **Full-screen canvas** with responsive design
2. **Rotating icosahedron** with a cyan material and subtle wireframe overlay
3. **Two colored point lights** - magenta and green - that orbit around the scene
4. **Orbit-style auto-rotation** that can be interrupted by mouse/touch drag controls
5. **Subtle starfield background** with 5000 stars in various colors (white, blue, yellow)
6. **Interactive features**:
   - Mouse drag to manually rotate the icosahedron
   - Touch support for mobile devices
   - Responsive to window resizing
   - Animated light positions
   - Pulsing scale effect on the icosahedron
   - Slowly rotating starfield

The scene is fully self-contained in index.html with inline CSS and JavaScript, uses the local three.min.js file, and requires no external resources or network requests. The visual effect is impressive with the glowing icosahedron, dynamic colored lighting, and the starfield creating a space-like atmosphere.

Created index.html with a full-screen Three.js scene featuring: - **Rotating icosahedron** with cyan material and wireframe overlay - **Two animated point lights** (magenta & green) orbiting the scene - **Interactive rotation** - drag to control, auto-rotates when idle - **5000-star background** with varied colors (white, blue, yellow) - **Smooth animations** including pulsing scale and rotating starfield - **Touch support** for mobile devices Open index.html in your browser to see the animated scene!

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-4.6
vendorZ.ai · GLM
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Rotating icosahedron lit by green/magenta point lights over a starfield, continuously auto-rotates; inputs cause little extra change.

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 motion4.5%
on click7.7%
on drag8.1%
on wheel7.6%
on enter + space8.1%
on arrow keys7.3%
on w/a/s/d6.5%
frame spread33.1 / 255
console errors0
js errors none

METRICS

runtime78.4s
tokens in7.1k
tokens out2.5k
cached6.8k
cost / run$0.0058