Skip to content
←返回博客
用 Claude 和 Blender 做出任何 3D 作品(完整课程)
ClaudeBlender3D 生成

用 Claude 和 Blender 做出任何 3D 作品(完整课程)

用 Claude 写 Python 驱动 Blender 做 3D 的完整课程:两条接入路线、代码与生成器的分工、可测量的参考图、逐部件构建、灯光渲染、动画与导出,每一步都附提示词。

Rhino (@0xRhinoX)2026年11月27日9 分钟阅读26次阅读
EN

2027 年的完整 3D 课程:环境搭建、7 类 3D 工作、每一步的提示词。收藏起来。

打开过 Blender 的人都知道那是什么体验:几百个快捷键、一个甜甜圈教程,一个周末过去了,屏幕上的东西还是不像你脑子里想的那个。

现在这些大部分可以跳过。Claude 本来就懂 Blender:它的 Python API、每一个修改器、两套渲染引擎。你描述物体,Claude 写代码,Blender 把它建出来,然后 Claude 看着渲染图修正不对的地方。

效果是这样的:Arafune 允许 Opus 5.5 用 Tripo 生成模型,结果它只用在大约 5% 的场景上,其余全部自己建模,着色器也大部分自己写:

演示来自 @arafune:Opus 5.5 只在约 5% 的场景里用了 Tripo,其余自己建模,着色器基本以程序化方式完成。声音由 HunyuanVideo-Foley 生成。

你仍然需要一双能看出哪里不对的眼睛。但你不需要那些快捷键。

这份指南带你从一个空场景走到一张成品渲染图、一段短动画,或者一个能进游戏、网站、3D 打印机的文件,每一步都配好提示词。


先说结论

YOU      describe the object
 │
 ▼
CLAUDE   writes Python
 │
 ▼
BLENDER  builds it, renders
 │
 ▼
CLAUDE   compares with the reference
 │       wrong? fixes, max 3 rounds
 ▼
YOU      OK → next part
  • 一次性搭好环境:想看着 Claude 在 Blender 窗口里干活,用 Blender MCP;大型构建用 Claude Code 让 Blender 在后台跑。
  • 能用尺子量出来的东西用代码建;得靠雕刻才能做出来的东西用 3D 生成器。
  • 先给 Claude 数字再给几何,一条提示词只建一个部件,每次改动后都渲染一张图来对照。
  • 打光、渲染、动画、导出,也全都是提示词。

从这里开始:一次性搭好环境

把 Claude 接上 Blender 有两条路。大多数人最后两条都会用。

ROUTE 1 · BLENDER MCP
Claude ──▶ Blender window
   ▲             │
   └─ screenshot ┘
you watch every step
best for learning and fixes

ROUTE 2 · CLAUDE CODE, NO WINDOW
Claude Code ──▶ build.py
     ▲             │
     │        blender -b
     │             │
     └─ render.png ┘
runs for hours on its own
best for big builds and renders

路线 1:Blender MCP。Claude 直接操作你打开的 Blender 窗口。你能看到每个物体出现,Claude 自己截视口的图来检查自己的工作。

  1. 安装 Blender(免费)和 Claude Code 或 Claude Desktop。
  2. 从 github.com/ahujasid/blender-mcp 安装 Blender MCP 插件:在 Blender 里 Edit > Preferences > Add-ons > Install from Disk,选中 addon.py。
  3. 用下面的命令把服务器加进 Claude Code。
  4. 在 Blender 里按 N,打开侧栏的 BlenderMCP 标签页,点 Connect。
  5. 问 Claude:"List the objects in the open scene."(列出当前场景里的物体。)如果它回答默认的立方体、相机和灯光,就说明连上了。
claude mcp add blender uvx blender-mcp

这个插件会执行 Claude 发来的任何 Python,所以每次开工前先保存文件。

路线 2:Claude Code + 后台 Blender。Claude 写一个 Python 脚本,以无窗口模式运行 Blender,渲染,再打开图片检查。整个过程不依赖任何窗口保持打开,所以长任务走这条路。

把下面这段一次性放进项目文件夹的 CLAUDE.md:

# Blender
- Blender path: /Applications/Blender.app/Contents/MacOS/Blender (Mac). Change it for Windows or Linux.
- Run scripts as: blender -b scene.blend --python script.py
- Keep every step as its own .py file so it can be rerun after any change.
- Units: metres, real size. Origin at the base centre. Z is up.
- After every change: render a 768 px preview, open it, list what is wrong.
- Max 3 fix rounds per part, then stop and show me.

