oneshotlm
Compare all models on this prompt →

Rotating icosahedron · glm-4.7

Output generated Cost / run $0.0032 Runtime 66.2s

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

METRICS

runtime66.2s
tokens in4.5k
tokens out1.6k
cached4.3k
cost / run$0.0032
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 a Three.js scene that includes:
1. Full-screen scene
2. A rotating icosahedron
3. Two colored point lights
4. Orbit-style auto-rotation
5. A subtle starfield background
6. All in one index.html file with inline CSS and JS
7. Using the provided three.min.js file (no CDN)

Let me create this index.html file now.

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

→ write index.html (5209 bytes)
toolResult

Successfully wrote 5209 bytes to index.html

assistant
thinking
I've created the index.html file with all the requested features:

1. Full-screen Three.js scene using the provided three.min.js
2. A rotating icosahedron with flat shading and a wireframe overlay
3. Two colored point lights (cyan and magenta) that orbit around the icosahedron
4. Orbit-style auto-rotation (the camera orbits around the center)
5. A subtle starfield background with 3000 stars that slowly rotates

The file is completely self-contained with inline CSS in a <style> tag and inline JavaScript in a <script> tag. It uses only the local three.min.js file without any external CDNs or network requests.

Done! I've created `index.html` with a full-screen Three.js scene featuring: - **Rotating icosahedron** with flat shading and a subtle wireframe overlay - **Two colored point lights**: cyan and magenta, orbiting around the icosahedron - **Orbit-style auto-rotation**: the camera smoothly orbits around the center - **Starfield background**: 3000 stars with subtle slow rotation - All CSS and JS inline, using only the local `three.min.js` file The scene runs completely offline with no external dependencies.