oneshotlm
Compare all models on this prompt →

Rotating icosahedron · hy3-preview

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 · 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

bash {"command":"ls /workspace/"}
toolResult

three.min.js

assistant
write /workspace/index.html (3953 bytes)
toolResult

Successfully wrote 3953 bytes to /workspace/index.html

assistant
thinking
The user asked me to build a single-page web app with a rotating icosahedron, two colored point lights, orbit-style auto-rotation, and a starfield background. I've created the index.html file with all the requirements:

1. ✅ Single self-contained file (index.html) with CSS in <style> tag, JS in <script> tag
2. ✅ No external resources - using the provided three.min.js via local script tag
3. ✀ Full-screen scene with rotating icosahedron
4. ✅ Two colored point lights (reddish 0xff4466 and bluish 0x44aaff)
5. ✅ Orbit-style auto-rotation (icosahedron rotates on y axis and gently on x)
6. ✅ Subtle starfield background (2000 points on a sphere)
7. ✅ Camera and renderer setup
8. ✅ Resize handler
9. ✅ Wireframe overlay for visual effect
10. ✅ MeshStandardMaterial with metalness/roughness for PBR look

The file is complete and should work when opened in a browser with three.min.js in the same directory. Let me verify the file was created properly

The file has been created at `/workspace/index.html`. Here's what it includes: **Scene setup:** - Full-screen Three.js scene with antialiased WebGL renderer - Auto-resize handling **Icosahedron:** - `IcosahedronGeometry(1.2, 0)` — detailed 20-face polyhedron - `MeshStandardMaterial` with blue color, slight metalness/roughness, and subtle emissive glow - Wireframe overlay for visual depth **Lighting:** - Two colored `PointLight`s: red-pink (`0xff4466`) and blue (`0x44aaff`), each intensity 2 - Both lights gently orbit the icosahedron over time for dynamic coloring - Soft `AmbientLight` fill so backfaces aren't pure black **Starfield:** - 2000 white points randomly distributed on a sphere (radius 50) - `PointsMaterial` with small attenuated size for subtle background depth **Auto-rotation:** - Icosahedron continuously y-rotates (`elapsed * 0.3`) with a gentle x-axis wobble - Creates a smooth "orbit-style" tumble effect Open `index.html` in a browser (with `three.min.js` in the same directory) to see the result.

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

modelhy3-preview
vendorTencent · Hunyuan
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Rotating icosahedron with purple/blue point lights over a starfield, animates continuously; inputs cause minor changes.

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 motion7.4%
on click7.1%
on drag4.8%
on wheel7.2%
on enter + space7.3%
on arrow keys6.2%
on w/a/s/d6.9%
frame spread31 / 255
console errors0
js errors none

METRICS

runtime20.1s
tokens in1.3k
tokens out1.7k
cached4.7k
cost / run$0.0005