EN
全屏预览
Noctis Loom 40 弦珠光丝绸等高波浪 WebGL2 着色器
一句话装进 Agent · 极速上手 Free Commercial · 无需绑卡 · 无试用倒计时
Claude Code Cursor Codex Antigravity OpenClaw
基于 Motion3D 原创 3D 网页蓝图「Noctis Loom 40 弦珠光丝绸等高波浪 WebGL2 着色器」(https://motion3d.dev/works/noctis-loom/):把自包含源码 ZIP 解压到 ./site,完整保留 60fps WebGL / GLSL + HTML5 动效骨架,替换为我的品牌文案、Logo 与主题色
免费商用永久有效 · 复制指令交给你的 Agent,免登录直接下载源码包解压即可开跑。
工艺拆解与配色
生产级英文提示词 · 6063 字符
Build "Noctis Loom — Harmonic Filament Study No. 04", a pure, full-bleed WebGL2 generative shader art piece commissioned for Atelier Noctis. The experience renders a continuous, hypnotic diagonal ribbon composed of 40 luminous hairline acoustic-optical filaments suspended inside a deep obsidian void, looping seamlessly every 10,000ms with cinema-grade optical restraint, tactile silk-sheen depth, and zero visual clutter. 1. CANVAS & SPATIAL COMPOSITION (100% FULL-BLEED 16:9 PROPORTIONS) Render a single full-viewport WebGL2 canvas (`100vw × 100vh`, `dpr = Math.min(window.devicePixelRatio, 2)`) over `#020203`. Normalize screen coordinates (`u ∈ [0, 1]`, `v ∈ [0, 1]` top-to-bottom) with aspect-ratio-safe framing so the diagonal ribbon spine sweeps gracefully from upper-left to lower-right along a downward-accelerating quadratic baseline: `y_base(u) = (0.363 - 0.081 * u + 0.503 * u * u)` — anchored near `34.3%` viewport height at `u = 0.0`, gliding gently across `39.0%` at `u = 0.25` and `44.0%` at `u = 0.50`, then descending decisively through `60.6%` at `u = 0.75` to `74.6%` at `u = 1.0`. Maintain generous dark negative space (~67% of viewport area across the upper-right and lower-left quadrants). The ribbon's total visible cross-sectional band spans a mean height of `33.0%` viewport height, organically breathing and pinching between `24.2%` and `44.8%` along the span. 2. SEAMLESS 10,000ms HARMONIC WAVE & BREATHING KINEMATICS Drive all shader deformation from a single periodic phase angle `theta = 2.0 * PI * fract(u_time / 10.0)` so `t = 10,000ms` wraps back to `t = 0ms` with mathematical C-infinity continuity and zero seam pop. Compute vertical spine displacement `dy(u, theta)` by blending 4D torus-mapped Simplex FBM noise sampled at `(u * 2.15, 0.35, R * cos(theta), R * sin(theta))` with a five-harmonic sinusoidal resonance stack tuned directly to forensic harmonic power: - Fundamental heave (`k = 1`, period `10,000ms`, `omega = 0.628 rad/s`): primary arch amplitude `~3.3% H` - Secondary S-undulation (`k = 2`, period `5,000ms`, `omega = 1.257 rad/s`): amplitude `~2.0% H` - Tertiary travelling-morph ripple (`k = 3`, period `3,333ms`, `omega = 1.885 rad/s`): amplitude `~2.2% H` - Quaternary & quinary shoulder creases (`k = 4, 5`, periods `2,500ms` and `2,000ms`): amplitudes `~1.1% H` and `~0.85% H` Total vertical excursion reaches `-9.4% H` to `+11.1% H` around `y_base(u)`. Every crest-to-trough transition must follow smooth harmonic `easeInOutSine` kinematics (`cubic-bezier(0.37, 0, 0.63, 1)` velocity bell curves): zero velocity at inflection crests/troughs, smoothly accelerating to peak speeds (`~75–160 px/s` at `1536×864`) at mid-swing. Couple an independent, phase-offset thickness-breathing field `halfBand(u, theta)` driven by `k = 1..4` harmonics (`10,000ms`, `5,000ms`, `3,333ms`, `2,500ms`) so local necks compress cleanly (down to `~24.2% H`, e.g., at center around `3,000ms`) while adjacent shoulders expand smoothly (up to `~44.8% H`, e.g., at `u = 0.7` around `1,800–2,000ms`). Choreograph the opening `0–1,200ms` center spine rise, the `1,200–3,800ms` descent and center pinch, the `3,800–5,400ms` synchronized right-half upward surge, the dramatic `5,400–7,000ms` double-wing drop forming a high central arch bridge at `6,800–7,600ms`, the swift `7,600–8,600ms` center recoil, and the `8,600–10,000ms` seamless return. 3. 40-FILAMENT ANTIALIASED CONTOUR FIELD & SYMMETRIC SPECTRAL SHADING Transform pixel offset `d = v - (y_base(u) + dy(u, theta))` into normalized cross-ribbon coordinate `s = d / halfBand(u, theta)`, lightly modulated by a slow subtle low-frequency warp so strands feel elastically tensioned without ever breaking or crossing. Generate exactly ~40 parallel continuous silk filaments across `s ∈ [-1.0, 1.0]` using a cosine contour oscillator `wave = 0.5 + 0.5 * cos(s * 40.0 * PI)` shaped into crisp `~1.8px` luminous hairlines over darker recessed valleys (~54% peak luminance). Crucially, apply GLSL screen-space derivative antialiasing (`fwidth(s * 40.0)`) to clamp high-frequency contour energy smoothly whenever strands tighten to `~5.5px` spacing in pinched necks, completely eliminating moire shimmer. Color the filaments with a perfectly symmetric 5-stop iridescent silk gradient centered on `s = 0` (with subtle curvature-driven specular core drift of `±0.5%–1.0% H` along the innermost threads): - Void backdrop: `#020203` - Outer atmospheric volumetric bloom (`|s| ∈ [0.85, 1.25]` Gaussian falloff): `#1B1237` - Outer 25% filaments (`|s| ∈ [0.62, 0.96]`): `#544687` twilight periwinkle - Inter-strand shadow troughs (subtle chromatic undertone): `#54265A` velvet plum - Mid-inner shoulder filaments (`|s| ∈ [0.22, 0.62]`): `#986C96` orchid rose - Luminous central specular core (`|s| ∈ [0.0, 0.22]`): `#B79EB3` pearlescent blush (strictly cap peak luminance near `0.72` so the core glows like matte-sheen silk rather than blown-out neon white). 4. STATIC MICRO FILM GRAIN & INTERACTIVE GALLERY CONTROLS Composite an ultra-fine, pixel-locked static monochrome film-grain dither (`±0.006` luminance amplitude derived from a deterministic screen-coordinate hash, never flickering noise) over the final linear-to-sRGB output to completely eliminate 8-bit banding along the `#1B1237 → #020203` dark glow boundary. By default, display zero visible UI text or buttons so the viewport remains 100% pure generative art. Pressing `H` toggles a whisper-quiet bottom-left gallery telemetry overlay set in `Cormorant Garamond` light (`14px`, `0.18em` tracking, `#B79EB3` at 72% opacity) displaying `Noctis Loom // 04 — ATELIER NOCTIS` paired with `JetBrains Mono` (`10px`, `tabular-nums`) readouts for `LOOP PHASE`, `HARMONIC DRIFT`, and `BAND TENSION`, plus a `Space` pause/resume toggle. When the user actively moves a pointer across the canvas, apply a gentle critically damped spring (`stiffness: 180, damping: 26`) local wave deflection that settles cleanly back to zero when idle. Expose `window.__setTime(seconds)` for deterministic frame verification across the 10.0s loop.
工艺拆解、动效栈与配色系统

原创设计理念

Noctis Loom(Atelier Noctis)以 40 条抗锯齿珠光兰紫微丝沿对角弧线在纯黑画布中展开 10 秒无缝谐波呼吸,轻盈优雅、零贴图依赖,适合作为 AI 与创意品牌动态首屏底图。

色彩系统(点击复制 Hex)

版式与区块架构

作品采用极致的单视口全出血(100vw × 100vh,原生 16:9 比例 1536×864)纯净 WebGL 画布构图,默认界面零文字、零按钮、零导航栏遮挡,让观者全部注意力沉浸于暗场光弦律动本身: 1. 主视觉对角流场带(占比约 33% 视口高度):由约 40 条连续、永不断裂的平行发光微丝编织而成,从左边缘中上部(y ≈ 34.3%H)平缓滑入,经由屏幕中央偏上(y ≈ 44.0%H)后向右下方加速倾泻至右边缘中下部(y ≈ 74.6%H),拟合基线为左缓右陡的平滑二次曲线 y_base(u) = (0.363 - 0.081u + 0.503u²)·H。丝带局部宽度随谐波张力在 24.2%H 至 44.8%H(209px–387px)间弹性伸缩。 2. 极黑负空间呼吸区(占比约 67% 画布面积):右上角与左下角形成大面积对角呼应的深邃黑曜石真空场(#020203),辅以屏幕锁定的极细静态胶片微颗粒,衬托丝带外缘约 20–30px 的深靛紫柔和体积光晕(#1B1237),营造无回声暗室中的悬浮雕塑感。 3. 可选隐藏式画廊遥测浮层(默认关闭):为满足交互探索与作品署名需求,仅在用户主动按下快捷键 H 时于左下角负空间浮现极轻量的半透明文字信息(品牌署名 VESPERA LOOM // 04 与 10.00s 循环相位/张力参数),静置与截图验证状态保持 100% 纯净无字画布。

动效与前端工程栈

技术架构基于原生 WebGL2 全屏四边形片元着色器(Full-Screen Quad Fragment Shader,零多余几何顶点开销,恒定 60fps),并可选配轻量指针弹簧扰动层: 1. 10,000ms 严格闭环时间系统:将运行时间归一化为圆周相位 θ = 2π·fract(t / 10.0),同时驱动 4D 环形周期 Simplex FBM 噪声(采样点 (u·2.15, 0.35, R·cosθ, R·sinθ))与 5 阶谐波正弦叠加栈(经 FFT 实测主能量集中在 k=1 周期 10.0s 振幅 28.4px、k=2 周期 5.0s 振幅 16.9px、k=3 周期 3.33s 振幅 19.2px、k=4 周期 2.5s 振幅 9.9px、k=5 周期 2.0s 振幅 7.3px),所有波峰与波谷的换向均为连续可微的简谐 easeInOutSine 加减速曲线。 2. 错相带宽呼吸场与归一化丝带坐标:以独立错相谐波场(k=1 振幅 16.9px、k=2 振幅 16.0px、k=3 振幅 10.1px)调制丝带半宽 halfBand(u, θ),将像素相对中轴的垂直距离映射为归一化横向坐标 s = (v - y_spine) / halfBand ∈ [-1, 1],确保所有 40 条丝线在颈部收束与肩部膨大时同步弹性挤压与舒展,永不交叉或断裂。 3. fwidth 抗锯齿 40 丝微细轮廓与对称五段光谱着色:利用 wave = 0.5 + 0.5·cos(s·40π) 结合屏幕偏导数 fwidth(s·40) 生成无闪烁 1.8px 锐利微丝与柔和线间暗谷;按 |s| 从中心向外对称映射珠光银粉核心(#B79EB3)→ 兰花玫瑰过渡(#986C96,槽谷叠加丝绒李紫 #54265A)→ 暮光长春花蓝紫(#544687)→ 深靛红外晕(#1B1237 Gaussian 羽化)→ 黑曜石背景(#020203),并叠加微幅曲率相关高光漂移(±2.5px 标准差、最大 ±8.3px)。 4. 静态微粒抖动与交互弹簧:最终输出前叠加基于像素坐标哈希的静态单色胶片颗粒(±0.006 亮度振幅)消除暗部色阶断层;当检测到真实指针移动时,通过临界阻尼弹簧(stiffness: 180, damping: 26)向局部波场注入轻柔声光涟漪,静置时自动衰减回零,同时暴露 window.__setTime(sec) 供精准毫秒级逐帧校验。

工程实现要点与避坑指南

  • 细丝抗锯齿与防摩尔纹(核心坑点):丝带在收缩瓶颈处(如 t=3000ms、u=0.5 仅 249px 宽,单线间距缩至 ~5.5px),若直接用 sin/cos 生成 40 条 1.8px 细丝而不使用 GLSL 屏幕空间偏导数 fwidth() 做带宽限幅,高 DPR 或缩放视口下会产生严重摩尔纹与高频闪烁。必须结合 smoothstep 与 fwidth(s * 40.0) 动态控制线宽羽化。
  • 真正的 4D 环形周期噪声闭环:实测 f_9800ms 与 f_0000ms 的 RMS 像素差为 16.12,与任意相邻 200ms 帧差(均值 16.71 ± 0.88)完全一致,证明它是严格 10.00s 无缝循环。切忌在 Simplex/Perlin 噪声中直接传入线性 u_time;必须将时间映射为 4D 圆环坐标 (cos(2πt/10), sin(2πt/10)) 并叠加整数谐波 k=1..5,才能实现零跳变闭环。
  • 静态微颗粒胶片噪点防色带:实测深黑背景像素均值 RGB(2,2,3),暗部区域帧间相关性高达 0.99975、标准差 1.52,说明全屏覆盖了一层屏幕坐标锁定的静态极细胶片颗粒(±0.006 亮度抖动)。切勿做成高频乱跳的电视雪花噪点,也不可省略,否则外缘 #1B1237 到 #020203 的深紫光晕会在 8-bit 显示器上出现明显阶梯色带。
  • 克制的珠光核心亮度上限与紫红线间暗谷:最亮核心实测为 #B79EB3(RGB 约 183,158,179),并未冲白至 #FFFFFF,且相邻丝线之间的暗谷保持约 54% 亮度并带有丝绒李紫(#54265A)底色。若把核心过度拉亮或直接用 additive 叠成刺眼霓虹白,会瞬间丧失高级丝绸的哑光柔泽质感。
  • 中轴位移与带宽呼吸解耦反相:带高并非恒定不变,而是随空间与时间在 24.2%H–44.8%H 之间异步呼吸(例如 u=0.5 在 1000ms 最宽 322px、3000ms 最窄 249px;而 u=0.7 在 1800–2000ms 达最宽 371px)。若仅做刚性等宽丝带平移,画面会显得呆板塑料,必须为 halfBand(u, θ) 单独叠加错相的低频谐波呼吸场。
  • 对角线基线曲率与跨屏比例锁定:实测丝带平均中轴并非简单直线,而是左缓右陡的二次弧线(u=0 处 34.3%H,u=0.5 处 44.0%H,u=1 处 74.6%H),上下留出约 67% 极黑负空间。须对 UV 做宽高比安全归一化并限制 DPR ≤ 2,确保不同纵横比屏幕下丝带斜率与 40 根细丝密度保持 1:1 视觉平衡。

性能预算、移动端降级与 AI 二次开发规格

Noctis Loom(WebGL 背景 · 3D 与交互工艺,Motion3D 工艺评分 9.6/10)采用零构建自包含的深色暗调影棚工程架构,全套包含 12 个源码文件(ZIP 体积 127.3 KB),核心技术栈为 WebGL / GLSL / HTML5 并内置 本地化离线依赖库。核心交互覆盖 光标 / 物理交互, GLSL 着色器,视觉基调锁定于标准色板(Obsidian Void (#020203), Abyssal Indigo Halo (#1B1237), Twilight Periwinkle (#544687), Velvet Plum Trough (#54265A))。

  • 60fps 渲染卫生与视口自适配:内置设备像素比(DPR)上限控制、防抖 resize 监听与 GPU 合成层优化,在高分屏下稳定输出流畅帧率,避免 WebGL 上下文泄漏或主线程滚动阻塞。
  • 移动端与减弱动态偏好降级:在触控设备上自动将悬停物理效果平滑过渡为触控与滚动响应,同时遵循 prefers-reduced-motion 系统偏好,保证移动端排版与转化按钮清晰可用。
  • AI 编程工具无损换皮:将随包附带的 6063 字符英文生产提示词贴入 Claude Code、Cursor、Codex、Antigravity 或 v0,或接入 Motion3D 官方 MCP(npx -y motion3d-mcp),保留着色器参数与相机阻尼骨架不变即可高效替换品牌与多语言内容。
  • 免费 Shadcn Registry CLI 直装:本免费商用蓝图已收录至开放组件仓库,可直接执行 npx shadcn@latest add https://motion3d.dev/r/noctis-loom.json 拉取源码(索引:/r/registry.json)。
常见问题

关于「Noctis Loom」的常见问题

「Noctis Loom」支持购买前在线预览吗?可以用于商业项目和客户外包吗?

可以。「Noctis Loom」属于永久免费商用蓝图(¥0 免登录),支持 1:1 浏览器实机预览、直接下载完整工程 ZIP(12 个文件,127.3 KB)、免 Key 官方 MCP 拉取与 Shadcn Registry CLI(npx shadcn@latest add https://motion3d.dev/r/noctis-loom.json),可用于个人官网、企业站与收费客户外包且无需强制署名。

「Noctis Loom」的技术栈、体积大小和移动端兼容表现如何?

本作品采用 WebGL / GLSL / HTML5 打造,完整工程包共 12 个源码文件(ZIP 体积 127.3 KB,内置 本地化离线依赖库)。桌面端针对 60fps 渲染做了 DPR 上限与视口防抖控制,移动端自动降级为触控友好交互,且所有依赖全部本地化打包,杜绝外链 CDN 失效白屏。

如何用 Claude Code、Cursor、Codex 或 v0 对「Noctis Loom」进行品牌换皮?

解压自包含源码 ZIP(或通过官方 MCP `npx -y motion3d-mcp` / `npx shadcn@latest add https://motion3d.dev/r/noctis-loom.json` 一键拉入工作区),将附带的 6063 字符生产级英文提示词与你的品牌文案、目标色板一并交给 AI 编程工具,保留核心 WebGL / GLSL / HTML5 动效骨架逐块替换文案和图片即可部署上线,亦可无缝迁移至 Next.js / React / Vue。

更多原创作品

更多3D 与交互工艺 →