Beyond the pelican test: Opus 5 renders the Lord of the Rings opening in Three.js
Andrej Karpathy @karpathy · x · 2026-08-02 · ★★★ · archived
Karpathy's most-liked post of summer 2026 (~29K likes) reframed how people informally test frontier models, using Claude Opus 5 with a 1M-token budget.
Summary
Karpathy argued that informal LLM tests like Simon Willison's "SVG of a pelican on a bicycle" are becoming too easy. As a harder, more general test he gave Claude Opus 5 the first paragraph of The Lord of the Rings, a ~1M-token budget (about $10) and asked for a procedural Three.js rendering; the model wrote roughly 5,500 lines of code. He called the result a bit janky but fun, and said it is the kind of artifact nobody would build by hand but LLMs now produce cheaply. A same-day follow-up (x.com/karpathy/status/2083948654377996480) posted the playable, forkable source and joked about "GTA Hobbiton dropping before GTA VI". Verified via the X syndication API: posted 2026-08-02 03:00 UTC, ~29,400 likes at check time.
Archived text
We're starting to leave the territory where you'd test an LLM by e.g. "create an svg of pelican on a bicycle". As one idea to generalize it, I was interested what Opus 5 would do if I gave it the first paragraph of the Lord of the Rings, a 1M token budget (~$10) and asked for three js render of it. Opus went off for ~2 hours and wrote 5500 lines of code that (procedurally) rendered the story. It's kind of janky but fun. But it's a bit mindboggling that the LLM has to place and orchestrate various polygon assets in (x,y,z) coordinates and write code that animates it all, and that it even does anything at all.
I also like this kind of examples because no one in their right mind would ever spend the time to write something this custom but LLMs have all the stamina and patience in the world, so it's an example where we go from "no one would ever do this" to "sure, why not, it's ~free". There might be a lot more. But I'm excited about creating hyper custom worlds that you can imagine dropping players into, e.g. here to participate in the LoTR story as a spectator NPC, or one of the characters, or etc. Something like an ephemeral GTA of X on demand.
Last thought is that the domain of worlds/games exposes a weakness in LLMs: they can't easily audit their work because they aren't able to efficiently and natively perceive videos or play games within them. Here, Opus 5 had to very slowly and painstakingly take screenshots at different points, and it messed up a few times and created a bunch of jank. An example of raw capability (multimodal, gameplay) that I think is still quite lacking.
views 6013472 · likes 29400 · reposts 2300 · replies 1781 (at fetch time)
Archived 2026-09-29 via fxtwitter (unofficial).
Related events
All posts · id: 2026-08-02-karpathy-lotr-opus-5-threejs