oneshotlm
Compare all models on this prompt →

3D solar system · muse-spark-1.3

Output generated Cost / run $0.1477 Runtime 124.5s

Prompt for this run

Build a 3D solar-system visualization using the provided Three.js library. Use HTML, CSS, and JavaScript as needed. Write it to `index.html` in the current working directory using your file tools. Inline your own CSS and JavaScript. Do not use external assets, CDNs, or network requests. Use the provided `three.min.js` (global `THREE`) through a plain local script tag; the runner will inline it into the final artifact. Required behavior: - Show the Sun and all eight planets, with distinguishable colors, readable labels, and orbital paths against a procedural starfield. - Animate planets orbiting the Sun at different speeds. Use schematic sizes and distances for visibility; scientific scale accuracy is not required. Inner planets should generally orbit faster than outer planets. - Initially frame the complete system. Dragging orbits the camera around the Sun, and the mouse wheel changes camera distance within usable bounds. - Provide Pause/Resume and Reset view. Pause freezes planetary motion while leaving camera controls usable; Reset view restores the initial camera framing. - Generate materials and geometry procedurally. Only core global THREE is available; do not import additional controls or texture files. Verify: Inspect the initial planet labels and sample orbital motion. Orbit the camera and check that the system stays visible. Pause the simulation while adjusting the camera, then use Reset view and compare the initial framing.

⛨ sandboxed Open in new tab ↗

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-spark-1.3
vendorMeta
harnesspi 0.87.1 · browser iteration
generated2026-10-09

METRICS

runtime124.5s
tokens in208k
tokens out9.2k
cached138k
cost / run$0.1477
Transcript · 25 messages
system

user

Build a 3D solar-system visualization using the provided Three.js library. Use HTML, CSS, and JavaScript as needed. Write it to `index.html` in the current working directory using your file tools. Inline your own CSS and JavaScript. Do not use external assets, CDNs, or network requests. Use the provided `three.min.js` (global `THREE`) through a plain local script tag; the runner will inline it into the final artifact. Required behavior: - Show the Sun and all eight planets, with distinguishable colors, readable labels, and orbital paths against a procedural starfield. - Animate planets orbiting the Sun at different speeds. Use schematic sizes and distances for visibility; scientific scale accuracy is not required. Inner planets should generally orbit faster than outer planets. - Initially frame the complete system. Dragging orbits the camera around the Sun, and the mouse wheel changes camera distance within usable bounds. - Provide Pause/Resume and Reset view. Pause freezes planetary motion while leaving camera controls usable; Reset view restores the initial camera framing. - Generate materials and geometry procedurally. Only core global THREE is available; do not import additional controls or texture files. Verify: Inspect the initial planet labels and sample orbital motion. Orbit the camera and check that the system stays visible. Pause the simulation while adjusting the camera, then use Reset view and compare the initial framing.

assistant
thinking

Building your 3D solar system — Sun, planets, and orbits.

→ bash {"command":"ls -la; pwd"}
toolResult

total 604 drwx------ 3 node node 4096 Oct 9 06:47 . drwxrwxrwt 6 root root 4096 Oct 9 06:47 .. drwxr-xr-x 3 node node 4096 Oct 9 06:47 .home -rw-r--r-- 1 node node 603445 Oct 9 06:47 three.min.js /tmp/job-YkxSTZ

assistant
thinking
Designing a ThreeJS solar system with starfield, sun with glow and light, and eight planets with orbital parameters.Adding orbital paths, label sprites, camera controls, and pause or reset UI interactions.

Framing the full system with custom orbit controls — writing the scene now.

→ write index.html (19535 bytes)
toolResult

Successfully wrote to index.html

assistant
thinking
→ browser {"action":"reload"}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)"],"dom":"☉ Solar System\n\nSchematic scale · drag to orbit · scroll to zoom\n\n⏸ Pause\n⟲ Reset view\nSpeed\n1.0×\nLabels\nOrbits\nMercury\nVenus\nEarth\nMars\nJupiter\nSaturn\nUranus\nNeptune\nDrag: orbit  •  Wheel / pinch: zoom  •  Right-drag: pan slightly","images":"attached"}

assistant
thinking
Verifying orbital motion and camera controls by planning screenshot sampling, drag, click, and pause actions within limited time.

Initial framing looks complete — now checking motion, camera orbit, and pause/reset.

→ browser {"action":"motion"}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

Frame 2, +868ms

[Browser image supplied to model]

Frame 3, +1705ms

[Browser image supplied to model]

Frame 4, +2584ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)"],"dom":"☉ Solar System\n\nSchematic scale · drag to orbit · scroll to zoom\n\n⏸ Pause\n⟲ Reset view\nSpeed\n1.0×\nLabels\nOrbits\nMercury\nVenus\nEarth\nMars\nJupiter\nSaturn\nUranus\nNeptune\nDrag: orbit  •  Wheel / pinch: zoom  •  Right-drag: pan slightly","images":"attached"}

assistant
thinking

