把户型图变成访客能看懂的空间。这个公寓导览将建筑图纸与原创的家具模型搭配在一起:墙体从平面图中升起,家具逐渐显现,相机稳稳落在房间上方。访客可以随时在两种视图之间切换,查看某个房间与家中其他区域如何连通。
主场景打开即可见。紧凑的房间索引让访客无需学习复杂的导航系统,就能前往客厅、厨房、卧室、书房或浴室。每个目的地都包含尺寸、实用的家具细节,以及一段关于空间如何使用的简短说明。引导式相机路线按顺序连接各个房间,同时仍可手动环绕和缩放,以便近距离查看。
两套室内配色和三种光照条件,展示同一布局下材质与氛围的变化。这些都是实时场景切换,而非单独的图片。浅色纸张、深色墨迹、克制的橄榄色点缀和衬线标题,让控件带有小型建筑出版物的感觉。公寓本身采用原创几何体、柔和阴影、圆润家具、植物和精心布置的窗户,而非下载的房产照片。
导览旁边有一个简洁的信息面板,方便查找面积、房间数量和单元标识。可下载的矢量户型图使用与模型相同的房间数据。看房表单在本地验证,并明确说明保存的请求会留在访客的设备上。
在内容文件中修改虚构的住宅、单元名称、环境设定、材质故事和联系方式。第二个示例将项目改为海滨庭院住宅,同时保留相同的探索模式。成品适用于虚构住宅概念、室内设计展示或空间作品集研究。
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [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 仍然免费。
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
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
交互式公寓户型图导览模板是一个单页 Three.js 展示,从带尺寸的 2D 户型图开始,升起为家具齐全的公寓。它包含客厅、厨房、卧室、书房和浴室的房间索引,带手动环绕和缩放的引导式相机路线,两套室内配色,三种光照条件,一个信息面板,可下载的矢量户型图,以及一个在本地验证并保存的看房表单。
交互式公寓户型图导览模板的商业和客户用途需要 Pro。Pro 模板公开显示简介、技术栈和变量,完整提示词和演示源代码随 Pro 会员提供。免费模板的提示词和所有 DESIGN.md 在 CC BY-NC 4.0 下可免费用于个人非商业用途,因此向付费客户展示的工作室应使用 Pro。
在内容文件中,将 BRAND 设为住宅名称,UNIT 设为公寓或套房标签,SETTING 设为位置故事,MATERIAL_STORY 设为室内材质。PALETTE_NAMES 接受恰好两个用竖线分隔的短名称,第一个为默认值。CONTACT_NAME 是看房接待人。用你的值重写每个住宅专属句子,保持相同的长度和语气。
可以。当 WebGL 不可用时,交互式公寓户型图导览模板会显示可读的内联 SVG 户型图,信息面板、配色说明、户型图下载和看房表单仍可使用,且不会出现控制台错误。画布还带有无障碍描述,等效的 HTML 房间选择按钮让访客无需 3D 场景即可在房间之间移动。
交互式公寓户型图导览模板使用驱动 3D 模型的同一批房间记录生成可下载的 SVG 户型图,因此房间选择、尺寸和下载内容不会出现不一致。文件名由 BRAND 和 UNIT 派生,因此会随你的住宅和单元名称变化。户型图保持为矢量文件,你可以任意大小打开或打印。
复制本页的完整提示词(Pro),或者运行 npx vibefather add interactive-apartment-floor-plan-tour,把 [UNIT]、[BRAND]、[SETTING]、[CONTACT_NAME] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
演示由 MiniMax M4 在 MiniMax Code 里完成;另一个案例由 GPT-6.1 Sol 在 Codex 里完成;另一个案例由 GPT-6.1 Sol 在 Codex 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。
交互式公寓户型图导览是一个单页网站,用 纯 HTML、Three.js 构建。提示词固定了技术栈,不同 AI 工具做出来的都是同一类项目,成品是静态网站,部署到哪里都可以。
交互式公寓户型图导览是 Pro 模板:说明、技术栈和变量公开,完整提示词、在线演示的源码和商用授权包含在 VibeFather Pro 里,支持支付宝和微信支付。它的 DESIGN.md 个人项目可以免费用。
能。每个交互式公寓户型图导览的演示上线前都在手机和电脑尺寸上检查过布局、字号和点击区域。可以直接用手机打开在线演示,或者在本页把预览切到手机视图看看。