用这个模板做的 2 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
把户型图变成访客能看懂的空间。这个公寓漫游把建筑图纸和原创的家具模型配在一起:墙体从平面图中升起,家具逐渐显现,镜头停在房间上方。访客可以随时在两种视图之间切换,查看某个房间与家中其他部分如何连通。
主场景打开即可见。紧凑的房间索引让人无需学习复杂的导航系统,就能访问客厅、厨房、卧室、书房或浴室。每个目的地都包含尺寸、实用的家具细节,以及一段关于空间如何使用的简短说明。一条引导式镜头路线按顺序串联各个房间,同时仍可手动环绕和缩放,以便近距离查看。
两套室内配色和三种光照条件展示同一布局下材质与氛围的变化。这些都是实时场景切换,而非单独的图片。浅色纸张、深色墨线、克制的橄榄绿点缀和衬线标题,让控件带有小型建筑出版物的感觉。公寓本身使用原创几何体、柔和阴影、圆润家具、植物和精心布置的窗户,而非下载的房产照片。
漫游之外,一个简洁的信息面板让面积、房间数量和单元标识一目了然。可下载的矢量平面图与模型使用同一套房间数据。看房表单在本地校验,并清楚说明保存的请求会留在访客的设备上。
在内容文件中改编虚构的住宅、单元名称、环境设定、材质故事和联系方式。第二个示例将项目改为海岸庭院住宅,同时保留相同的探索模式。成品适合虚构住宅概念、室内设计展示或空间作品集研究。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Interactive Apartment Floor Plan Tour Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else. ## Brief Build an original, polished, immediately explorable single-page apartment presentation for [BRAND], [UNIT]. A dimensioned 2D drawing smoothly becomes a furnished Three.js apartment. The scene is the hero, not an illustration beneath a long sales headline. Use a new, code-built sample apartment; this is an architectural concept study, not a real property advertisement. - Audience: Interior designers, residence teams, and visitors who want to understand the relationship between rooms before requesting a viewing. - Goal: Let visitors examine the plan, fly into any room, play a guided tour, compare light and two material palettes, download the floor plan and save a local viewing request. - Tone: Precise, calm and welcoming US English. Editorial architecture language, concrete room details and honest demo states. Rewrite every residence-specific sentence for changed variables; keep all copy, room records, materials and unit facts together in src/content.ts. ## Stack - Framework: Vite + TypeScript + Three.js - Styling: Vanilla CSS - Libraries: three (MIT), @fontsource/dm-sans (OFL-1.1), @fontsource/cormorant-garamond (OFL-1.1) - Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs. - Setup: - Install Vite, TypeScript, three, @types/three and both Fontsource packages in the project. Import OrbitControls from the installed three/addons path. Bundle every dependency; use no remote scripts, fonts or import maps. - Configure Vite base: ./, build.outDir: dist, minification on and source maps off. Create npm run build with vite build and a local development script. - Keep room rectangles, wall segments, furniture placement, room descriptions, material swatches and download labels in src/content.ts. Derive both plan and 3D geometry from those records so room selection, dimensions and the downloadable plan cannot disagree. - Use Three.js directly, HTML controls and an inline SVG dimension layer. Build all surfaces and furnishings from original procedural geometry; create subtle wood grain and stone variation with a locally generated canvas texture or material shading. No image generation, stock photographs, externally loaded 3D models or remote textures. - Use a single renderer with antialiasing, warm color management, soft shadow maps, ambient and directional light, resize handling and device pixel ratio capped at 1.75 desktop / 1.5 mobile. Pause rendering when hidden. Target smooth touch interaction and a total production dist smaller than 20 MB. - Use an orthographic camera for both plan and perspective-like isometric views, changing position, target and zoom together. Maintain a stable floor footprint and animate the camera plus wall/furniture heights for the plan-to-room transition. - Give the canvas a useful accessible description and provide equivalent HTML room-selection buttons. If WebGL is unavailable, show the readable inline SVG plan and keep facts, palette descriptions, download and viewing form usable without throwing console errors. - Provide a local downloadable SVG floor plan generated from the same geometry, with a real download filename derived from [BRAND] and [UNIT]. Include ASSETS.md documenting original geometry, shaders and line icons, the fonts, Three.js and their licenses. ## Variables - [BRAND] — Residence name (default: "Alder House"). Invented project identity; update wordmark, download filename and form copy. - [UNIT] — Unit name (default: "Apartment 4B"). A short unit or suite label. - [SETTING] — Location story (default: "A quiet upper-floor home above the fictional Alder Lane gardens"). A fictional setting, not a real address. - [MATERIAL_STORY] — Interior materials (default: "Warm oak, chalk plaster, olive wool, cream linen and honed limestone"). Adapt both scene palettes, labels and descriptions while keeping the floor plan. - [PALETTE_NAMES] — Two material palette names (default: "Warm Oak | Soft Clay"). Exactly two short names separated by |. The first is the default. - [CONTACT_NAME] — Viewing host (default: "Mara Ellis"). Invented host name used in the viewing dialog. - [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/interactive-apartment-floor-plan-tour in the footer (default: yes; delete this line to remove it) The copy under Pages & Sections is written for the default values. If your values differ, rewrite every headline, paragraph, label and image for them — same length, tone and structure. Layout, colors, type and motion stay as described. Keep all copy, image paths and links in one content file (for example `src/content.ts`), keyed by section, so the content can be swapped later without touching components.
Pro 模板
解锁完整提示词和源码
- 完整提示词:设计、版块、动效、素材
- 每个在线演示的源码
- 商用授权
在线演示和 DESIGN.md 仍然免费。
DESIGN.md
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "Interactive Apartment Floor Plan Tour"
colors:
paper: "#F3F1EA"
ink: "#242A24"
olive: "#687459"
limestone: "#DDD7CA"
clay: "#BB836A"
muted_ink: "#666A61"
typography:
editorial_headlines_and_residence_wordmark: { family: "Cormorant Garamond", weights: [500, 600] }
body_controls_room_labels_and_unit_facts: { family: "DM Sans", weights: [400, 500, 600] }
spacing: "Desktop outer gutter 48px at 1440px; content max-width 1440px. Header 72px high with a 1px divider. Main heading row 100px high. Explorer uses a minmax(0,1fr) scene plus a 310px sidebar with 24px gap; scene height 590px desktop. Use a disciplined 8px scale, 24px sidebar padding and 40px section spacing. At <=900px stack sidebar beneath scene; at 390px use 20px gutters, 64px header, 36px heading, 400px scene and controls below it. No horizontal page overflow."
radius: "8px control buttons, 14px canvas well, 6px inset fact modules. Avoid pill-heavy cards; use thin rules, square columns and generous quiet space."
---
# Interactive Apartment Floor Plan Tour — Design System
Apply this design system to an existing project. It describes the look and feel only; for the full site, use prompt.md.
## Colors
- **Paper** `#F3F1EA` — Page and canvas surround; a warm architecture-paper ground.
- **Ink** `#242A24` — Headlines, primary text, strong buttons and plan walls.
- **Olive** `#687459` — Selected rooms, active modes and restrained accents.
- **Limestone** `#DDD7CA` — Hairlines, plinth, muted surfaces and secondary backgrounds.
- **Clay** `#BB836A` — Second palette swatch, small room markers and warm scene details.
- **Muted ink** `#666A61` — Secondary copy with readable contrast on paper.
## Typography
- **Editorial headlines and residence wordmark** — Cormorant Garamond (OFL), weights 500/600. Self-host the font files.
- **Body, controls, room labels and unit facts** — DM Sans (OFL), weights 400/500/600. Self-host the font files.
## Spacing & shape
- Spacing: Desktop outer gutter 48px at 1440px; content max-width 1440px. Header 72px high with a 1px divider. Main heading row 100px high. Explorer uses a minmax(0,1fr) scene plus a 310px sidebar with 24px gap; scene height 590px desktop. Use a disciplined 8px scale, 24px sidebar padding and 40px section spacing. At <=900px stack sidebar beneath scene; at 390px use 20px gutters, 64px header, 36px heading, 400px scene and controls below it. No horizontal page overflow.
- Radius: 8px control buttons, 14px canvas well, 6px inset fact modules. Avoid pill-heavy cards; use thin rules, square columns and generous quiet space.
## Motion
- Default load shows the fully furnished 3D overview immediately, already framed and lit; do not hide the main scene behind loading text or a start button. Keep a small 2D plan / 3D space segmented control visible from first paint.
- Switching 2D plan to 3D space takes 850ms with cubic ease-in-out: camera tilts from top-down into a three-quarter view, wall heights grow from 0.03m to their full heights, and furniture scales upward from floor footprints. Reverse smoothly to the exact same plan footprint. Disable duplicate transitions while one is running, but never lock navigation permanently.
- A selected room changes floor tint, gets a visible outline and its HTML list item gets aria-pressed=true. Camera flights last 850ms, focus the relevant room, keep useful framing and leave the selection card readable. Orbit or wheel/touch manipulation stops the guided tour.
- Guided tour visits Living & dining, Kitchen, Bedroom, Study and Bathroom for about 4 seconds each, showing the active step and previous/next controls. Play changes to Pause, Pause freezes the route, Resume continues it, and Reset view returns to overview. Prevent camera clipping through walls with room-specific positions and constrained orbit angles.
- Lighting changes blend in 650ms; palette colors blend in 450ms. No auto-rotation or perpetual camera movement. Animate only while necessary; a gentle light/shadow state is enough at rest.
- For prefers-reduced-motion, render stable views, change plan/3D, lighting and materials instantly, and make tour advancement deliberate with Next room / Previous room. Keep Play tour usable as stepwise selection rather than involuntary animated flight.
## Imagery
The visual anchor is a richly modeled, original code-built apartment on a low, beveled paper-toned plinth, shown large enough to inspect furnishings from the first screen. Use soft contact shadows, rounded furniture, oak grain from procedural canvas, woven-looking material shading, framed abstract line art drawn in code, leafy potted plants, open window apertures and light through the windows. This is a spatial interaction study, so use no photographs or generated images anywhere. Do not use downloaded source geometry. In plan mode expose clear original SVG wall lines, door arcs, window breaks, dimensions, a north arrow and room labels, all matching the same room data.
## Tone
Precise, calm and welcoming US English. Editorial architecture language, concrete room details and honest demo states. Rewrite every residence-specific sentence for changed variables; keep all copy, room records, materials and unit facts together in src/content.ts.
---
Inspired by Plan to Place — Apartment 01 by @xucidal — https://madewithdots.com/projects/threads-Dd6YgK-iDaQ
— Prompt by VibeFather · https://vibefather.ai/t/interactive-apartment-floor-plan-tour · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 室内设计师的作品集:把 [BRAND] 和 [UNIT] 设为一个概念项目,按你的饰面重写 [MATERIAL_STORY],并把 [PALETTE_NAMES] 改成你提案的配色方案名称。
- 精品住宅开发商:用 [SETTING] 讲述社区故事,保留信息面板展示面积和房间数量,并把看房表单指向你的销售团队。
- 空间设计学生:把房间描述换成你自己的研究笔记,并用可下载的矢量平面图作为作品集的配套图纸。
- 度假短租房东:把房间重命名为客房空间,按实际家具调整 [MATERIAL_STORY],并把 [CONTACT_NAME] 设为负责回答预订问题的人。
互动式公寓户型漫游:常见问题
在互动式公寓户型漫游中,访客实际能做哪些操作?
访客会看到一张带尺寸的 2D 户型图,它升起为布置好的 Three.js 公寓。他们可以从房间索引中选择客厅、厨房、卧室、书房或浴室,播放引导式镜头路线穿行各个房间,手动环绕和缩放,在两套材质配色和三种光照条件之间切换,下载矢量平面图,并保存一份留在自己设备上的看房请求。
如何为用 AI 搭建的公寓漫游添加看房请求表单?
互动式公寓户型漫游已经包含一个看房表单,它在本地校验,并说明保存的请求会留在访客的设备上。要把它接到你自己的收件箱或预约系统,请修改内容文件中的表单文案和 [CONTACT_NAME] 接待人,然后把提交操作接到你自己的端点。模板本身没有后端或外部 API。
如果访客的浏览器无法运行 WebGL,互动式公寓户型漫游会怎样?
当 WebGL 不可用时,互动式公寓户型漫游会显示可读的内联 SVG 平面图,房间信息、配色说明、可下载平面图和看房表单仍然可用。画布还带有无障碍描述,房间索引提供等效的 HTML 按钮,因此访客即使没有 3D 场景也仍能理解布局。