Reddit 用户称 Claude 用单个 HTML 文件制作 65 秒 WebGL 影片
AI 总结
一名 Reddit 用户称,Claude Fable 5.2 编写引擎并执导了一段 65 秒的 WebGL 影片,Opus 5.5 子智能体则负责四个场景。发帖者称,成品是一个大小 186 KB、约 3,000 行的 HTML 文件,场景在页面加载时通过数学构建。他还称,Claude 在配备 M5 Pro 芯片的 Mac mini 上用无头 Chromium 渲染了 3,900 帧 1080p60 画面,并通过 ffmpeg 编码。
深度见解
该发帖者描述了一个具体的 AI 辅助编程流程:用户以自然语言向 Claude Code 提供指令和反馈,同时由不同的 Claude 模型承担项目中的不同部分。
| This is a 65 second film made from one HTML file. Claude wrote every line of it. What it is - One HTML file, 186 KB, about 3,000 lines. Raw WebGL. No libraries, no image files, no 3D engine. - Everything you see is built from maths at load time: the fish, the reef, the whale shark, the jellyfish, the glass. - No glasses needed. The depth is a trick of projection. The picture is drawn as if your screen were a window, and the picture frame gives your eye a fixed edge. When a fish crosses that frame, your brain puts it in front of the screen. How it was created - I gave Claude Code a challenge in plain words: make a web page that makes my screen look as deep as a fish tank. Then I kept saying "push it further". - Claude (Fable 5.2) wrote the engine and directed the film. It handed four set pieces to Opus subagents, each working to a written brief: the whale shark, the shattering glass, the coral reef and the glowing night. - I wrote no code. I watched a live preview in the browser and said what I liked. How it was rendered - The same page runs live in a browser. For the film, Claude rendered it frame by frame in headless Chromium on a Mac mini (M5 Pro) and piped the frames into ffmpeg. - Each frame is the average of 64 renders, each with a slightly different lens position, moment in time and light position. That gives real focus blur, motion blur and soft shadows. - 3,900 frames at 1080p60 took 22 minutes. Some numbers - 960 fish in the schools, 9 jellyfish, 335 shards of glass. - Two shadow-casting lights, a mirrored water surface, and water that removes red light with distance, as real water does. https://orchidstreet.github.io/fish-tank-screen/ submitted by /u/Greedy-Giraffe-4269 [link] [comments] |
#Fish Tank Screen#Claude Fable 5.2#Claude Opus 5.5#Claude Code#WebGL#ffmpeg