跳到正文
CuteGuy☣️· @cutetoxicguy · X·· 21 天前精选AI 评分81

Blockout 2 Real 用 Agent 将灰盒 Blender 场景转换为可编辑材质与灯光场景

AI 导读

Blockout 2 Real 将灰盒 Blender 场景与同视角写实参考结合,通过 Agent 完成材质、纹理和灯光处理,输出可继续编辑的 .blend 场景。

推荐理由

材料具体展示了从灰盒场景到可编辑 Blender 场景的自动化流程,并交代了成本、依赖和固定视角限制。

正文 · 原文

🏠 Give an agent a grey Blender room and get back an editable scene with UV textures, PBR materials and fitted lights, guided by a photoreal reference of the same view.

Blockout 2 Real from @gokayfem packages that workflow as an agent skill with Python tools. It works with Claude Code, Codex, Cursor and other compatible agents.

The output is a .blend scene: geometry, Principled BSDF materials and ordinary lights that you can keep editing.

🎨 From blockout to materials

▪️ Load a .blend, import GLB/glTF, FBX, OBJ, USD, PLY or STL, or build a layout from a JSON primitive specification.
▪️ Render the scene’s fixed camera with depth, normals and object-ID buffers.
▪️ Generate a photoreal target using Nano Banana 2, checking its outlines against the existing layout. You can supply your own target from the exact same viewpoint.
▪️ Estimate albedo, roughness, metallic, normals and depth using Marigold, PATINA and MoGe-3.
▪️ Back-project material maps into each object’s UVs, checking visibility so neighboring objects do not contaminate one another’s textures.

💡 Lighting is fitted through Cycles. Candidate lights are rendered separately, their strengths and colors are solved against the target, and unhelpful lights are removed.

🔍 The review loop is more interesting than “make it look better.”

It measures perceptual similarity with LPIPS, also reports PSNR and SSIM, and produces per-object error maps. A fresh reviewer sees the target and re-render, identifies shape, material and lighting problems, and its findings guide the next edits.

The documented loop stops after three iterations or when improvement stalls. Because generated references can drift, every scene is scored against every target before choosing the final result.

💸 The code is MIT-licensed, but the pipeline needs paid fal calls. The author reports about $1.47 in fal costs for the first three-iteration example. Calls are logged against an estimated per-case budget; your coding agent’s token usage and local rendering are additional costs.

Requirements include Blender 5.2+, Python 3.10+ and FAL_KEY. There is no complete offline path.

📐 The main limitation is the fixed view. Unseen surfaces are filled from visible textures, so moving the camera can reveal smears or flat areas. Roughness estimation is imperfect, and glass, mirrors, animation and multi-camera workflows are outside the intended scope.

Useful for developing a scene’s look while retaining real 3D controls, especially when you plan to finish the materials and lighting yourself.

github.com/gokayfem/blockout-…

#Blender #PBR #AIAgents #GameDev

来源:CuteGuy☣️ · x.com