oneshotlm
Compare all models on this prompt →

Rotating icosahedron · glm-4.5-air

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 in index.html that uses three.min.js to render:
1. A full-screen scene
2. A rotating icosahedron
3. Two colored point lights
4. Orbit-style auto-rotation
5. A subtle starfield background

I need to create a self-contained HTML file with:
- CSS in a <style> tag
- JS in a <script> tag
- No external resources or CDN requests
- Use three.min.js that's already present (I'll need to load it with <script src="three.min.js">)

Let me create this step by step:

1. Basic HTML structure
2. CSS for full-screen styling
3. JavaScript for Three.js scene setup
4. Create icosahedron geometry
5. Add two colored point lights
6. Add starfield background
7. Implement orbit-style auto-rotation

I'll write this as a complete HTML file.

I'll create a single-page web app with a rotating icosahedron scene using three.min.js. Let me build this as a self-contained HTML file.

write /tmp/ws/index.html (4619 bytes)
toolResult

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

assistant
thinking
Perfect! I've created a complete single-page web app in index.html that includes:

1. Full-screen Three.js scene
2. A rotating icosahedron with phong material
3. Two colored point lights (red and green) that also move around
4. Orbit-style auto-rotation where the camera orbits around the scene
5. A subtle starfield background with 10,000 stars
6. Ambient lighting for better visibility
7. Responsive design that handles window resizing
8. Info overlay showing what's being displayed

The app is completely self-contained with CSS in a <style> tag and JavaScript in a <script> tag, and it loads three.min.js from the current directory as requested. No external resources or CDN links are used.

The scene features:
- A blue icosahedron that rotates on multiple axes
- Red and green point lights that move in circular patterns
- A starfield background for depth
- Smooth orbiting camera movement
- Proper lighting and shading

The file is now ready and present in the current directory.

Created a complete single-page web app in `index.html` with: - Full-screen Three.js scene with a rotating blue icosahedron - Two colored point lights (red and green) that orbit around the scene - Subtle starfield background with 10,000 stars - Orbit-style camera auto-rotation - Responsive design and proper lighting - All CSS and JavaScript inline, no external resources The app loads `three.min.js` from the current directory and runs fully sandboxed with no network requests.

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

EVALUATION

3/5 working

Rotating icosahedron with two colored point lights and starfield; responds to click, drag, wheel, and keys but the shape is smoothed/spherical rather than sharply faceted.

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 motion0.4%
on click4.8%
on drag4.6%
on wheel1.3%
on enter + space0.0%
on arrow keys5.4%
on w/a/s/d4.3%
frame spread24.6 / 255
console errors0
js errors none

METRICS

runtime25.3s
tokens in4.4k
tokens out1.7k
cached4.4k
cost / run$0.0015