oneshotlm
Compare all models on this prompt →

3D solar system · deepseek-v4-flash

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 · 14 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 build a 3D solar system using the pre-provided three.min.js file. Let me first check if the file exists, then create a self-contained index.html file.
bash {"command":"ls -la /workspace/three.min.js 2>/dev/null && echo \"EXISTS\" || echo \"NOT FOUND\""}
toolResult

-rw-r--r-- 1 node node 603445 Jul 8 00:46 /workspace/three.min.js EXISTS

assistant
thinking
Good, the three.min.js file exists. Now I need to build a single-page web app with:

1. Sun with glow effect
2. Orbiting planets at varied speeds and sizes
3. Orbit-drag camera controls (OrbitControls - I need to implement this myself since we can't use CDN)
4. Starfield background

Since we can only use three.min.js and no CDN resources, I need to either:
- Implement OrbitControls inline
- Or use built-in THREE OrbitControls if three.min.js includes them

Let me check what three.min.js contains. It's likely a bundled version of three.js. Let me check if OrbitControls is included.

Actually, with only three.min.js available, I need to implement the orbit controls myself using mouse events (drag to rotate, scroll to zoom). I'll implement a simple Trackball/OrbitControls-like system.

Let me plan the solar system:

**Sun**: Large yellow/orange sphere with emissive material, maybe a glow effect using a sprite or point light
**Planets**: Different sizes, colors, orbital radii, and speeds
**Orbit paths**: Visible orbit lines
**Camera controls**: Drag to orbit, scroll to zoom
**Starfield**: Particle system with many stars

Let me build a nice looking solar system with:
- Sun at center (emissive, with point light)
- Mercury, Venus, Earth, Mars, Jupiter, Saturn (with rings), Uranus, Neptune
- Each planet has different orbital radius, size, color, and orbital speed
- Orbit paths shown as circular lines
- Simple orbit controls (drag to rotate around center, scroll to zoom)
- Starfield with random stars

Let me implement OrbitControls-like functionality manually.

Now let me create the index.html file:
write /workspace/index.html (17154 bytes)
toolResult

Successfully wrote 17154 bytes to /workspace/index.html

assistant
thinking
Let me verify the file was written correctly and test it.
bash {"command":"ls -la /workspace/index.html"}
toolResult

-rw-r--r-- 1 node node 17159 Jul 8 00:47 /workspace/index.html

assistant
thinking
Let me verify the file starts correctly and there are no obvious issues.
bash {"command":"cd /workspace && python3 -c \"\nimport re\nwith open('index.html') as f:\n content = f.read()\n# Check key elements\nchecks =
toolResult

/bin/bash: line 1: python3: command not found Command exited with code 127

assistant
thinking
Let me try python or just check with grep.
bash {"command":"cd /workspace && grep -c 'three.min.js' index.html && grep -c 'THREE\\.' index.html && grep -c 'Mercury' index.html && grep -c '
toolResult

1 70 1 2 1 1 3 5 All checks passed

assistant
thinking
The file looks good. Let me also verify the HTML structure has proper opening/closing tags with a quick check.
bash {"command":"cd /workspace && grep -n '</html>' index.html && grep -n '</script>' index.html && grep -n '</style>' index.html"}
toolResult

507:</html> 30:<script src="three.min.js"></script> 505:</script> 24:</style>

assistant

All good. Here's what was built into `/workspace/index.html`: **🚀 3D Solar System** — one self-contained HTML file powered by `three.min.js` ### What's included: | Feature | Details | |---|---| | **☀️ Sun** | Emissive core + dual layered glow sprites (pulsing) + faint corona rings | | **🪐 8 Planets** | Mercury, Venus, Earth (with atmosphere glow), Mars, Jupiter, Saturn (with rings!), Uranus, Neptune — each with unique size, color, orbital radius, speed, and slight axial tilt | | **🔄 Orbit paths** | Faint elliptical rings showing each planet's track | | **🌠 Starfield** | 8,000 colored stars (red/blue/white varieties) on a large sphere + 2,000 twinkling overlay stars with animated opacity | | **☄️ Asteroid belt** | 3,000 particle dots between Mars and Jupiter | | **🖱️ Orbit controls** | Drag to rotate camera, scroll/ pinch to zoom, with inertia/damping for smooth feel | | **📱 Touch support** | Single-finger drag to orbit, two-finger pinch to zoom | ### Controls: - **Drag** — orbit the camera around the system - **Scroll / Pinch** — zoom in and out - Camera stays centered on the sun with smooth damping

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

modeldeepseek-v4-flash
vendorDeepSeek
harnesspi-agent
generated2026-07-08

EVALUATION

4/5 working

3D solar system with sun, orbiting planets, rings, starfield; drag/wheel rotate and zoom camera effectively.

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.1%
on click0.3%
on drag3.1%
on wheel4.3%
on enter + space1.5%
on arrow keys0.0%
on w/a/s/d0.1%
frame spread26 / 255
console errors0
js errors none

METRICS

runtime86.5s
tokens in13k
tokens out7.1k
cached32k
cost / run$0.0031