oneshotlm
Compare all models on this prompt →

3D solar system · kimi-k2-thinking

Output generated Cost / run $0.0106 Runtime 17.9s

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

modelkimi-k2-thinking
vendorMoonshot · Kimi
harnesspi-agent
generated2026-08-01

METRICS

runtime17.9s
tokens in7.4k
tokens out3.2k
cached4.0k
cost / run$0.0106
Transcript · 6 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
We need to create a 3D solar system web app using three.min.js that's already provided in the directory. Let's first check if three.min.js exists and then build the solar system.

Requirements:
- Sun and orbiting planets at varied speeds and sizes
- Orbit-drag camera controls
- Starfield background
- All in index.html with inline CSS and JS
- Use three.min.js provided locally

Let me start by checking what's in the current directory.

I'll help you build a 3D solar system using the provided three.min.js. Let me start by checking the current directory and then create the solar

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

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

assistant
thinking
Good, three.min.js exists. Now I'll create the index.html with:
- A sun at the center
- Multiple planets orbiting at different speeds and distances
- Orbit-drag camera controls (using THREE.OrbitControls or implement manually)
- Starfield background
- All in one self-contained file

Let me create the full 3D solar system:

Good, three.min.js is available. Now I'll create the 3D solar system with the sun, orbiting planets, camera controls, and star

→ write index.html (10745 bytes)
toolResult

Successfully wrote 10745 bytes to index.html

assistant
thinking
Good! I've created the 3D solar system. Let me verify it works properly by checking if the file was created correctly.

Perfect! I've created a 3D solar system for you. The app includes: **Features:** - **Sun:** Central glowing star with emissive material - **8 Planets:** Mercury, Venus, Earth, Mars, Jupiter, Saturn (with rings!), Uranus, Neptune with realistic relative sizes, distances, and orbit speeds - **Starfield:** 10,000 stars in the background - **Camera Controls:** Click and drag to orbit, scroll to zoom in/out - **Visual orbit paths:** Faint rings showing each planet's orbital path - **Lighting:** Sun acts as a point light source, with ambient light for visibility **Technical Details:** - Created a custom OrbitControls implementation for camera movement - Each planet has unique size, color, distance from sun, and orbital speed - Saturn features a ring system - Responsive design that adapts to window size The solar system is now ready in `index.html` - open it in a web browser to explore!