oneshotlm
Compare all models on this prompt →

3D solar system · qwen3.5-plus-02-15

Output generated Cost / run $0.0072 Runtime 47.5s

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

modelqwen3.5-plus-02-15
vendorQwen
harnesspi-agent
generated2026-08-01

METRICS

runtime47.5s
tokens in6.4k
tokens out3.5k
cached0
cost / run$0.0072
Transcript · 4 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
thinking
The user wants me to create a single-page web app with a 3D solar system using Three.js. I need to:

1. Create an index.html file with:
   - CSS in a <style> tag
   - JS in a <script> tag
   - Include three.min.js from the current directory
   - Build a solar system with:
     - Sun at the center
     - Planets orbiting at varied speeds and sizes
     - Orbit-drag camera controls (I'll implement this manually since we can't use external OrbitControls)
     - Starfield background

Let me create this self-contained HTML file.
→ write /tmp/ws/index.html (10958 bytes)
toolResult

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

assistant
thinking
Done! I've created a complete 3D solar system web app in a single self-contained `index.html` file.

Features:
- **Sun** with glowing effect at the center
- **8 planets** (Mercury through Neptune) with:
  - Varied sizes (Mercury smallest at 2, Jupiter largest at 12)
  - Different orbital distances
  - Different orbital speeds (inner planets orbit faster)
  - Unique colors
  - Saturn has rings
- **Orbit lines** showing each planet's path
- **Starfield** with 10,000 stars in the background
- **Orbit-drag camera controls**:
  - Drag to rotate around the solar system
  - Scroll to zoom in/out
  - Shift + Drag to pan
  - Touch support for mobile
- **Info panel** showing controls
- All CSS and JavaScript inline, no external dependencies except the local `three.min.js`

Created `index.html` with a complete 3D solar system featuring: - **Sun** with glowing effect at the center - **8 planets** (Mercury → Neptune) with varied sizes, distances, orbital speeds, and colors - **Saturn's rings** - **Orbit paths** visualized as rings - **10,000-star starfield** background - **Orbit-drag camera controls**: - 🖱️ Drag to rotate view - 🔍 Scroll to zoom - ⇧ Shift + Drag to pan - Touch support for mobile