oneshotlm
Compare all models on this prompt →

Rotating icosahedron · minimax-m2

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 · 8 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 full-screen scene
2. A rotating icosahedron
3. Two colored point lights
4. Orbit-style auto-rotation (camera orbiting the scene)
5. A subtle starfield background

I need to use the pre-provided three.min.js file that's already in the current directory. Let me first check what's in the directory to confirm the file exists.
bash {"command":"ls -la /tmp/ws/"}
toolResult

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

assistant
thinking
The three.min.js file is already present. Now I'll create the index.html file with:
1. Full-screen canvas
2. An icosahedron geometry
3. Two colored point lights (maybe warm and cool colors like orange/blue)
4. Auto-rotating camera (orbit-style)
5. Starfield background made of small particles

Let me write a complete, self-contained HTML file.
write /tmp/ws/index.html (4512 bytes)
toolResult

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

assistant
thinking
I've created the index.html file with:
1. Full-screen canvas with no margins
2. A rotating icosahedron with flat shading and metallic material
3. Two colored point lights: warm orange (0xff6633) and cool cyan (0x33ffcc)
4. Orbit-style auto-rotation of the camera around the scene
5. A subtle starfield background with 2000 stars

The scene also includes:
- Ambient light for base illumination
- Window resize handling
- Subtle animations on lights and starfield

Let me verify the file exists and check if it's valid.
bash {"command":"ls -la /tmp/ws/"}
toolResult

total 600 drwxr-sr-x. 2 node node 44 Aug 1 20:51 . drwxrwsrwx. 3 root node 16 Aug 1 20:51 .. -rw-r--r--. 1 node node 4512 Aug 1 20:51 index.html -rw-r--r--. 1 node node 603445 Aug 1 20:51 three.min.js

assistant
thinking
The file has been created successfully. Let me provide a summary of what was created.

Done! Created `index.html` with: - **Full-screen canvas** - responsive, no scrollbars - **Rotating icosahedron** - blue metallic material with flat shading, spinning on X and Y axes - **Two colored point lights**: - Warm orange (`0xff6633`) - Cool cyan (`0x33ffcc`) - **Orbit-style auto-rotation** - camera smoothly orbits the scene at a radius of 5 units with subtle vertical oscillation - **Starfield background** - 2000 particles scattered on a distant sphere, with slow rotation The scene also includes subtle light animation and window resize handling.

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
vendorMiniMax
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Rotating icosahedron with white/cyan point lights over a starfield; rotates continuously but reacts little to input beyond ambient rotation.

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 motion5.0%
on click4.9%
on drag6.4%
on wheel6.0%
on enter + space6.5%
on arrow keys6.3%
on w/a/s/d5.7%
frame spread51.9 / 255
console errors0
js errors none

METRICS

runtime17.8s
tokens in9.5k
tokens out1.6k
cached0
cost / run$0.0041