用哪个 Claude:

MODEL       USE IT FOR
──────────  ─────────────────────────
Opus 5.5    almost everything
Fable 5.2   long jobs, whole scenes,
            leading Opus agents
Sonnet 5.5  simple parts, variants

有一批免费工具能让 Claude 在下面每一步都做得更好,从重拓扑到 UV 再到 LOD。这份清单是个不错的起点:

演示来自 @0xKense1:Claude Code 驱动一批开源工具——一个建模、一个修拓扑、一个展 UV、一个画贴图、一个减面。

唯一一条规则:代码、生成器,还是你

在写任何提示词之前,先决定形状从哪里来。

Could you measure it with a ruler?
  YES → CLAUDE + CODE
        consoles, phones, furniture,
        cars, buildings, weapons
  NO
  ▼
Would you have to sculpt it?
  YES → 3D GENERATOR
        faces, animals, monsters,
        cloth folds. Then Claude
        cleans, rigs and animates it
  NO
  ▼
Is it about the look or feel?
  → YOU
    which version, the light,
    when it's done

Claude 不擅长照着图片复刻雕刻出来的形状:用代码建的角色看起来会像个玩具机器人。好的场景大多三者混用,比如一个生成出来的角色,站在代码建出来的房间里,镜头由你拍板。


1. 给 Claude 一份能量出来的参考

大多数第一次尝试都败在这里。AI 生成的产品图带着透视和阴影,各个视图之间互相对不上。Claude 看得懂那张图,但量不出尺寸,于是只能猜,部件就悬在了半空。

先拿到平面视图。让任意图像工具生成,或者用正对着拍的真实照片:

Orthographic front view of [object], exactly front-on, no perspective.
Plain white background, flat light, no shadows, no reflections.
Same scale as the side and top views. Nothing cut off at the edges.

然后让 Claude 在建任何东西之前先把数字写出来:

Read front.png, side.png and top.png. Before modelling anything, write parts.json:
every part of the [object] with its size in cm, its position from the base centre,
its colour and material, and which part it attaches to.
Show me the list and wait for my OK.

清单自己过一遍。这里错一个数字,改一行就能修好;等建完模再发现,就得重建。

只要你知道任何一个真实尺寸,就告诉 Claude:银行卡是 85.6 × 54 mm,门大约 2 m 高。其余一切都按它缩放。


2. 硬表面物体,一个部件一个部件地建

reference
    ▼
parts.json ── you check the numbers
    ▼
build one part ◀───────┐
    ▼                  │
render, compare        │
    ├── wrong: fix ────┤ max 3
    ▼ right            │
next part ─────────────┘
    ▼ all parts done
assembly check by numbers

一条提示词建一个部件,每次都开新会话。整物体一条提示词的做法,每修一次都要把全部东西重渲染一遍,截图会塞满 Claude 的上下文,直到它开始忘掉最早建的那些部件。

Build part "[name]" from parts.json in a Blender script.
Use primitives and modifiers: bevel the hard edges, mirror what is symmetric,
array what repeats. No downloaded models.
Render it next to the reference from the same angle and list the differences in cm.
Fix and rerender, max 3 rounds.

所有部件都建好后,除了用眼睛看,还要用数字检查装配:

Load all parts. For every part print the gap to the part it attaches to
(must be 0, nothing floating), any overlaps, the total triangle count
and the overall size against parts.json.
Render front, side and 3/4 views and open them.

想要爆炸图——那种让人停下滚动的手指的画面:

Make an exploded view: move every part outward along the axis it was assembled on,
in assembly order, with even gaps. Keep the camera fixed. Render it.

更大的物体做法一样,只是多几双手。这个例子里 Fable 5.2 带着三个 Opus 5.5 智能体,用大约 7 小时从零建出一把玻璃键盘:

演示来自 @MrTacticalX:一把玻璃键盘,每个部件都从零建模。Fable 5.2 带三个 Opus 5.5 智能体,耗时 7 小时 2 分,花费 $139.87。

同样的思路可以放大到一台 100 英尺高的步行机器人,从一张参考图出发全部用代码建出来:

演示来自 @apekshik:用 AnyMachine 纯代码建出的 100 英尺步行机器人。AnyMachine 从一张参考图生成正面、侧面、顶面、四分之三视角以及每个关节的特写参考。

3. 建筑和整条街道

不要建十栋房子。要一个想要多少就能生成多少的生成器:

