oneshotlm
Compare all models on this prompt →

3D solar system · hy3

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
bash {"command":"ls /workspace/"}
toolResult

three.min.js

assistant
write /workspace/index.html (8713 bytes)
toolResult

Successfully wrote 8713 bytes to /workspace/index.html

assistant
thinking
The user asked me to build a 3D solar system with specific requirements:
1. Use the pre-provided three.min.js (global THREE)
2. Build a 3D solar system with sun and orbiting planets at varied speeds and sizes
3. Orbit-drag camera controls
4. Starfield
5. Write it ALL into one self-contained file named index.html

I already created the index.html file with all the requirements. Let me verify the file was created correctly and check if there are any issues.

Looking at my implementation:
1. ✅ Used three.min.js via <script src="three.min.js">
2. ✅ Created a 3D solar system with:
   - Sun with glow effect
   - 8 planets (Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune)
   - Each planet has varied sizes (radius), distances, and orbital speeds
   - Saturn has a ring
   - Orbit rings for each planet
3. ✅ Orbit-drag camera controls:
   - Mouse drag to rotate around the scene
   - Scroll to zoom in/out
   - Uses spherical coordinates for smooth orbit
4. ✅ Starfield:
   - 6000 stars as points in the background
   - Randomly distributed in 3D space
5. ✅ All in one self-contained index.html file
   - CSS in <style> tag
   - JS in <script> tag
   - No external resources (except three.min.js which is local)
   - Inline code only

Additional features I added:
- Tooltip on hover showing planet info
- Sun pulse animation
- Planet self-rotation
- Responsive resize handling
- Info panel

The implementation looks complete. I should confirm the file was created and maybe verify it by reading it back or checking that three.min.js exists in the workspace.

Actually, I already checked that three.min.js exists in the workspace at the beginning. The file should be ready to use.

Let me provide a summary to the user about what was

The 3D solar system has been built and saved to `/workspace/index.html`. Here's what's included: **Features:** - ☀️ **Sun** with glow effect and pulsing animation - 🪐 **8 Planets** (Mercury through Neptune) with accurate relative sizes, distances, and varied orbital speeds - 🪐 **Saturn's ring** rendered as a transparent ring - 🌌 **Starfield** with 6,000 background stars - 🎯 **Orbit rings** for each planet (subtle visual guides) **Controls:** - **Drag** to orbit-rotate the camera around the scene - **Scroll** to zoom in/out - **Hover** over any planet to see its name, radius, distance, and speed **Technical details:** - All CSS inline in `<style>` tag - All JavaScript inline in `<script>` tag - Loads `three.min.js` locally via `<script src="three.min.js">` - No external resources, CDNs, or network requests - Responsive to window resizing Open `index.html` in a browser to view the interactive solar system!

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

modelhy3
vendorTencent · Hunyuan
harnesspi-agent
generated2026-07-22

EVALUATION

4/5 working

Animated solar system with sun, planets orbiting at varied speeds/sizes, starfield, and camera zoom/orbit via drag and wheel.

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 motion1.2%
on click1.2%
on drag1.7%
on wheel9.6%
on enter + space5.2%
on arrow keys2.6%
on w/a/s/d2.3%
frame spread32.5 / 255
console errors0
js errors none

METRICS

runtime39.9s
tokens in3.9k
tokens out3.5k
cached3.7k
cost / run$0.0011