oneshotlm
Compare all models on this prompt →

3D solar system · gemini-3.1-flash-lite-preview

Output generated Cost / run $0.0054 Runtime 9.8s

Prompt for this run

Using the pre-provided three.min.js (global THREE), build a 3D solar system with the sun and orbiting planets at varied speeds and sizes, orbit-drag camera controls, and a starfield.

⛨ 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

modelgemini-3.1-flash-lite-preview
vendorGoogle
harnesspi-agent
generated2026-07-22

METRICS

runtime9.8s
tokens in9.7k
tokens out2.0k
cached0
cost / run$0.0054
Transcript · 8 messages
user

Using the pre-provided three.min.js (global THREE), build a 3D solar system with the sun and orbiting planets at varied speeds and sizes, orbit-drag camera controls, and a starfield.

assistant
→ bash {"command":"ls -F"}
toolResult

three.min.js

assistant
thinking
**Focusing on Core Elements**

I'm currently streamlining the 3D environment. I've opted for a minimal approach, focusing solely on `three.min.js`. Consequently, I'm now tasked with implementing orbital camera controls (rotation/zoom) myself via mouse and wheel events since `OrbitControls.js` isn't available. The core scene is set up using `THREE.Scene`.


→ write index.html (3848 bytes)
toolResult

Successfully wrote 3848 bytes to index.html

assistant
→ bash {"command":"head -n 1 three.min.js"}
toolResult

/**

assistant

The 3D solar system has been created in `index.html`. It features: * A central sun. * Four orbiting planets at varying distances and speeds. * A starfield background. * Manual orbit/drag controls: click and drag to rotate the camera, scroll to zoom. No external files are required, and the dependencies are kept self-contained within the provided `three.min.js`. You can open `index.html` in any browser that supports WebGL.