An AI agent skill that turns any subject into a 3D film or app
Light rooms behind exterior glass, slab street kerbs and brighten white siding; release 0.1.1
Nguyen Xuan An62164c48d22a
diff --git a/docs/images/house-from-plan.jpg b/docs/images/house-from-plan.jpgindex f5cd0f1..755efd6 100644Binary files a/docs/images/house-from-plan.jpg and b/docs/images/house-from-plan.jpg differdiff --git a/plugins/build-house-from-plan/.claude-plugin/plugin.json b/plugins/build-house-from-plan/.claude-plugin/plugin.jsonindex 9176113..ccd0756 100644--- a/plugins/build-house-from-plan/.claude-plugin/plugin.json+++ b/plugins/build-house-from-plan/.claude-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "build-house-from-plan",- "version": "0.1.0",+ "version": "0.1.1","description": "Turn a 2D house plan into a photoreal 3D house in Blender Cycles, checked by overlaying the build on the drawing, with stills, a build-up film and whole streets.","author": {"name": "CodePawl",diff --git a/plugins/build-house-from-plan/skills/build-house-from-plan/references/realism-faults.md b/plugins/build-house-from-plan/skills/build-house-from-plan/references/realism-faults.mdindex 4fb09e9..6568815 100644--- a/plugins/build-house-from-plan/skills/build-house-from-plan/references/realism-faults.md+++ b/plugins/build-house-from-plan/skills/build-house-from-plan/references/realism-faults.md@@ -49,6 +49,9 @@ Each entry was seen on a real render from this pipeline. Read the group you are127 s and looks the same.- **Empty strip at the horizon.** The ground ends in clean sky. Add a treeline of 110 or more trees, set `ground_size`well past it. Use a list of rings when one ring leaves gaps.+- **Black seam along a kerb.** Road and pavement were flat faces at different heights. Build them as slabs.+- **Doorway or window a black hole from outside.** The room behind it had no light. Keep the window lamps on for exteriors.+- **White siding renders grey.** The scan is dark before any tint. A tint above 1.0 is fine, check it beside a photo.- **Disc edge in a high aerial.** The ground has an end. Keep the camera low enough that the treeline hides it.- **Pines and firs.** The scanned pine takes many minutes to import. Use broadleaf trees unless the place demands them.- **House floating or sunk.** Set `site.ground_level` from the drawing's steps, and let the plinth show.diff --git a/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/build_street.py b/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/build_street.pyindex 3369155..8d0fdef 100644--- a/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/build_street.py+++ b/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/build_street.py@@ -93,13 +93,15 @@ def lot_footprints(plan_slabs, lot):return outlines+SLAB_DEPTH = 1.5++def build_strips(street, collection):- """Road, pavements and drives: flat polygons just above the ground."""+ """Road, pavements and drives as slabs, so a kerb has a face and no gap shows black beside the road."""batch = MeshBatch("street_surfaces", 71)for surface in street.get("surfaces", []):height = surface.get("z", 0.0)- points = [Vector((point[0], point[1], height)) for point in surface["poly"]]- batch.add_face(points, surface["material"], uvs=[(point[0], point[1]) for point in surface["poly"]])+ batch.add_prism(surface["poly"], height - SLAB_DEPTH, height, surface["material"])batch.finish(collection)diff --git a/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/house_core.py b/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/house_core.pyindex 7dc5dc6..bfe8efb 100644--- a/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/house_core.py+++ b/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/house_core.py@@ -13,7 +13,7 @@ LIBRARY = pathlib.Path(os.environ.get("HOUSE_ASSET_LIBRARY", pathlib.Path.home()# name: (Poly Haven or ambientCG folder, metres per tile, tint, desaturate, bump strength, roughness scale)TEXTURED_MATERIALS = {- "siding_white": ("distressed_painted_planks", 1.6, (0.92, 0.90, 0.85), 1.0, 0.25, 0.9),+ "siding_white": ("distressed_painted_planks", 1.6, (1.45, 1.42, 1.34), 1.0, 0.25, 0.9),"board_redwood": ("oak_wood_planks", 2.0, (0.62, 0.47, 0.35), 0.65, 0.6, 1.0),"grass_path": ("grass_path_2", 3.0, (0.8, 0.76, 0.7), 0.0, 1.0, 1.0),"shingle_wood": ("weathered_planks", 2.0, (0.62, 0.60, 0.56), 0.75, 0.8, 1.0),diff --git a/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/render_house.py b/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/render_house.pyindex bf94a76..07d4dff 100644--- a/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/render_house.py+++ b/plugins/build-house-from-plan/skills/build-house-from-plan/scripts/render_house.py@@ -663,7 +663,8 @@ def main():continuekind = shot.get("kind", "exterior")for portal in portals:- portal.hide_render = kind != "interior"+ # Outside too: a dark room behind the glass or an open door reads as a black hole in the wall.+ portal.hide_render = Falseif shot.get("cut") and shot["cut"] != cut_applied:apply_cut(plan["levels"].get("floor", 0.0) * scale + shot["cut"] * scale, plan)cut_applied = shot["cut"]