oneshotlm
Compare all models on this prompt →

Rotating icosahedron · muse-glimmer-30b

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

We need to build a single-page web app, write it ALL into one self-contained file named index.html in current directory: CSS in <style> tag, JS in <script> tag, inline — do not create separate .css/.js files. Use NO external resources, CDNs or network requests: artifact runs fully sandboxed with no network. End with index.html present. These library file(s) are ALREADY present in current directory — load each with a plain <script src="NAME"></script> using its exact filename (never a CDN or URL), then build on top of it: three.min.js.

Current working directory /tmp/ws. Check if three.min.js exists.
bash {"command":"ls -la /tmp/ws"}
toolResult

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

assistant
thinking
Good. Need to create index.html with script src="three.min.js". Then build scene.

Requirements:
- full-screen scene
- rotating icosahedron
- lit by two colored point lights
- orbit-style auto-rotation
- subtle starfield background

We need orbit-style auto-rotation: likely camera orbits around object automatically. Or mesh rotates? Could be both. "orbit-style auto-rotation" suggests camera orbits. Or object rotates with orbit style? Maybe both: icosahedron rotates, camera orbits.

We can implement with THREE.PerspectiveCamera, WebGLRenderer full-screen.

Starfield background: points in sphere.

Icosahedron: THREE.IcosahedronGeometry, MeshStandardMaterial or MeshPhongMaterial for lighting with point lights.

Two colored point lights: e.g., red and blue.

Auto-rotation: camera angle increment over time, or mesh rotation.

Let's make mesh slowly rotate on its own axis, and camera orbit around it slowly.

Full screen: canvas style width 100%, height 100vh.

No external resources.

Write file index.html.

Make sure <script src="three.min.js"></script> before our script.

CSS: body margin 0 overflow hidden, canvas display block.

JS: init scene, camera, renderer, icosahedron, lights, starfield, animation loop.

Starfield subtle: create Points with BufferGeometry, random positions on sphere radius ~1000.

Ensure resize handler.

Let's create file.
write /tmp/ws/index.html (3736 bytes)
toolResult

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

assistant
thinking
File written. We should verify it exists.
bash {"command":"ls -lh /tmp/ws/index.html && head -n 30 /tmp/ws/index.html"}
toolResult

-rw-r--r--. 1 node node 3.7K Aug 13 01:34 /tmp/ws/index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Rotating Icosahedron</title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <style> html, body { margin: 0; padding: 0; overflow: hidden; background: #000; height: 100%; } canvas { display: block; width: 100%; height: 100%; } #info { position: absolute; top: 10px; left: 10px; color: #aaa; font-family: system-ui, sans-serif; font-size: 13px; opacity: 0.8; pointer-events: none; } </style>

assistant
thinking
Done. Maybe we should ensure script src path correct relative. It's in same directory.

Potential improvement: ensure three.min.js global THREE is available. Yes.

All good.

We can respond with summary.

Created a self-contained single-file app at `/tmp/ws/index.html`. It loads the local `three.min.js`, sets up a full-screen WebGL canvas, and renders: * An icosahedron with `MeshStandardMaterial` that rotates on its own axes * Two colored `PointLight`s (pink `#ff3366` and blue `#33aaff`) with subtle orbital movement for dynamic shading * Auto-orbit camera that circles the mesh while looking at the center * A subtle starfield background using `Points` on a distant sphere Resize handling and pixel-ratio scaling are included. Open `index.html` to view the scene.

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

modelmuse-glimmer-30b
vendorMeta
harnesspi-agent
generated2026-08-13

EVALUATION

3/5 working

Rotating icosahedron with pink/blue point lights and faint starfield auto-rotates continuously; inputs don't change behavior beyond rotation state.

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 motion3.8%
on click4.5%
on drag4.3%
on wheel4.6%
on enter + space4.6%
on arrow keys4.3%
on w/a/s/d4.4%
frame spread31.8 / 255
console errors0
js errors none

METRICS

runtime46.4s
tokens in12k
tokens out2.0k
cached11k
cost / run$0.0036