oneshotlm
Compare all models on this prompt →

Rotating icosahedron · glm-4.5

Output generated Cost / run $0.0050 Runtime 34.7s

Prompt for this run

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 ↗

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

METRICS

runtime34.7s
tokens in4.4k
tokens out1.7k
cached2.6k
cost / run$0.0050
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 with:
1. A full-screen scene using Three.js
2. A rotating icosahedron
3. Two colored point lights
4. Orbit-style auto-rotation
5. A subtle starfield background
6. Everything in one index.html file
7. Use the local three.min.js file (no CDN)

Let me create this file.

I'll create a full-screen Three.js scene with a rotating icosahedron, two colored point lights, auto-rotation, and a starfield background.

→ write /tmp/ws/index.html (4825 bytes)
toolResult

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

assistant
thinking
Done! I've created a single-page web app with:
1. Full-screen Three.js scene using the local three.min.js
2. A rotating icosahedron with flat shading
3. Two colored point lights (cyan and magenta) that animate around the scene
4. Orbit-style auto-rotation where the camera orbits around the icosahedron
5. A subtle starfield background with 2000 stars
6. All CSS and JS inline in a single index.html file
7. No external resources or CDNs

The scene features:
- Icosahedron with blue-ish color and metallic/rough material properties
- Cyan and magenta point lights that slowly orbit the scene
- Ambient light for base illumination
- 2000 stars distributed in a sphere around the scene
- Smooth auto-rotation with camera orbiting
- Responsive design that handles window resizing
- No network requests - fully sandboxed

Done! I've created `index.html` with a full-screen Three.js scene featuring: - **Rotating icosahedron** with a blue metallic material and flat shading - **Two colored point lights**: cyan and magenta, both animating around the scene - **Orbit-style auto-rotation**: the camera smoothly orbits around the icosahedron - **Subtle starfield background**: 2000 stars distributed in a sphere, slowly rotating - **Ambient light** for base illumination - **Responsive** - handles window resize events The entire app is self-contained with inline CSS and JavaScript, using only the local `three.min.js` file.