oneshotlm
Compare all models on this prompt →

Rotating icosahedron · minimax-m2.5

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. Let me plan what I need to do:

1. First, check what's in the current directory to see the three.min.js file
2. Create an index.html file with:
   - CSS for full-screen styling
   - Three.js loaded from three.min.js (local file)
   - A rotating icosahedron
   - Two colored point lights
   - Orbit-style auto-rotation (camera orbiting around the object)
   - A subtle starfield background

Let me start by checking what's in the directory.
bash {"command":"ls -la /tmp/ws"}
toolResult

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

assistant
thinking
Great, three.min.js is present. Now I'll create the index.html file with all the requirements:
- Full-screen scene
- Rotating icosahedron
- Two colored point lights
- Orbit-style auto-rotation (camera orbiting around the icosahedron)
- Subtle starfield background
write /tmp/ws/index.html (4307 bytes)
toolResult

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

assistant
thinking
The index.html file has been created. Let me verify it was written correctly by checking if it exists and then summarize what I've created.
bash {"command":"ls -la /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 4307 Aug 1 18:01 /tmp/ws/index.html

assistant
thinking
The file has been created successfully. Let me summarize what I've built:

1. **Full-screen scene**: Using CSS to remove margins, set overflow to hidden, and renderer fills the viewport

2. **Rotating icosahedron**: Using THREE.IcosahedronGeometry with MeshStandardMaterial featuring flatShading for a nice geometric look, with both x and y rotation

3. **Two colored point lights**: 
   - Orange light (0xff6b35) on one side
   - Green light (0x35ff6b) on the opposite side
   - Both lights animate slightly for dynamic effect

4. **Orbit-style auto-rotation**: The camera orbits around the icosahedron using sinusoidal movement on the x and z axes, with slight y-axis wobble

5. **Subtle starfield background**: 2000 stars positioned on a sphere around the scene, with very slow rotation for that subtle parallax effect

Everything is self-contained in index.html, using the local three.min.js file.

Done! I've created `/tmp/ws/index.html` with: - **Full-screen WebGL canvas** with proper resize handling - **Rotating icosahedron** using `IcosahedronGeometry` with metallic/rough material and flat shading - **Two colored point lights**: orange (top-right) and green (bottom-left) with subtle animation - **Orbit-style auto-rotation**: camera smoothly orbits around the icosahedron - **Starfield background**: 2000 stars scattered on a distant sphere with slow rotation The scene features: - Icosahedron rotates on X and Y axes - Camera orbits automatically around the object - Lights animate to create dynamic shadows and highlights - Stars provide subtle background movement

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

EVALUATION

3/5 working

Rotating icosahedron with starfield and colored point lights, continuously self-rotating regardless of input.

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 motion4.8%
on click7.6%
on drag7.7%
on wheel8.2%
on enter + space7.1%
on arrow keys8.3%
on w/a/s/d7.1%
frame spread51 / 255
console errors0
js errors none

METRICS

runtime75.6s
tokens in9.4k
tokens out1.7k
cached6.8k
cost / run$0.0023