Karpathy:Claude Opus 5 用约 5500 行代码生成《指环王》风格 3D 场景
Andrej Karpathy 分享了一项模型能力演示:他向 Claude Opus 5 提供《魔戒》开篇段落,并要求模型用 Three.js 程序化生成 3D 场景。模型据称运行约两小时,消耗 100 万 token 预算,生成了约 5500 行代码。
这项实验展示了大模型从文本描述到可运行 3D 世界的能力。模型需要自行安排多边形资产的空间坐标、组织场景并编写动画逻辑,最终产出一个带有动态效果的低多边形渲染作品。
不过,这更像一次创意能力演示,而不是严格的性能基准。Karpathy 认为结果有趣但略显粗糙,并指出模型难以高效地检查视频或在生成的游戏环境中进行原生交互,因此仍会出现明显的视觉和逻辑瑕疵。
这类案例的意义在于,过去几乎没人会为一次性创意手工制作完整世界,而模型可以以相对低的边际成本完成初稿。未来,按需生成的定制化游戏和交互式世界可能成为值得探索的应用方向。
来源证据
Claude Opus Generates Three.js Code for Lord of the Rings Scene · Diggdigg.com · supportingEntities: Andrej Karpathy, Claude Opus 5, Three.js Andrej Karpathy posted that he gave Claude Opus 5 the opening paragraph of The Lord of the Rings plus a 1M token budget and asked for a Three.js render. The model ran for roughly two hours and returned about 5500 lines of procedural code that built an animated low-poly scene. Visible replies on the post include a call to fund a full trilogy benchmark and a joke that OpenAI's Astra model would next handle the Balrog scene. 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… Show more [...] 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 last six months in LLMs, illustrated by pelicans on bicycles | Hacker Newsnews.ycombinator.com · supportingthe other hand... | | | | | | | --- | | | pjs\_ on June 8, 2025 | root | parent | prev | next (javascript:void(0)) | | | | | | | --- | | | landgenoot on June 8, 2025 | prev | next (javascript:void(0)) If you would give a human the SVG documentation and ask to write an SVG, I think the results would be quite similar. | | | | | | | --- | | | diggan on June 8, 2025 | parent | next (javascript:void(0)) Lets give it a try, if you're willing to be the experiment subject :) The prompt is "Generate an SVG of a pelican riding a bicycle" and you're supposed to write it by hand, so no graphical editor. The specification is here: I'm fairly certain I'd lose interest in getting it right before I got something better than most of those. | | | | | | | --- | | | [...] | | | | --- | | | landgenoot on June 8, 2025 | prev | next (javascript:void(0)) If you would give a human the SVG documentation and ask to write an SVG, I think the results would be quite
Andrej Karpathy's initial impressions of Grok 3simonwillison.net · supporting> As far as a quick vibe check over ~2 hours this morning, Grok 3 + Thinking feels somewhere around the state of the art territory of OpenAI's strongest models (o1-pro, $200/month), and slightly better than DeepSeek-R1 and Gemini 2.0 Flash Thinking. Which is quite incredible considering that the team started from scratch ~1 year ago, this timescale to state of the art territory is unprecedented. I was delighted to see him include my `Generate an SVG of a pelican riding a bicycle` benchmark in his tests: Grok 3 is currently sat at the top of the LLM Chatbot Arena (across all of their categories) so it's doing very well based on vibes for the voters there. Posted 18th February 2025 at 4:46 pm ## Recent articles
The last six months in LLMs, illustrated by pelicans on bicyclessimonwillison.net · supportingEveryone needs their own benchmark. So I’ve been increasingly leaning on my own, which started as a joke but is beginning to show itself to actually be a little bit useful! Generate an SVG of a pelican riding a bicycle I ask them to generate an SVG of a pelican riding a bicycle. I’m running this against text output LLMs. They shouldn’t be able to draw anything at all. But they can generate code... and SVG is code. This is also an unreasonably difficult test for them. Drawing bicycles is really hard! Try it yourself now, without a photo: most people find it difficult to remember the exact orientation of the frame. Pelicans are glorious birds but they’re also pretty difficult to draw. Most importantly: pelicans can’t ride bicycles. They’re the wrong shape! [...] Enabling internet access exposes your environment to security risks These include prompt injection, exfiltration of code or secrets, inclusion of malware or vulnerabilities, or use of content with license restrictions. T
2025 in LLMs so far, illustrated by Pelicans on Bicycles — Simon ...youtube.com · supportingfull of numbers. I don't like the numbers. There are the leaderboards. I'm kind of beginning to lose trust in the leaderboards as well. So, for my own work, I've been leaning increasingly into my own little benchmark, which started as a joke and has actually turned into something that I I rely on quite a lot. And that's this. I prompt models with generate an SVG of a pelican riding a bicycle. I have good reasons for this. Um, firstly, these are not image models. These are text models. They shouldn't be able to draw anything at all, but they can output code and SVG is a kind of code. So, that works. Pelican riding a bicycle is actually a really challenging problem because firstly, try drawing a bicycle yourself. Most people in this room will fail. You will find that you can't actually [...] this room will fail. You will find that you can't actually quite remember how the different triangles fit together. Likewise, pelicans, glorious animals, very difficult to draw. And on top of all of
Andrej Karpathy on X: "We're starting ...x.com · supportingWe'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 [...] 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