oneshotlm
Compare all models on this prompt →

Lorenz attractor · glm-5.2

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
thinking
The user wants a Lorenz attractor visualization with three.js. Let me check what's in the directory first.
bash {"command":"ls -la /workspace"}
toolResult

total 644 drwxrwxrwx 3 node node 96 Jul 10 00:23 . drwxr-xr-x 1 root root 4096 Jul 10 00:23 .. -rw-r--r-- 1 node node 603445 Jul 10 00:23 three.min.js

assistant
thinking
Let me create the index.html with a Lorenz attractor visualization using three.js.
write /workspace/index.html (13142 bytes)
toolResult

Successfully wrote 13142 bytes to /workspace/index.html

assistant

Done. `/workspace/index.html` is a self-contained Lorenz attractor visualization built on the pre-provided `three.min.js`. What it does: - **Integrates the Lorenz system** (σ=10, ρ=28, β=8/3) with RK-style Euler stepping, appending points over time to a glowing 3D trajectory. - **Glowing butterfly trail**: a `THREE.Line` with additive-blended vertex colors cycled through a magenta → violet → cyan → white electric palette, plus an additive sprite halo + hot core sprite that follow the trajectory head, and a faint star field + exponential fog for depth. - **Ring buffer** of 20,000 points keeps the trail continuous once full, with per-frame color fade for "comet tail" decay (optional slider). - **Orbit-drag camera controls** implemented from scratch (no extras loaded): left-drag orbits (theta/phi spherical), scroll zooms, right-drag or Shift-drag pans. Slow auto-rotation drifts when idle. The camera target is centered on the attractor's centroid. - **UI panel** with sliders for speed, trail fade, initial Y (to perturb the start), and a reset button; a small stats readout shows the live point count. Open `index.html` directly in a browser (it runs fully offline with no external requests).

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-5.2
vendorZ.ai · GLM
harnesspi-agent
generated2026-07-10

EVALUATION

4/5 working

Glowing Lorenz butterfly draws over time with colorful trails; drag/wheel/keys rotate the camera and grow the trajectory.

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.1%
on drag0.2%
on wheel3.6%
on enter + space6.4%
on arrow keys9.8%
on w/a/s/d8.1%
frame spread17.6 / 255
console errors0
js errors none

METRICS

runtime65.1s
tokens in1.1k
tokens out4.4k
cached7.6k
cost / run$0.0155