Write buildings.py: one function per building type (house, shop, tower) with
width, depth, floors, roof type and colour as parameters. Windows and doors placed
by rule, flat colours. Build 10 variants from different seeds, line them up,
render the row and open it.

然后是一条街:

Write street.py: a 200 m street with pavements, kerbs, lamp posts every 25 m,
parked cars and trees. Place buildings from buildings.py along both sides
with random seeds, no two neighbours the same. Add a sun and render from eye height.
buildings.py  one function per type
    ▼
10 variants   different seeds
    ▼
street.py     200 m, props, 2 sides
    ▼
district.py   streets on a grid

建筑和街道道具留在代码里。图生 3D 的生成器返回的形状几乎都是方方正正的,一辆巴士或一段围栏拉伸到真实长度后,出来的是又平又糊的东西。

生成器路线能走多远:一个迈阿密风格的完整小镇,2,538 个资产。


4. 角色和生物

这里由生成器做出形状,之后的所有事交给 Claude。

1  turnaround sheet  A-pose, empty hands
2  3D generator      Tripo, Hunyuan3D
3  import, clean     scale, normals
4  joints            on a 5 cm grid
5  armature, weights
6  pose test         find the stretch
7  animations
8  export

画一张生成器能读懂的转面图:

Character turnaround sheet: front, side, back. Orthographic, same height,
A-pose with arms away from the body, legs apart, empty hands.
Light grey background, flat even light, no shadows.

在 Tripo、Hunyuan3D 或其他工具里生成模型,然后带进 Blender:

Import model.glb. Face it forward, feet on the floor, height [1.8] m, apply transforms.
Merge duplicate vertices, recalculate normals, list holes and loose parts.
Make a copy reduced to [20,000] triangles that keeps the textures.
Render front and back and open them.

然后是骨架和第一次测试:

Find the joints on front and side renders with a 5 cm grid: hips, spine, neck, head,
shoulders, elbows, wrists, knees, ankles. Build an armature on them with standard
bone names and bind the mesh. Pose test: arms up, a step, head turned.
Render each pose and show me where the mesh stretches.

想看同一条流水线更细的版本,@0xKense1 的免费 15 步指南(《Create 3D Game Models for Free: Opus 5.5 + Blender + Tripo》)逐步讲了道具、角色、绑定和导出,也回答了两个最常见的问题:为什么 AI 图纸出来的低模道具会变成悬空的盒子,为什么 Tripo 生成的角色一动衣服就拉伸。


5. 材质、灯光和产品照

好模型配上差灯光,看起来就是廉价。这一步让渲染图像照片。

Give every part a procedural material: matte plastic, brushed metal, glossy black,
rubber, glass. No image textures. Small roughness variation so nothing looks
perfectly clean.
         RIM (behind)
              │
              ▼
KEY ──▶   OBJECT   ◀── FILL
big, soft,    ▲        half the
45° left      │        key, right
         CAMERA 85 mm
Set up a studio product shot: dark grey seamless background, one large soft key light
at 45 degrees, a fill light at half strength on the other side, a rim light behind.
Camera at 85 mm, slight depth of field on the hero part.
Render in Cycles on the GPU with denoising, 1920x1080. Open it.

如果渲染图看起来平,一次只提一个改动("主光更大更近"、"轮廓光更暖"),不要整套重来。

你喜欢的那部电影或游戏里的场景也一样。把那一帧给 Claude,让它重建:

演示来自 @isupportaiart:用 Claude 在 Blender 里复刻自己最喜欢的一个电影场景。

转盘动画,最简单但永远好用的视频:

Turntable: rotate the object 360 degrees over 240 frames at 30 fps, smooth start
and stop, camera fixed. Render an Eevee preview first. If I approve it, render
the final in Cycles.
ENGINE  SPEED        USE IT FOR
──────  ───────────  ─────────────
Eevee   sec / frame  previews
Cycles  min / frame  final renders

6. 动画和短片

Claude 用代码做动画,所以你描述运动的方式,就像向一个人描述一样:什么在动、什么时候动、动多快。

装配动画最适合物体:

Animate the assembly: start from the exploded view, bring parts in one at a time in
reverse assembly order, 12 frames per part, ease out, a small overshoot on the
last frame. Slow camera push-in over the whole clip. Eevee preview first.

短片从分镜表开始:

Write a shot list for a [30]-second film about [story]: for each shot the camera
position and lens, what moves, and the length in frames. Wait for my OK.
Then build one shot per script, render each as an Eevee preview and show me.
shot list ──▶ your OK
    ▼
one script per shot
    ▼
Eevee previews ── not right? change
    ▼ OK
