build-house-from-plan
Turn a 2D house plan into a photoreal 3D house in Blender Cycles, checked by overlaying the build on the drawing: stills, a film of the walls rising off the drawing, whole streets, and shop, cafe or k
Files26
View on GitHubSKILL.mdplugins/3d-generalist/skills/build-house-from-plan/SKILL.md
GitHubBuild a House From a Plan
If references/local.md exists, read it first: it sets the folders and house rules for this machine.
A plan file is read off the drawing, checked against the drawing, built with real wall thickness and real frames, then dressed with scanned materials and models and rendered in Cycles. The drawing stays the judge: nothing ships unless the built floor plan lands on its ink.
Order of work
- Find the sheet and its sources. Prefer a licence-clear plan (an unclear one: name the risk, ask the user once), plus photos of the same building or its type and period.
Read
references/read-plan.mdin full: sources, calibration, reading order, the table of what may be inferred. - Write
plan.json.references/plan-format.mdholds every key. Read the sections you need. Everything not read off the drawing goes inprovenance.inferred, and the final report repeats that list. - Check before building. Stop and fix on any failure:
Fit-out with equipment or sheets in mixed units (m, mm, ft-in): readuv run --no-project --with pillow --with numpy --with scipy python scripts/plan_check.py check plan.json uv run --no-project --with pillow --with numpy --with scipy python scripts/plan_check.py overlay plan.jsonreferences/fit-out.mdand runuv run --no-project --with pillow python scripts/fitout_check.py all plan.jsonfor the unit reconciliation and coordination tables. Fix unit faults before building; clashes then show in 3D as red volumes. - Build. One Blender at a time:
It writes the as-built section next to the blend. Score it withblender -b --factory-startup -t 6 -P scripts/build_house.py -- plan.json out/house.blendplan_check.py asbuilt <section.json>. - Preview small.
--samples 48 --scale 50(--size 1080x1350for a portrait frame), then look at every shot beside the reference photos:blender -b out/house.blend -t 6 -P scripts/render_house.py -- plan.json out/preview --samples 48 --scale 50 - Hunt what looks fake. Read
references/realism-faults.mdbefore judging: the faults this pipeline actually produced, how each one looked and what fixed it. Add each new fault there the same turn. - Final. 1920x1080 at about 512 samples, each still at full size beside a real photo. Look at each one.
- Films.
--film <name>. Abuild_upfilm rises the walls off the sheet itself. Streets: "Streets" inreferences/plan-format.md. - Services, whole house. When the house must work, not only look right (power, water, drains, gas, heat, air), add a
systemssection and runuv run --no-project python scripts/systems_check.py plan.json. It routes every trade, checks the residential code rules, reroutes clashes and exits 1 on anything left. Keys, rules and its limits:references/systems.md. - Live walk page. A house people walk through on the web, rendered live in Crucible, with a plan minimap:
scripts/export_web.py, thenscripts/walk_data.py, then the page. Readreferences/walk-page.md, including its tour check: every planned spot runs through the page's own collision before a frame is rendered.
Hard rules
- Gate: at least 0.70 of wall faces within 7 cm of ink, best-fit offset at most 16 cm, a clear win over a 50 cm shifted control, on both the plan and the as-built section. A fail means the plan or the build is wrong. Never loosen it.
- Sizes are measured or printed, never guessed by eye: wall thickness, ceiling height, sill and head. A height the drawing does not give is inferred from the type and period and listed as inferred.
- Roof and facade without elevation drawings are inferred. Say so in the report.
- Real materials only: Poly Haven or ambientCG scans with their true tile size. No flat colour on a visible surface.
- Furniture comes from real PBR models placed by how the room is used, with walking space kept and fronts facing the
room.
scripts/fetch_assets.pydownloads the CC0 scans,scripts/find_objaverse.pyandscripts/fetch_objaverse.pyfind and fetch CC BY models. - Credit every CC BY model and every source sheet in
CREDITS.mdbeside the plan. - Check orientation on a grid (
scripts/preview_assets.py) before placing a new model. Check native size too, since Objaverse models come in odd units.
Speed
A glTF import is the slow step, so build_house.py caches each model as a linked .blend in the asset library
(HOUSE_ASSET_LIBRARY, default set in scripts/house_core.py). Avoid scanned pines and firs: their importer takes many minutes. Grass and trees take long to
sync, so renders keep persistent data between shots. Any step over 5 minutes gets profiled and fixed.
Done means
Check, overlay and as-built gates pass and are quoted with their numbers. Interior and exterior stills hold up at full size beside real photos. The report states what was sourced, what was inferred and what still looks weak.