Orbital motion checks out — inner planets are moving faster. Now testing camera controls.

→ browser {"action":"drag","toX":900,"toY":400,"x":600,"y":400}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)"],"dom":"☉ Solar System\n\nSchematic scale · drag to orbit · scroll to zoom\n\n⏸ Pause\n⟲ Reset view\nSpeed\n1.0×\nLabels\nOrbits\nMercury\nVenus\nEarth\nMars\nJupiter\nSaturn\nUranus\nNeptune\nDrag: orbit  •  Wheel / pinch: zoom  •  Right-drag: pan slightly","images":"attached"}

assistant
thinking
→ browser {"action":"click","x":68,"y":93}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)"],"dom":"☉ Solar System\n\nSchematic scale · drag to orbit · scroll to zoom\n\n▶ Resume\n⟲ Reset view\nSpeed\n1.0×\nLabels\nOrbits\nMercury\nVenus\nEarth\nMars\nJupiter\nSaturn\nUranus\nNeptune\nDrag: orbit  •  Wheel / pinch: zoom  •  Right-drag: pan slightly\nSimulation paused — camera still active","images":"attached"}

assistant
thinking
→ browser {"action":"drag","toX":300,"toY":300,"x":600,"y":400}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)"],"dom":"☉ Solar System\n\nSchematic scale · drag to orbit · scroll to zoom\n\n▶ Resume\n⟲ Reset view\nSpeed\n1.0×\nLabels\nOrbits\nMercury\nVenus\nEarth\nMars\nJupiter\nSaturn\nUranus\nNeptune\nDrag: orbit  •  Wheel / pinch: zoom  •  Right-drag: pan slightly","images":"attached"}

assistant
thinking

Camera stays usable while paused — now testing zoom and reset.

→ browser {"action":"scroll","delta":-400,"x":600,"y":400}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)"],"dom":"☉ Solar System\n\nSchematic scale · drag to orbit · scroll to zoom\n\n▶ Resume\n⟲ Reset view\nSpeed\n1.0×\nLabels\nOrbits\nMercury\nVenus\nEarth\nMars\nJupiter\nSaturn\nUranus\nNeptune\nDrag: orbit  •  Wheel / pinch: zoom  •  Right-drag: pan slightly","images":"attached"}

assistant
thinking
→ browser {"action":"click","x":178,"y":93}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)"],"dom":"☉ Solar System\n\nSchematic scale · drag to orbit · scroll to zoom\n\n▶ Resume\n⟲ Reset view\nSpeed\n1.0×\nLabels\nOrbits\nMercury\nVenus\nEarth\nMars\nJupiter\nSaturn\nUranus\nNeptune\nDrag: orbit  •  Wheel / pinch: zoom  •  Right-drag: pan slightly\nView reset","images":"attached"}

assistant
thinking

Reset restored the overview — resuming motion for the final state.

→ browser {"action":"click","x":72,"y":92}
toolResult

Frame 1, +0ms

[Browser image supplied to model]

{"console":["warning: An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels","warning: [.WebGL-0x36f40017ce00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)"],"dom":"☉ Solar System\n\nSchematic scale · drag to orbit · scroll to zoom\n\n⏸ Pause\n⟲ Reset view\nSpeed\n1.0×\nLabels\nOrbits\nMercury\nVenus\nEarth\nMars\nJupiter\nSaturn\nUranus\nNeptune\nDrag: orbit  •  Wheel / pinch: zoom  •  Right-drag: pan slightly\nSimulation resumed","images":"attached"}

assistant
thinking

All checks passed — doing a final file verification.

→ bash {"command":"ls -la index.html three.min.js && grep -c \"script src=\\\"three.min.js\\\"\" index.html && grep -ci \"http\\|cdn\\|import\" ind
toolResult

-rw-r--r-- 1 node node 19555 Oct 9 06:48 index.html -rw-r--r-- 1 node node 603445 Oct 9 06:47 three.min.js 1 0

assistant
thinking

Done — `index.html` is saved and verified in-browser. **What was built:** a self-contained 3D solar system (Sun + 8 procedurally-textured planets, canvas-sprite labels, line-loop orbit paths, Saturn's rings, Earth's moon, procedural starfield, point-light Sun). Custom orbit controls (drag to orbit, wheel/pinch to zoom clamped 14–260, right-drag pan), Pause/Resume, Reset view, plus speed slider and label/orbit toggles. Only `three.min.js` via `<script src="three.min.js">`; no external assets. **Actually checked:** - Initial framing shows the full system with all 8 readable labels, orbit rings, and starfield. - Motion frames confirm planets orbit with inner planets visibly faster than outer ones. - Drag-orbit keeps the system centered/visible from new angles. - Pause freezes planets (button → "Resume" + toast) while camera drag/zoom still works. - Reset view restores the initial high-angle overview framing; Resume restarts motion. - No console errors (only sandbox/ReadPixels performance warnings). **Remains unverified:** exact zoom bounds at extremes, keyboard shortcuts (Space/R), and small-screen layout — implemented but not exercised.