blender-motion-state-inspection
AFaffaan-m/ECC314k近 7 天新增 3,503 个 star
Build a photoreal, film-style Blender scene from a one-paragraph brief. Generate concept images and every prop with image→3D models on fal, then script the layout, set dressing, grime, lighting, camera moves and grade. Use it when someone asks for a realistic 3D environment, a set or a cinematic shot of a place, whether starting fresh or extending an existing AnyScene scene.
AnyScene turns a brief like "a 1 AM electronics repair shop in Tokyo, rain outside" into a dressed, lit Blender scene with
cinematic shots and a behind-the-scenes video. Agents built the two example scenes (scenes/tokyo-electronics-repair, scenes/tokyo-ramen-shop) with this process.
Each has 75–90 generated props, 8–9 shots, and about $150 of generation per round.
You are the art department, set dresser, gaffer and DP. Everything is a script you can re-run; the .blend is a build output. Never hand-edit a .blend you can't regenerate.
| Tool | Notes |
|---|---|
| Blender 5.0+ | $BLENDER. Background mode (-b) for everything; the GUI is only for a human to look. |
| ffmpeg | $FFMPEG. Needs an h264 encoder (libx264 or h264_nvenc), curves, hue, vignette, noise, xfade. |
| Node 20+ | for generate/fal.mjs |
| fal key | FAL_KEY env var. Never print or log it. |
| GPU | 12–16 GB is enough for one Cycles render at a time. Two at once runs out of memory: see GPU rules. |
scenes/<scene>/
brief.md the brief + decisions (mood, time, lens style), kept up to date (new; the reference scenes keep this in NOTES.md)
assets.json room dims + every prop: id, prompt, height h, optional dims [x,y,z]
picks.json per prop: chosen model + one-line why; retired / debranded flags
shots.json camrig shots (see camera/README.md)
NOTES.md gotchas you hit, in one line each — read it before touching the scene
props/<id>.blend prepped props (output of prep)
out/ renders, sheets, graded shots
scripts/ the scene's build scripts: shell, dress, validate, grime, lights, post
refs/<scene>/ concept images, prop references, textures/decals
assets/gen/<model>/<id>/model.glb raw generator output (never edited)
Reusable pieces (don't fork them per scene unless you need to change them):
generate/fal.mjs: image and 3D generation, with an append-only spend log.pipeline/gpu_run.sh: a FIFO GPU queue.pipeline/render_compare.py: same-light comparison renders.camera/: camera rig and shot renderer.breakdown/assemble.py: the behind-the-scenes video.pipeline/build_scenes_page.mjs: the gallery page.Work in this order. Each step ends with a gate: a contact sheet or check you look at before moving on. Look at the images yourself. A script that ran without errors proves nothing about how the scene looks.
Write brief.md:
Real places are small: the repair shop is about 3.5 × 6 m. Keep it tight. Density sells realism more than size does.
Run node generate/fal.mjs image --variant sunburst --out refs/<scene>/concept_wide --prompt "...", and again for a
detail shot. GPT Image 2.5 Sunburst beat Flare on legible signage text and natural grade. These set palette, clutter level
and the prop list; you don't match them shot for shot.
Gate: the user (or you, if running solo) agrees on the look.
List every object in assets.json. Sort them into four tiers:
Decide per object whether to generate it or direct-model it:
Give every generated prop:
h: its real height in metres;dims: for boxy things, because generators invent depth (fridges, ticket machines, ranges);For each prop:
No real-world brand names or logos. Product reference photograph for 3D scanning. The entire object fully visible and centered, three-quarter front view from slightly above, plain seamless light-grey background, soft even diffuse studio lighting, no harsh shadows, no other objects, no hands, realistic used and worn condition, sharp focus, true-to-life materials.
--model tripo-h31) and Meshy 7.1 (--model meshy).Notes:
<id>_nb, with a fictional brand.Gate: a reference sheet with no real brands.
Render reference | Tripo | Meshy, front, back and clay, under the same light (render_compare.py), then sheet them. Pick per prop and
record the choice and a one-line why in picks.json.
What the reference scenes found across ~150 props:
Gate: the picks sheet. Every prop has a winner or is retired.
Turn every pick into props/<id>.blend:
orientation: align_image also bakes a ±20–30° Z rotation into the glTF node (to match the reference photo's three-quarter view): clear that node rotation before the −90° turn, and frame by vertex bounds, not bound_box.h/dims.Gotchas:
rotation_euler is silently ignored. Set rotation_mode = "XYZ" first.pack() again on an unmodified image drops its data and the prop renders magenta. Repack only the images you resized.Script the room: floor, walls, ceiling, storefront and glass, counters, shelving and fixed furniture. Name objects clearly; shots and lights reference them by name. Gotchas:
matrix_world on objects created in the same script is stale until view_layer.update().Gate: a clay sheet from the hero camera positions.
Place furniture props, then heroes, then mid props, then clutter. Each pass drops props onto surfaces with raycasts.
Start drop rays below anything overhead (shelf above, hood, conduit), or the prop lands on top of it.
Vary instances with ob.color multiplied into albedo (Object Info › Color), so repeated meshes don't read as copies.
Run the validator after every pass. Check each prop for:
Clashing small props get spiral-searched to a clear spot. Validator reports are noisy, so read them: a plinth or pots on a burner can be legitimate.
Re-drop after every move. Anything a clash resolver or a later pass moves sideways must be dropped onto the surface under its new position. Skipping this left two stools hovering at table height in the dai pai dong.
Run the grounding check after the last dressing pass and again before final renders:
blender -b scene.blend --python pipeline/grounding.py -- --prefix <scene prefix> --max-gap 2, then with --all.
It casts rays down from each object's lowest vertices (feet, legs, base rings) and skips volumes. Checking from the
bounding box misses floaters whenever the box bottom isn't where the object touches down. Fix floaters in the
dressing scripts, not only in the saved file, so a rebuild stays grounded. Hanging items (signs, AC units, lamps,
posters) are skipped unless you pass --all; check that each one it lists really is meant to hang.
Gate:
The scene must expose the ten dials in docs/ENDPOINT.md (density, tidiness, wear, wetness, time_of_day, weather,
atmosphere, power, warmth, look) as real controls, so they can be changed after the build without rebuilding:
Write dials.json (each dial's value plus what it means in this scene) and scripts/apply_dials.py, which reads
dials.json and sets every control. Apply the dials once at the end of the build, so the rig is what produced the
finals.
Gotchas:
material.cycles.emission_sampling = "NONE" on those.Gate: Cycles stills of each hero spot at 32–64 spp.
surface_distance around 1.0 (it is measured in cells), and keep emitters well inside the domain.rmtree: fluid.free_all() is async in background mode and deletes the new bake.rotation_mode = "VEL" and drop geometry along +X.Write shots.json for camera/shoot.py. Its README is the contract: moves, rack focus, lens FX and the handheld profiles.
--framing (3 stamped stills per shot), then --preview (Eevee, stamped)."handheld": {"profile": "walk"}, a 4–6 key path at walking pace. People respond most to the walkthroughs. Keep them as long, uncut takes.obj uses the bounding-box centre. For deep objects, put a pos on the face you want sharp.Gate: previews reviewed. Each shot's framing, move and focus are approved before any final render.
blender -b file.blend renders Cycles on the CPU unless a pre-script sets the GPU compute device (--python scenes/<scene>/scripts/gpu_prefs.py, before any other --python). Device prefs are user prefs and aren't saved in the .blend. This cost the reference scenes hours.pipeline/gpu_run.sh. Existing frames are skipped, so runs resume.Grade in ffmpeg, not the Blender compositor. The 5.0 colour-balance and mask nodes misbehave. Keep only Glare and Lens
Distortion in Blender. Grade with curves (lift blacks to about 0.03, teal shadows, warm highlights), hue=s=0.88, a slight
rgbashift, vignette and temporal noise.
Deliver:
breakdown/SPEC.md + breakdown/assemble.py make a one-minute video: concept, layout, props, dressing, materials, lighting, post and final shot.
The scene supplies four "dollhouse" clips, one 120° orbit with the ceiling and near walls hidden:
pipeline/gpu_run.sh. Keep each locked call under about 10 minutes.blender process before starting anything..gpu.<scene>_done, and create one only when the work is actually done.| Item | Cost |
|---|---|
| Reference image | ~$0.25 |
| Tripo H3.1 | ~$0.60 |
| Meshy 7.1 | ~$0.80 |
| Per prop, both models | ~$1.65 |
| ~90-prop scene | ~$150 |
Every call is logged to generate/spend.jsonl; node generate/fal.mjs spend totals it.
Time on one 16 GB GPU: a scene is roughly a day of agent work, and the final shots are about 1–2 GPU-hours.
assets.json, shots.json and scripts/ into scenes/<your-scene>/
(name the folder after the place, e.g. lisbon-tram-depot), then rewrite brief.md and assets.json for it.scripts/ as a starting point, but the
shell and the dressing passes are always scene-specific. That's where your judgement goes.NOTES.md as you go. Anything that cost you more than 10 minutes gets one line. The next agent reads it first.picks.json with a reason, and no real brands are visible in any shot.pipeline/grounding.py reports 0 unintended floaters on the file the finals are rendered from.NOTES.md is updated, and the spend is totalled.AFaffaan-m/ECC314k近 7 天新增 3,503 个 star
ANanthropics/skills203k近 7 天新增 2,822 个 star
HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,401 个 star
SHShubhamsaboo/awesome-llm-apps146k近 7 天新增 818 个 star
GAgarrytan/gstack143k近 7 天新增 524 个 star