Papertrails
用 AI 代理循环迭代做出的 Three.js 纸艺立体书无尽漫步世界
Papertrails 是一款浏览器内的 3D 漫步小玩具:小纸人走在无尽的立体书上,前方的地形(树、房子、桥、河)以铰链纸片的形式弹起,身后的则折回平面。作者用一份结构化提示词(参考、细节、工具、工作方式、交付)驱动 AI 代理自主完成:先用 GPT Image 生成概念图并收集真实立体书照片,再测量色彩、边缘和光照作为数值目标。美术图集由 AI 生成后裁切贴到铰链卡片上,并扩展出 15 种生物群系、天气与昼夜。最值得参考的是“盲评 A/B 评审 + 渲染、对比、批评、修复”的闭环。
值得借鉴
- 先生成概念图并收集真实照片,作为可量化的风格目标
- 把参考图的色板、边缘、光照测成数值目标
- 每个组件一个子代理,配独立盲评评审做 A/B 对比
- 整张印刷美术图集一次生成,再裁切贴到铰链纸卡
- 提示词写明工作方式:自主运行、可回退、仅追加日志
制作流程
作者用一份结构化提示词定义参考、细节、工具、工作方式和交付物,由代理自主执行。第一步用 GPT Image(提示词中为 Codex CLI imagegen)生成 4-6 张概念图,并收集真实立体书和纸艺照片,测量其色彩、边缘、光照,转成数值目标。随后每个部件由一个子代理负责,盲评评审把每次构建与参考图 A/B 对比。所有印刷美术作为一张图集生成,再裁切到铰链纸卡上。之后用风格指南和 GPT Image 做出 15 种生物群系与天气参考,选一张图作为具体风格参考,为每个生物群系和动物生成金标风格目标。最后循环“渲染、对比、批评、修复”。帖子称使用 Fable 5.2 和 Opus 5.5 构建,运行于浏览器 three.js。
公开提示词
Build "Pop-up Atlas", a browser 3D walking toy, in Three.js. Reference none yet. First generate 4-6 concept frames with imagegen (tilt-shift papercraft diorama, tiny paper traveller, terrain folding up out of an open book, warm lantern light). Collect photos of real pop-up books and papercraft dioramas. These become the target. Match their look and tactile paper feel exactly. Details small paper traveller walks across an endless open pop-up book. Terrain ahead folds up out of the flat page: hinged paper tiles (hills, trees, houses, bridges, rivers) rise on springs, overshoot and settle with a slight wobble. Wave function collapse picks tiles so neighbours always connect. Tiles behind fold back flat. Look: matte cardstock, limited warm palette, visible paper edges and fibre, layered cut-paper silhouettes, soft shadows between layers, high-angle tilt-shift camera with strong DOF blur, warm key light + cool fill. Every fold gets a soft paper "flap" sound with varied pitch. Controls: WASD or click to walk, smooth camera follow. No physical-looking UI, no external brand assets. Tools Blender (tile models with hinge pivots, traveller, fold animations, baked paper materials → glTF). Codex CLI imagegen (concept frames, paper textures, printed details). Web Audio procedural paper sounds (or samples if better). How to work autonomous, no questions; log assumptions. Study reference → checklist of components with measurable targets. One sub-agent per component, each owns its files, project stays running. Loop on every component: separate harsh blind critic, A/B side by side vs reference in random order, says which is better + fixes. Continue until critics can't reliably pick the original and are wowed. Also judge fold motion/spring feel, walking feel, sound, performance (steady 60 fps mid-range laptop). Revert anything that makes it worse. Append-only log. User's explicit instructions override critics. Deliver playable Vite build + run instructions, 30-second gameplay capture, final side-by-sides and scores.
标签 · 人物 · 场景 · 道具物件 · 整款游戏 · 3D · 手绘水彩 · 沙盒开放世界 · Claude / Claude Code · Codex / GPT · GPT Image · Three.js · 纸艺 · 立体书 · 程序化生成 · 盲评迭代 · 生物群系