oneshotlm
Compare all models on this prompt →

3D solar system · glm-4.7

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 ↗
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
The user wants me to create a single-page web app (index.html) that displays a 3D solar system using Three.js. The requirements are:
1. Use the pre-provided three.min.js (global THREE)
2. Create a 3D solar system with the Sun and orbiting planets
3. Varied speeds and sizes for planets
4. Orbit-drag camera controls
5. A starfield background
6. Everything in one self-contained index.html file with inline CSS and JS
7. No external resources, CDNs, or network requests

Let me create this file with:
- A canvas for Three.js
- Inline CSS for styling
- Inline JavaScript that:
  - Loads three.min.js
  - Sets up the scene, camera, renderer
  - Creates a starfield background
  - Creates the Sun (glowing sphere)
  - Creates planets with different sizes, colors, and orbital speeds
  - Implements orbit controls for camera (drag to rotate)
  - Animates the planets orbiting the sun

I'll include Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, and Neptune with appropriate relative sizes and orbital speeds (simplified for visual appeal).

I'll create a 3D solar system with Three.js, including the Sun, planets with varied sizes and orbital speeds, orbit-drag camera controls, and a starfield background.

write index.html (11125 bytes)
toolResult

Successfully wrote 11125 bytes to index.html

assistant
thinking
I've created a complete single-page 3D solar system application. Let me verify it was created correctly by checking if the file exists.
bash {"command":"ls -la index.html"}
toolResult

-rw-r--r-- 1 node node 11127 Jul 22 17:40 index.html

assistant
thinking
Great! The file has been created successfully. Let me provide a summary of what was built.

I've created a complete 3D solar system in `index.html`. Here's what's included: **Features:** - **Sun** - Glowing yellow sphere with pulsing effect and light emission - **8 Planets** - Mercury, Venus, Earth, Mars, Jupiter, Saturn (with rings!), Uranus, and Neptune - **Varied sizes** - Each planet has appropriately scaled sizes relative to each other - **Varied orbital speeds** - Inner planets orbit faster than outer planets - **Starfield** - 15,000 stars with subtle color variations (white, yellowish, bluish) - **Orbit paths** - Visible orbital rings for each planet **Camera Controls:** - **Left-click + drag** - Rotate camera around the solar system - **Right-click + drag** - Pan the view - **Scroll wheel** - Zoom in/out - **Touch support** - Works on mobile devices **Visual effects:** - Ambient lighting + point light from the Sun - Planet materials with specular highlights - Saturn's rings tilted at an angle - Sun glow with pulsing animation - Planets rotate on their own axes while orbiting The app is fully self-contained, loads `three.min.js` locally, and runs entirely without network access.

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

modelglm-4.7
vendorZ.ai · GLM
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

3D solar system with sun, orbiting planets, rings, starfield, and functional drag/scroll/keyboard camera controls.

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 motion0.8%
on click1.3%
on drag1.9%
on wheel3.2%
on enter + space1.7%
on arrow keys1.5%
on w/a/s/d2.4%
frame spread30.7 / 255
console errors0
js errors none

METRICS

runtime259.8s
tokens in3.5k
tokens out3.6k
cached7.8k
cost / run$0.0084