EN
全屏预览
Solaia 建筑百叶拟物调光交互组件
一句话装进 Agent · 极速上手 Free Commercial · 无需绑卡 · 无试用倒计时
Claude Code Cursor Codex Antigravity OpenClaw
基于 Motion3D 原创 3D 网页蓝图「Solaia 建筑百叶拟物调光交互组件」(https://motion3d.dev/works/solaia-louvre/):把自包含源码 ZIP 解压到 ./site,完整保留 60fps WebGL / GLSL + HTML5 动效骨架,替换为我的品牌文案、Logo 与主题色
免费商用永久有效 · 复制指令交给你的 Agent,免登录直接下载源码包解压即可开跑。
工艺拆解与配色
生产级英文提示词 · 6814 字符
Build Solaia — Architectural Louvre Dimmer, a single-screen interactive tactile hardware experience for a serene architectural glass-walled reading and listening atrium. Rather than a flat digital toggle, the interface presents a physical porcelain Venetian-louvre shutter mounted on a sunlit matte plaster wall, coupling a single continuous closure parameter `p` in `[0, 1]` (`0` = open daylight atrium, `1` = drawn twilight sanctuary) to real-time architectural wall shadows, miniature tilting blind slats, ambient hardware lighting, atmospheric particles, and live photometric telemetry. **Viewport Composition & Proportions** Render a full-viewport (`100vw × 100dvh`, `overflow: hidden`) centered monument with generous calm negative space. Position the horizontal capsule toggle horizontally centered (`50%`) and slightly above vertical midpoint (`~37%` viewport height) so the hardware plus its typography footer balance around optical center. Size the outer pill capsule responsively around `clamp(260px, 40vw, 340px)` wide with an exact `2.66:1` aspect ratio (`320px × 120px` desktop baseline) and `9999px` full-pill radius. Leave `~48px` vertical breathing space below the capsule before a centered 3-line status stack spanning `~59%–74%` of viewport height. **Architectural Wall, Dynamic Venetian Shadows & Atmosphere** Render the full-screen backdrop via a high-DPI HTML5 Canvas or WebGL fragment shader layered beneath the UI, textured with ultra-fine warm plaster micro-grain to eliminate gradient banding. In daylight (`p = 0`), wash the wall in warm sunlit ivory plaster (`#F5F0E2`) crossed by soft Gaussian-blurred diagonal Venetian-blind shadow bands (`#D7D0C2`) angled at `-18°` (rising lower-left to upper-right) across roughly 6–7 parallel sunlit shafts. Include an architectural vertical window-mullion shadow column on the right third (`x ≈ 72%–79%`, skewed `+9°` clockwise) separating the primary pane from an adjacent right pane so light reads as physically cast by an off-screen window. Scatter 25–35 subtle warm-white floating dust motes (`1.5px–3px`, gentle sinusoidal drift) glowing inside sunlit shafts and fading smoothly as `p` increases. Crucially, do NOT simply fade wall shadows with opacity during closing: drive each diagonal sunlit band's open aperture width directly from `(1 - p)` so bright shafts physically pinch down into razor-thin glowing slits around `p ≈ 0.72` before sealing completely shut. Simultaneously interpolate the room into an intimate warm espresso darkroom (`#342F27` perimeter) illuminated by a soft radial desk-lamp glow (`#554535`) centered behind the switch (`50% 35%`), leaving only barely perceptible ghosted slat seams (`opacity: 0.04`). **Sculpted Porcelain Louvre Toggle Architecture** Construct the hardware switch with multi-layered tactile realism whose surface illumination dynamically dims with `p` (never staying harsh white in dusk mode): - **Outer Porcelain Bezel**: `6.5px` matte ceramic rim (`#F6F0E4` at `p = 0` smoothly dimming to `#B1ABA1` at `p = 1`) with an outward directional cast shadow down-right onto the wall (`rgba(85, 72, 54, 0.24)` in daylight tightening into grounded ambient occlusion in dusk) plus a recessed inner cavity shadow (`inset 0 4px 12px rgba(45, 36, 25, 0.22)`). - **Recessed Sky Window**: Clipped cleanly inside the pill interior sits a luminous atmospheric sky backdrop—pale cerulean upper sky (`#B6C7DB`) transitioning through misty alabaster (`#E8EAE5`) to a warm sunlit horizon sill (`#E7DCBE`)—gradually occluded as the louvres close. - **9 Synchronized Miniature Venetian Slats & Ladder Cords**: Stack 9 evenly pitched horizontal louvres inside the recessed cavity. At `p = 0`, tilt slats open (~`78°`) so only crisp porcelain front edges and delicate underside highlights cross the open sky. As `p → 1`, smoothly rotate and expand each slat into an overlapping cylindrical-beveled horizontal blade shaded top-to-bottom (`#ADA69C` ridge to `#958E83` mid to `#766F65` crease shadow), sealing the window opaque. Place two hairline (`1px`) dark-stone vertical ladder cords at `34.5%` and `65.5%` across the track width, layered above the slats and beneath the knob. - **Sculpted Circular Thumb Knob**: Diameter `~102px` (`85%` of outer capsule height) gliding smoothly across the inner track from left rest (`p = 0`) to right rest (`p = 1`) with a directional drop shadow onto the slats beneath. Sculpt a two-tier ceramic profile: a softly convex outer ring (`#FAF6EE` to `#B5B0A8`) framing a concentric `54%`-diameter recessed concave thumb-dimple with inverted top-left shadow and bottom-right catchlight. Center a `22px` stroke-only (`1.6px`, round caps) SVG emblem inside the dimple that cross-fades with subtle scale and blur across `p = 0.5`: an original architectural zenith-ray aperture (minimal geometric ring with fine upward radial light ticks in warm amber `#C39963`) for daylight, transitioning into a sheltered dusk-horizon arc (minimal crescent dome resting above a hairline sill in muted twilight indigo `#504670`) for closed sanctuary mode. **Typography, Original Copy & Live Photometric Telemetry** Load Plus Jakarta Sans (500/600) and JetBrains Mono (400/500) from Google Fonts, preserving exact single-line rhythm across three centered rows: 1. **Eyebrow (`12px` JetBrains Mono uppercase, `letter-spacing: 0.24em`)**: A `6px` status LED dot smoothly interpolating from honey amber (`#D89B52`) to dusk periwinkle (`#A093FC`, soft matching glow in dusk) beside `ROOM SCENE` (`#706959` to `#9D9286`). 2. **Headline (`clamp(30px, 4.2vw, 44px)` Plus Jakarta Sans 500, `-0.03em` tracking)**: `"Clear sky, sunlit atrium."` (`#1C150E`) when `p < 0.5`; `"Shade drawn. Still room."` (`#FAF2E8`) when `p >= 0.5`. 3. **Telemetry Subline (`16px` JetBrains Mono, `font-variant-numeric: tabular-nums`, `#6B6457` to `#9E9285`)**: `"520 lux ambient light · 15:24"` (live local `HH:MM` clock, dynamically interpolating lux during drag) in daylight; `"Dimmed to 14 lux calm · 00:00"` (starting an elapsed `MM:SS` quiet-session timer ticking cleanly every second whenever the shutters close) in dusk. Animate headline and subline transitions with a `260ms` Gaussian blur-dissolve (`blur(8px)` + opacity dip + subtle `4px` vertical shift) triggered as `p` crosses `0.5`. **Physics, Interaction & Accessibility** Drive every visual channel from a critically damped spring (`stiffness: 180`, `damping: 22`, ~`600ms` settle) supporting both single-click toggle and continuous pointer-drag scrubbing (`grab` / `grabbing` cursor on the knob, snapping on release via velocity or `0.5` midpoint), plus keyboard accessibility (`role="switch"`, `aria-checked`, `Space` / `Enter`). Optionally synthesize subtle Web Audio mechanical blind-slat tilt clicks on user gesture, and honor `prefers-reduced-motion`.
工艺拆解、动效栈与配色系统

原创设计理念

Solaia 将实体建筑百叶窗的物理光线变化转译为网页微交互控件,拖动即可实时驱动中庭软阴影与色温变化,展现极致数字工业设计质感。

色彩系统(点击复制 Hex)

版式与区块架构

整屏采用极度克制的单屏居中纪念碑式布局(`100vw × 100dvh`,无滚动条、无多余导航或边框装饰),把全部注意力聚焦于建筑光线与一枚实体硬件开关之间的因果关系: 1. **全屏环境光影底层(100% 视口)**:铺满整个画布的哑光微颗粒灰泥墙面,叠加从左上方建筑侧窗投射而下的斜向(约 -18°)百叶日光带与右侧约 72%–79% 处的倾斜窗棂竖影,并在光束区悬浮柔和空气浮尘;闭合后转为深咖暗室,仅在开关正后方偏上(`50% 35%`)保留柔和径向台灯暖晕。 2. **中枢实体百叶开关(水平居中,中心位于视口垂直约 37% 处)**:横向胶囊外框宽约 `320px`、高约 `120px`(高宽比精确约 `2.66:1`,响应式 `clamp(260px, 40vw, 340px)`),四周环绕约 `6.5px` 哑光陶瓷厚边框与柔和右下 cast shadow。内嵌深凹胶囊视窗中垂直均布 **9 片**水平迷你百叶窗叶与左右对称(34.5% / 65.5%)的 **2 条** 1px 竖向梯绳,底层衬以天蓝至暖白晨曦渐变。直径约 `102px` 的双层雕琢陶瓷圆钮(外凸环 + 中央 54% 直径内凹拇指窝)沿轨道平滑左右滑动,中心置入 `22px` 细线态图标。 3. **居中三层状态排版区(紧接开关下方约 48px,占视口垂直 59%–74%)**:由上至下严格居中对齐——顶部为 `6px` 发光状态圆点 + 大写宽字距眉标(`ROOM SCENE`),中段为简洁有力的单行主标题,底部为等宽数据状态行(实时照度 lux + 中点分隔符 + 时钟或静默计时器),四周留白充裕,视觉重心稳落画幅光学中心。

动效与前端工程栈

整套交互围绕单一归一化物理状态量 `p ∈ [0, 1]`(`0` = 日间全开,`1` = 暮色全闭)构建,由临界阻尼弹簧(如 `stiffness: 180, damping: 22`,切换总时长约 `600ms`)或用户拖拽手势连续驱动,实现全画面 6 层联动: - **背景物理百叶投影引擎(Canvas 2D / WebGL Shader)**:将斜向平行光栅的亮带占空比与 `(1 - p)` 直接映射,闭合时宽幅日光带先向两侧同步挤压收束为纤细光缝(`p ≈ 0.72`),再彻底归零并同步将墙面基色插值至深咖啡暗室(`#342F27` + 中心 `#554535` 径向暖光);开启时则先在暗墙上裂开极细斜向日光缝再舒展放大,同时淡入随正弦微风缓飘的尘埃粒子。 - **胶囊内 9 片 3D 迷你百叶联动**:每片百叶随 `p` 同步改变倾角与纵向投影厚度——`p = 0` 时近似平展(约 78°),仅露纤薄瓷白前沿,背后晴空蓝暖渐变通透可见;随 `p → 1` 渐进下翻为紧密重叠的弧面立体叶片(顶脊受光至底缝压暗渐变),完整遮挡天空;双竖向梯绳始终贴合百叶表层并自然被移动中的旋钮遮挡。 - **旋钮位姿、环境光耦合与图标切换**:旋钮沿水平滑槽平滑位移并伴随对下方百叶的实时方向投影;陶瓷外框、旋钮及凹槽着色随 `p` 整体降明度,确保暗室下具备真实弱光体积感;圆钮中心 1.6px 细线图标在跨越 `p = 0.5` 时通过短促微缩+柔焦完成天顶日光孔径与暮色地平弧的无缝互换。 - **文案失焦溶解与等宽读秒**:主副文案在跨越中点时执行约 `260ms` 的 `filter: blur(8px) ↔ 0` 伴随 `4px` 轻位移交叉淡入淡出;状态指示灯由琥珀(`#D89B52`)平滑过渡至暮紫(`#A093FC`);闭合态下启动高精度等宽 `MM:SS` 计时器每秒跳动,可选配 Web Audio 合成轻脆叶片翻转与陶瓷滑动微音效。

工程实现要点与避坑指南

  • 背景墙面的百叶窗日光投影必须由统一开合进度 `p` 实时驱动「光缝宽度物理收窄/拓宽」,绝不能偷懒只做 `opacity` 淡入淡出;同时需在画幅右侧约 72%–79% 处加入微斜(约 +9°)的窗棂竖影柱,才能呈现真实建筑侧窗投影的空间立体感。
  • 开关硬件本身的陶瓷外框、圆形旋钮与百叶表面明度必须随全局 `p` 同步压暗或提亮(如日间 `#F6F0E4` 过渡至暮色 `#B1ABA1`),避免进入暗室模式后白色硬件过于刺眼、与深棕环境割裂产生“贴片感”。
  • 圆形旋钮的双层陶瓷造型依赖反向受光塑造真实触感:外圈凸环采用左上亮/右下暗的柔和斜面高光,中央 54% 直径的内凹拇指窝则采用左上内阴/右下反光的凹陷光影;同时确保两条 1px 垂直百叶拉绳(位于轨道 34.5% 与 65.5% 处)处于百叶之上、旋钮投影之下。
  • 交互上应同时支持“单击弹簧切换”与“按住旋钮连续拖拽搓动进度 `p`”,让用户拖到一半时即可实时看到室内斜向光束变窄、百叶半倾与照度读数平滑插值,松手时按速度或 0.5 阈值优雅吸附。
  • 主副文案切换使用约 260ms 的高斯失焦交叉溶解(`blur(8px) ↔ 0`)以呼应光学景深变化;底部等宽读数必须声明 `font-variant-numeric: tabular-nums` 防止秒表递增导致整行水平抖动,且暗室深棕径向渐变需叠加极细微灰泥噪点纹理以彻底消除 8-bit 色彩断层(banding)。

更多原创作品

更多3D 与交互工艺 →