oneshotlm
Compare all models on this prompt →

Lorenz attractor · hy3-preview

Using the pre-provided three.min.js (global THREE), visualize the Lorenz attractor as a glowing 3D butterfly trajectory that draws over time, with orbit-drag camera controls.

⛨ sandboxed Open in new tab ↗
transcript · 6 messages
user

Using the pre-provided three.min.js (global THREE), visualize the Lorenz attractor as a glowing 3D butterfly trajectory that draws over time, with orbit-drag camera controls.

assistant

I'll create a self-contained 3D Lorenz attractor visualization with Three.js. Let me first check the current directory and then build the app.

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

total 644 drwxrwxrwx 3 node node 96 Jul 22 17:48 . drwxr-xr-x 1 root root 4096 Jul 22 17:48 .. -rw-r--r-- 1 node node 603445 Jul 22 17:48 three.min.js

assistant

Now I'll create the complete `index.html` file with the Lorenz attractor visualization:

write /workspace/index.html (16013 bytes)
toolResult

Successfully wrote 16013 bytes to /workspace/index.html

assistant

The Lorenz attractor visualization is complete! Here's what I built: **Features:** - **3D Lorenz Attractor** - The butterfly trajectory draws in real-time with glowing particles - **Orbit Camera Controls** - Drag to rotate, scroll to zoom - **Glowing Particles** - Custom shader with additive blending creates a beautiful glow effect - **Color Gradient** - Trail transitions from blue → cyan → magenta → pink → purple - **Interactive Controls**: - Speed slider (0.1x to 5x) - Trail length (100 to 5000 points) - Glow intensity control - **Real-time Stats** - Point count and FPS display - **Subtle Auto-rotation** - Camera slowly rotates when not interacting **Technical Details:** - Uses Three.js (loaded from local `three.min.js`) - Custom GLSL shaders for the particle glow effect - Exponential fog for depth perception - Additive blending for the glowing trail effect - Fully self-contained in one HTML file with no external dependencies Open `index.html` in a browser to see the mesmerizing butterfly-shaped Lorenz attractor unfold in 3D space!

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-preview
vendorTencent · Hunyuan
harnesspi-agent
generated2026-07-22

EVALUATION

3/5 working

Glowing cyan Lorenz-like curve draws over time with sliders; drag rotates camera clearly, but shape looks overly thick/blobby not butterfly-like.

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 motion13.5%
on click7.6%
on drag39.8%
on wheel17.5%
on enter + space5.1%
on arrow keys4.3%
frame spread75.8 / 255
console errors0
js errors none

METRICS

runtime34.6s
tokens in4.1k
tokens out4.3k
cached4.7k
cost / run$0.0013