floorplan-to-3d-house
/floorplan-to-3d-house
Zamienia plan działki lub rzut domu z PDF albo DXF w model 3D, stronę z widokiem, eksport GLB i wideo z drona.
- Autor
- paulodinis ↗
- Repozytorium
- floorplan-to-3d-house ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 87
- Skrypty
- 51
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 51 skryptów w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: examples/layout_generator_example.py, examples/two-storey/layout_generator_two_storey.py, scripts/blender/daycycle.py, scripts/blender/doors.py, scripts/blender/encode.py, scripts/blender/final.py, scripts/blender/haze.py, scripts/blender/lens.py, scripts/blender/materials.py, scripts/blender/nodes.py, scripts/blender/open_in_blender.py, scripts/blender/pipeline.py, scripts/blender/run_all.py, scr
Co robi i kiedy
Zamienia plan działki lub rzut domu z PDF albo DXF w model 3D, stronę z widokiem, eksport GLB i wideo z drona.
Wyzwalacze z opisu
Oryginalny opis (EN)
This skill should be used when the user shares a house site plan or floor plan (PDF or DXF) and asks to "make a 3D model of my house", "convert this plan to DXF", "redesign this house on my plot", "show me the house in 3D", "walk through the house", "export the plan to GLB" or "make a drone video of the house", or types /floorplan-to-3d-house. Runs the full workflow: DXF, simplified 2D plan for approval, interactive 3D page, GLB/3D-DXF exports and reference renders, elevations and section, a sun & daylight report, opens the model in Blender, optional Blender video. Supports two-storey houses a
Jak działa
- The flow and its stops
- Ground rules
- Files
- Step 0. Intake
- Steps 1–3. Inputs → site3d/site.json
- Step 4. Layout + 2D plan
- Step 5. Approval gate (mandatory stop)
- Steps 6–7. 3D page, exports
- Step 7b. Open in Blender (stop, once per session)
- Step 8. Video (only if the user asks)
Podgląd SKILL.md
---
name: floorplan-to-3d-house
description: >
This skill should be used when the user shares a house site plan or floor plan (PDF or DXF) and asks to
"make a 3D model of my house", "convert this plan to DXF", "redesign this house on my plot",
"show me the house in 3D", "walk through the house", "export the plan to GLB" or "make a drone video of the house",
or types /floorplan-to-3d-house. Runs the full workflow: DXF, simplified 2D plan for approval, interactive 3D page,
GLB/3D-DXF exports and reference renders, elevations and section, a sun & daylight report, opens the model in Blender, optional Blender video.
Supports two-storey houses and style presets from reference photos.
metadata:
version: "1.8.4"
---
# Floor plan → 2D plan (approval) → 3D model → Blender → video
Turn an architect's plan of a house (site plan or floor plan) into an interactive 3D model, files for other tools, and optionally a photoreal drone video.
**Language.** Reply in the user's language and regional variant (European Portuguese for PT-PT). Project files follow `lang` in project.json (`en`, `pt-PT`; others via `scripts/web/i18n.json`). Skill files stay in English.
**Tone.** Label confidence: [Certain], [Likely] or [Assumption]. Keep what was measured from the drawing apart from what was assumed or designed.
## The flow and its stops
Intake → inputs → **2D plan → stop: approve?** → 3D page + exports → **stop: open in Blender?** (once per session) → video only if asked: **stop: approve the path** → test frames → launch.
Every change, at any point, goes back to a new 2D plan `v<n+1>` and its stop. Never treat silence as approval. If nobody is there, deliver what is done, say what is pending and stop.
## Ground rules
1. **Indicative only.** Every deliverable says "indicative proposal — not for construction or permit". Zoning, building code and structure are for the user's architect or engineer; the QA is good practice, not compliance.
2. **Privacy.** An address, GPS point or site photos identify a home: ask before using them, keep them out of anything published (`show_address_on_page` false), store them only in the project folder.
3. **Honesty about gaps.** Missing heights, north arrow or scale: ask, or state the assumption.
4. **Ambiguous change requests: ask with the readings as options** before drawing ("same height" = floor level or eave? "attach" = shared wall or link?). One question with 2–3 concrete options costs less than a wrong plan version.
5. **Keep the work files.** After every plan version, pack the work dir (`scripts/cloud/pack_work.py pack . export/work_v<n>.zip`) and put it next to the deliverables on the user's PC (`<Project>/v<n>/`). A new session starts by unpacking the latest `work_v<n>.zip`, never by rebuilding from a published page or a PDF.
6. **Cheap checks.** Read small images: `plan_v<n>.check.png` (not the full plan), one contact sheet for renders or test frames, text reports (`qa.md`, `sun_report.md`, pipeline/status JSON) instead of logs. Send the full images to the user; don't look at them again yourself.
## Files
Paths are relative to this skill's base directory. `validate-plan` and `drone-video` reuse these scripts.
- `scripts/setup_workspace.sh`: workspace setup (copies the textures, checks dependencies; downloads nothing). `scripts/web/three/`: bundled three.js r160 for the local tests.
- `scripts/cloud/`: `pdf2dxf.py`, `extract3d.py`, `masks.py`, `masks2.py` (inputs); `validate_layout.py`, `plan2d.py`, `plan2d_simple.py`, `storey_filter.py` (plan + QA); `build_page.py`, `export.js`, `tris2dxf.py`, `elevations.py`, `sun_report.py`, `style_from_colors.py` (3D + exports); `camera_path.py`, `camera_script.py` (video paths); `fonts.py` (font lookup shared by the PNG sheets); `pack_work.py`; `shot2.js`, `navtest.js` (debugging); `gaps.py`, `tex.py`.
- `scripts/web/`: the 3D page engine. `scripts/blender/`: `pipeline.py` (build / test / final in one call), `run_all.py` + passes, `doors.py`, `open_in_blender.py`, `encode.py`.
- `styles/`: presets. `examples/`: a complete one-storey and a two-storey project.
- `references/`: `intake.md`, `inputs.md` (Steps 1–3), `plan-and-grid.md` (Step 4), `exports.md` (Steps 6–7, pitfalls), `blender-pipeline.md` (Blender, video), `layout-schema.md`, `style-guide.md`, `multi-storey.md`, `qa-checklist.md`.
## Step 0. Intake
One AskUserQuestion (up to 4 questions, only what changes the result; wording in `references/intake.md`): faithful or redesign (programme, area cap, slope), storeys, optional style/site photos, optional location (with consent). Style photos pick a preset (`references/style-guide.md`); without photos use `portuguese-contemporary` and say so.
If the user already has a project from this skill, skip the intake: unpack the latest `work_v<n>.zip` and go to the step they ask for.
## Steps 1–3. Inputs → `site3d/site.json`
Set up the workspace, write `project.json`, read the PDF or DXF, check the scale against a known number (plot area), make the DXF (PDF input only) and extract the site: boundary, walls, eave, spot heights, trees, road, ceded strips, north. DWG: ask for a DXF. Details: `references/inputs.md`.
## Step 4. Layout + 2D plan
Write `site3d/layout.json` (`references/layout-schema.md`); redesigns respect the plot, setbacks, area cap and slope. Then `validate_layout.py`, `plan2d.py` (DXF) and `plan2d_simple.py` (approval PNG with setbacks, levels, furniture, reference grid). During change rounds only the PNG is needed (`-` instead of the DXF). Two storeys: one plan per storey. Commands, grid cells and furniture checks: `references/plan-and-grid.md`.
## Step 5. Approval gate (mandatory stop)
Send the PNG (and DXF once approved). Tell the user they can point at places by grid cell ("C4"). Summary, short: programme and areas; measured vs assumed; QA errors/warnings; 2–4 debatable points.
One AskUserQuestion: **"Continue to 3D?"** — "Yes" / "Change the plan (describe; grid cells welcome)" / "Stop here". Ask about the video only later, and only if the user wants one (Step 8). On a change: update the layout, `v<n+1>`, PNG, ask again.
## Steps 6–7. 3D page, exports
Masks, `build_page.py`, publish the page with the Artifact tool (same link on republish). Then one `export.js … all` session (GLB + 5 renders, which double as the visual check), `tris2dxf.py`, and for the approved version the elevations and sun report. Zip: GLB, 3D DXF, plan DXF + PNG, renders, elevations, sun report, QA, `PROMPT.txt` (English + user's language), `README.txt` (units, axes, measured vs proposed, credits). Pack `work_v<n>.zip`. Details: `references/exports.md`.
## Step 7b. Open in Blender (stop, once per session)
Ask: **"Open the 3D model in Blender on your computer?"** — "Yes (Recommended)" / "I don't have Blender" / "Not now". If computer use is available, check the install first (`computer_resolve_access(["Blender"])`) and say what was found; still ask. "I don't have Blender" skips this and the video (the GLB opens in any glTF viewer; Blender is free). After "Yes", open later versions without asking.
Open it with `scripts/blender/open_in_blender.py` through the Blender MCP when connected (fallbacks and MCP troubleshooting: `references/blender-pipeline.md`). Read `<name>_blender_open.json`; tell the user where the `.blend` is.
## Step 8. Video (only if the user asks)
Use the `drone-video` skill. It covers length and resolution, the automatic tour (`camera_path.py`) or the user's own shot list (`camera_script.py`), the path approval stop, test frames and the launch through `pipeline.py`.
## Closing summary (fixed block, ≤ 6 lines)
- **Done:** one line.
- **Files:** where (folder on the PC, page link).
- **Measured vs assumed:** one line.
- **To validate with a professional:** 2–3 items (zoning, setbacks, structure, heights).
- **Next:** the one question or option that remains, if any.
Pliki w paczce (87)
- SKILL.md 8 KB
- examples/README.md 1 KB
- examples/layout.json 21 KB
- examples/layout_generator_example.py 16 KB
- examples/path_example.json 1 KB
- examples/project.json 2 KB
- examples/site.json 2 KB
- examples/tex/mask1.png 49 KB
- examples/tex/mask3.png 45 KB
- examples/tex/plan_v2.jpg 491 KB
- examples/tex/v2_mask1.png 71 KB
- examples/tex/v2_mask2.png 46 KB
- examples/tex/v2_mask3.png 50 KB
- examples/two-storey/layout.json 12 KB
- examples/two-storey/layout_generator_two_storey.py 10 KB
- examples/two-storey/project.json 2 KB
- references/blender-pipeline.md 13 KB
- references/exports.md 4 KB
- references/inputs.md 2 KB
- references/intake.md 3 KB
- references/layout-schema.md 4 KB
- references/multi-storey.md 3 KB
- references/plan-and-grid.md 3 KB
- references/qa-checklist.md 2 KB
- references/style-guide.md 4 KB
- scripts/setup_workspace.sh 1 KB
- scripts/blender/daycycle.py 5 KB
- scripts/blender/doors.py 7 KB
- scripts/blender/encode.py 1 KB
- scripts/blender/final.py 2 KB
- scripts/blender/haze.py 2 KB
- scripts/blender/lens.py 1 KB
- scripts/blender/materials.py 13 KB
- scripts/blender/nodes.py 4 KB
- scripts/blender/open_in_blender.py 4 KB
- scripts/blender/pipeline.py 8 KB
- scripts/blender/run_all.py 4 KB
- scripts/blender/scatter.py 2 KB
- scripts/blender/setup.py 10 KB
- scripts/blender/soften.py 3 KB
- scripts/blender/style.py 2 KB
- scripts/blender/terrain.py 6 KB
- scripts/blender/tweaks.py 5 KB
- scripts/blender/tweaks2.py 5 KB
- scripts/blender/tweaks4.py 2 KB
- scripts/cloud/build_page.py 5 KB
- scripts/cloud/camera_path.py 27 KB
- scripts/cloud/camera_script.py 26 KB
- scripts/cloud/elevations.py 18 KB
- scripts/cloud/export.js 3 KB
- scripts/cloud/extract3d.py 7 KB
- scripts/cloud/fonts.py 4 KB
- scripts/cloud/gaps.py 7 KB
- scripts/cloud/masks.py 5 KB
- scripts/cloud/masks2.py 2 KB
- scripts/cloud/navtest.js 4 KB
- scripts/cloud/pack_work.py 1 KB
- scripts/cloud/pdf2dxf.py 7 KB
- scripts/cloud/plan2d.py 9 KB
- scripts/cloud/plan2d_simple.py 23 KB
- scripts/cloud/shot2.js 2 KB
- scripts/cloud/storey_filter.py 2 KB
- scripts/cloud/style_from_colors.py 2 KB
- scripts/cloud/sun_report.py 16 KB
- scripts/cloud/tex.py 9 KB
- scripts/cloud/tris2dxf.py 1 KB
- scripts/cloud/validate_layout.py 12 KB
- scripts/web/engine.js 83 KB
- scripts/web/export_glb.js 8 KB
- scripts/web/i18n.json 4 KB
- scripts/web/template.html 14 KB
- scripts/web/tex/grass.jpg 441 KB
- scripts/web/tex/gravel.jpg 493 KB
- scripts/web/tex/oak.jpg 189 KB
- scripts/web/tex/setts.jpg 86 KB
- scripts/web/tex/sky.jpg 82 KB
- scripts/web/tex/soil.jpg 97 KB
- scripts/web/three/GLTFExporter.js 76 KB
- scripts/web/three/LICENSE 1 KB
- scripts/web/three/OrbitControls.js 29 KB
- scripts/web/three/TextureUtils.js 2 KB
- scripts/web/three/three.module.js 962 KB
- scripts/web/three/three.shaderchunks.js 139 KB
- styles/nordic-timber.json 1 KB
- styles/portuguese-contemporary.json 1 KB
- styles/rural-stone.json 1 KB
- styles/white-minimal.json 1 KB
Wersje
W bazie nie ma innych skilli o nazwie floorplan-to-3d-house.
Migawka bazy z 13.11.2026 · wersja paczki 15e7d6e504d9 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Podobne skille
- 90drone-video
Renderuje w Blenderze wideo z przelotem kamery nad domem: 15, 30, 60 lub 90 sekund, z trasą i spacerem po wnętrzu. - 100validate-plan
Sprawdza układ domu w projekcie floorplan-to-3d-house: odległości od granic, schody, wymiary pokoi i ponownie generuje plan 2D. - 100sg-floorplan-analysis
Analizuje rzut mieszkania w Singapurze, ocenia układ, porównuje plany i zamienia rzut w treści społecznościowe. - 90archlang-export
Eksportuje plan .arch do SVG, PNG, PDF lub DXF przez CLI archlang, z wyborem formatu papieru i skali. - 88skan-do-dxf
Przerysowuje rzut, przekrój lub elewację ze skanu do DXF z podglądem PNG i PDF, porównuje wynik ze skanem i zamienia DXF na DWG. - 86kernelcad-export
Eksportuje model kernelCAD do formatów STEP, STL, 3MF, GLB, OBJ, USD, DXF lub G-code i sprawdza plik przed przekazaniem.