Blockout 2 Real Uses an Agent to Convert a Graybox Blender Scene into an Editable Material and Lighting Scene
Blockout 2 Real combines a graybox Blender scene with a photorealistic reference from the same viewpoint and uses an agent to process materials, textures, and lighting, outputting an editable .blend scene.
The material specifically demonstrates the automated workflow from a graybox scene to an editable Blender scene and explains its cost, dependencies, and fixed-viewpoint limitations.
🏠 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
Source: CuteGuy☣️ · x.com
