oneshotlm
Compare all models on this prompt →

Rotating icosahedron · minimax-m2.7

Output generated Cost / run $0.0033 Runtime 22.6s

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

modelminimax-m2.7
vendorMiniMax
harnesspi-agent
generated2026-07-08

METRICS

runtime22.6s
tokens in7.6k
tokens out1.7k
cached512
cost / run$0.0033
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 using Three.js that features:
1. A rotating icosahedron
2. Two colored point lights
3. Orbit-style auto-rotation (camera orbiting around the scene)
4. A subtle starfield background

I need to create this as a single index.html file with CSS in a <style> tag and JavaScript in a <script> tag. I should use the pre-provided three.min.js file.

Let me create this file.
→ write /workspace/index.html (4459 bytes)
toolResult

Successfully wrote 4459 bytes to /workspace/index.html

assistant
thinking
I've created the index.html file with:
1. A rotating icosahedron with MeshStandardMaterial
2. Two colored point lights (orange and blue)
3. Orbit-style auto-rotation (camera orbits around the scene while looking at the icosahedron)
4. A subtle starfield background with thousands of stars distributed on a large sphere
5. Ambient lighting for softer illumination
6. Subtle animations including floating motion and dynamic light movement
7. Responsive window resize handling

Let me verify the file exists.
→ bash {"command":"ls -la /workspace/"}
toolResult

total 652 drwxrwxrwx 4 node node 128 Jul 8 00:34 . drwxr-xr-x 1 root root 4096 Jul 8 00:34 .. -rw-r--r-- 1 node node 4459 Jul 8 00:34 index.html -rw-r--r-- 1 node node 603445 Jul 8 00:34 three.min.js

assistant
thinking
The files are present. The index.html is created and three.min.js is already there. The project is complete.

Done! Created `index.html` with: - **Rotating icosahedron** — metallic blue with flat-shaded style, continuously spinning with subtle floating motion - **Two colored point lights** — warm orange (`#ff6b35`) and cool blue (`#35a0ff`) that orbit dynamically around the scene for dramatic lighting shifts - **Orbit-style auto-rotation** — camera smoothly circles the icosahedron at a fixed radius with gentle vertical oscillation, always looking at center - **Subtle starfield** — 2000 stars distributed on a large sphere, slowly rotating for parallax depth - **Responsive** — handles window resize Open `index.html` in a browser to see the scene.