Cycles final

任何最终渲染之前先确认预览。一部 Cycles 片子可能要渲几个小时,成片之后再改就意味着重渲一遍。

做好返工的心理准备。这条片子在 Claude Code + Blender 里经历了 9 轮反馈:

演示来自 @AmirMushich:一条提示词,加上在 Claude Code + Blender 里的 9 轮修改。

而这是目前的天花板:Fable 5.2 上一条提示词产出的 2 分钟 4K 短片,每个资产都用 Python 建出来,约 4.5 小时:

《The Fable of Clawd》,来自 @rileybrown:Fable 5.2 上一条提示词、完全在 Blender 里做出的 2 分钟 4K 短片,约 4.5 小时,每个资产都是写 Python 建出来的。

7. 导出:游戏、网站、3D 打印

TARGET     FORMAT  CHECK AFTER IMPORT
─────────  ──────  ──────────────────
website    GLB     size, 1024 px tex
Unity, UE  FBX     scale 1, bones
Roblox     FBX     <20k tris per mesh
3D print   STL     closed, walls 2 mm+

网站(three.js 之类):

Export a GLB with modifiers applied, one node per part, names kept.
Then make a web copy: reduce to [100,000] triangles, textures at 1024 px,
compress it. Print both file sizes.

Unity 或 Unreal:

Export an FBX: mesh, armature and all animations, scale 1, Add Leaf Bones off.
Import it back into an empty scene, play every animation and print the bone count,
triangle count and height.

一个完整的房间在 Blender 里建好、用 Opus 5.5 搬进 Unreal Engine 5,全程没有手动打开过任何 3D 软件:

演示来自 @rewind02:用 Opus 5.5 在 Blender 里建好一个游戏可用的房间并搬进 Unreal Engine 5,实时运行。没有人手动打开过 3D 软件。

还有一个真的能玩的游戏,用 Opus 5.5、Blender 和 Unreal 做出来:

演示来自 @dhruvalgolakiya:用 Opus 5.5、Blender 和 Unreal 做出的可玩游戏。

Roblox 的话,每个网格保持在 20,000 三角面以内,导入后检查尺寸,因为导入器可能把整个文件重新缩放。

3D 打印机:

Prepare [object] for 3D printing: one closed mesh, no holes, no inside faces,
walls at least 2 mm thick, flat base. Run the 3D-Print Toolbox checks and fix
what fails. Export STL in millimetres.

出问题的时候

parts float or overlap
  → flat views + parts.json (1)
"done", but nothing in the scene
  → list objects after each change
forgets earlier parts
  → 1 part per session, 768 px
black faces, odd shading
  → recalculate normals
pink objects in the render
  → pack textures into the .blend
black render
  → test light, camera not inside
boolean leaves holes
  → Exact solver, cut, then bevel
wrong size after export
  → apply transforms first
clothes stretch on the rig
  → weights by body part (4)
Blender MCP stops answering
  → click Connect again (N panel)

同一时间只能有一个 Claude 会话连着 Blender MCP,所以 Connect 一直失败的话,把另一个会话关掉。


总结

做 3D 已经不必先学 Blender 的按钮了。一次性把 Claude 搭好——Blender MCP 或 Claude Code——然后决定每个形状从哪里来:能量出来的用代码,要雕刻的用生成器。给 Claude 平面参考和真实数字,一次建一个部件,每张渲染图都检查。同一个循环覆盖街道、角色、产品照、动画,以及导出到游戏、网站或打印机。

SETUP   MCP to watch, Claude Code
        for big jobs
DECIDE  ruler → code
        sculpt → generator
        taste → you
REF     flat views + parts.json
BUILD   1 part, render, fix x3
SCALE   generators for streets
CHAR    generate, clean, rig, test
LOOK    3 lights, 85 mm, Cycles
MOVE    shot list, Eevee, Cycles
SHIP    GLB web, FBX engine,
        STL print, check again

留给你的,是知道自己想要什么,并把它说清楚。


来源:本课程由 Rhino(@0xRhinoX)撰写,2026-11-27 以 X 长文形式发布:How to Make Anything in 3D With Claude and Blender (Full Course)。演示视频转载自各图注中署名的创作者。本站翻译转载,媒体已本地化;提示词与示意图保留英文原文,可直接复制使用。

原文来源:X Article / Rhino (@0xRhinoX)https://x.com/0xRhinoX/status/2126313938870522306

相关文章

本站含 CakeGrowth 联盟推广链接,我们可能从符合条件的购买中获得佣金。