oneshotlm
Compare all models on this prompt →

Rotating icosahedron · gpt-5.1-codex-mini

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
thinking
**Creating HTML index**

I need to create an `index.html` file that includes inline CSS and JavaScript. I also want to make sure to reference `three.min.js`, which is important for my project. Inspecting the files will help me ensure everything is set up correctly. I’ll focus on making the structure clear and organized, so it's easy to understand and modify later. It’s all about getting the details right!
bash {"command":"ls"}
toolResult

three.min.js

assistant
thinking
**Planning HTML and Three.js setup**

I need to create an index.html file where everything is included in one place, like style and script tags. I'll be referencing three.min.js for a full-screen scene featuring a rotating icosahedron, lit by two colored point lights. For auto-rotation, I’m considering implementing OrbitControls, but if that’s not possible, I could manage simple rotation by updating the camera or the icosahedron directly. I'll also set up a starfield background with random positions. Lastly, I must ensure everything is responsive.**Setting up index.html for Three.js**

I need to use the pre-provided three.min.js by including a script tag referencing the file in my index.html. I want to ensure that there's an auto-rotation feature, like having the camera rotate around the scene. I’ll start with a `<style>` section to remove margins and make the canvas fill the screen. Then, I'll add `<script src="three.min.js"></script>` before the main script, which will contain all required functionality. Finally, I’ll create the file using the write command.
write index.html (3288 bytes)
toolResult

Successfully wrote 3288 bytes to index.html

assistant

Created `index.html` with a fullscreen rotating icosahedron, dual colored lighting, orbiting camera, and subtle starfield, all using the provided `three.min.js`.

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

modelgpt-5.1-codex-mini
vendorOpenAI
harnesspi-agent
generated2026-08-01

EVALUATION

3/5 working

Rotating icosahedron with orange/teal point lights and faint starfield, animates continuously though inputs cause little change.

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.6%
on click7.8%
on drag7.3%
on wheel7.0%
on enter + space5.5%
on arrow keys5.6%
on w/a/s/d5.9%
frame spread26 / 255
console errors0
js errors none

METRICS

runtime13.8s
tokens in4.8k
tokens out1.5k
cached3.5k
cost / run$0.0034