跳到正文
VibeFather
免费注册

用这个模板做的 2 个案例

同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。

关于这个模板

一尊雕刻木鱼摆在安静、琥珀色灯光的房间中央。轻点它光滑的表面、按下大号敲击按钮,或按空格键,让包着软垫的木槌落下。每次敲击都会带来轻微的回弹、扩散的金色光环、飘散的尘埃,以及浏览器中直接合成的浑厚木质音色。玩具在首屏即可使用,没有需要关闭的引导。

整体构图给这件器物留出呼吸的空间。一条窄窄的品牌信息栏、一句大号衬线字体的邀请语,以及整齐排列的计数器环绕场景,却不遮挡它。细腻的程序化木纹、雕刻出的音槽、柔和的接触阴影,以及微微打光的圆形底座,让这件乐器看起来像一件精心制作的器物,而不是一个随便漂浮的球体。克制的控制栏让声音、环境音和自动敲击都触手可及。

访客可以敲出自己的节奏,也可以开启缓慢的自动脉冲。宽容的连击计数器会识别连续敲击,本地每日总数则记录跨访问的小小仪式。声音只在交互后开始,环境音单独控制,两者均可选。指针、触摸和键盘输入共享同一套反馈。减少动态效果偏好下,乐器仍可敲击,同时移除空闲漂移和繁杂的粒子效果。

这个提示词适合实验性个人网站、轻松的休息页,或小型互动作品集项目。更换虚构品牌、木料饰面、房间氛围和短浮动文案,就能让同样的结构呈现不同气质。所有文案集中在一个内容文件里,依赖和字体本地打包,成品是一个小型静态站点,没有账号、追踪或后端。

模板提示词

在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。

# 3D Wooden Fish Tapping Toy

Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.

## Brief
Build [BRAND], an immediately playable wooden-fish percussion toy in a dark, warm contemplative room. A finely modeled [WOOD_FINISH] wooden fish floats just above a circular display plinth. Click or tap the instrument, activate the strike button, or press Space to animate a mallet strike, a damped dip and rebound, gold ripples, a short particle burst, a floating [CALM_MESSAGE] message, and a resonant Web Audio knock. Include a combo counter, optional auto-tap mode, separately controlled synthesized ambience, and a locally saved daily total.

- Audience: People taking a brief playful pause at their desk or on a phone; no medical or spiritual claims.
- Goal: Make the first tap possible immediately, then reward repeated input with coordinated tactile, visual and audio feedback.
- Tone: Quiet, tactile, humane and precise. Write all interface copy in US English. Keep all content in src/content.ts and rewrite finish descriptions and setting copy when variables change.

## Stack
- Framework: Vite + TypeScript + Three.js
- Styling: Vanilla CSS
- Libraries: three (MIT), vite (MIT), typescript (Apache-2.0), @fontsource/instrument-serif (OFL-1.1), @fontsource/dm-sans (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
  - Install all dependencies in this project. Use Vite base ./, minification, and build.sourcemap false.
  - Use Three.js WebGLRenderer for the scene and native Web Audio for all sound. Create geometry and all surface textures procedurally; no remote models, photos, HDRIs, audio or API calls.
  - Import only local Latin woff2 subsets of Instrument Serif 400 and DM Sans 400, 500, 600. Put tokens, responsive rules and reduced-motion styles in src/style.css.
  - Build a static index.html entry with all text and swappable copy in src/content.ts. Save daily count and preferences to localStorage with try/catch fallback when storage is unavailable.
  - Clamp renderer pixel ratio to at most 1.75, cap particles, reuse geometry and materials, handle resize, and suspend animation and automatic tapping when the document is hidden.

## Variables
- [BRAND] — Toy identity (default: "Hushwood"). An invented short name for the experience.
- [WOOD_FINISH] — Wood finish (default: "Honey walnut"). A wood species and finish; preserve the warm dark design while adapting the instrument grain and color.
- [ROOM_SETTING] — Room setting (default: "Amber temple"). An abstract architectural room, without religious icons or people.
- [CALM_MESSAGE] — Floating tap message (default: "+1 calm"). A short, nonmedical phrase shown above each strike.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/3d-wooden-fish-tapping-toy 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.

## Design
### Colors
- Room `#151915` — Deep green charcoal background and atmospheric room.
- Panel `#20251F` — Low-contrast control dock and inset fields.
- Ivory `#EEE8D8` — Primary typography and readable controls.
- Muted `#B2B8A6` — Secondary labels with strong contrast.
- Amber `#D8AD64` — Active controls, impact ripples, fine accents.
- Walnut `#8D542F` — Default instrument base, with procedural darker grain.

### Typography
- Display invitation and brand: Instrument Serif (OFL), weights 400
- Body, controls and counters: DM Sans (OFL), weights 400/500/600

### Layout & motion
- Spacing: Desktop composition fits 1440×900 with 40px outer inset, 64px top identity rail, 112px bottom utility area, and the instrument centered in the remaining stage. Use an 8px spacing unit. A 270px left caption rail and 160px right metric rail flank the roughly 760px-wide scene; keep the 3D object unobstructed. At 390×844 use 20px side insets, a 54px top rail, a compact 34px two-line invitation, 330px-high scene, a two-column metric row, a 52px strike button, and a wrapping two-row settings dock. Allow ordinary vertical scrolling on short screens; never clip controls or horizontally scroll.
- Radius: Use 10px control dock radius, 6px secondary controls, a 28px capsule for the primary strike button, and hairline #3D4438 dividers. Avoid a grid of floating glass cards.
- Motion: Keep scene ready at first paint; no splash screen, loading overlay or entrance sequence that blocks play.
- Motion: Idle drift is a 0.035-unit vertical sine over 5 seconds. Strike animation: mallet swings from the upper right into the sound slit in 85ms, body dips 0.12 units and tilts 0.06 radians, and a damped spring returns it over about 500ms. A new strike restarts from the current physical state.
- Motion: Each strike emits one thin amber ground ripple expanding from radius 0.4 to 2.3 over 700ms, no more than 18 small warm particles, and one screen-space [CALM_MESSAGE] drifting upward 30px over 900ms. Pool and cap effects.
- Motion: Reduced motion disables idle movement, floating messages and particle travel; retain a small 120ms material highlight and immediate counter updates. Automatic mode still advances counts at its slow pace with restrained feedback.
- Imagery: Use only original procedural Three.js geometry, Canvas-generated grain and hand-authored SVG icons. The wooden fish must read as a crafted percussion instrument, not a plain sphere: a flattened rounded oval body about 2.5×1.7×1.8 units, two softly raised face lobes, a narrow dark carved sound slit, a small scalloped tail, subtle routed ridges around its sides, a tiny inset eye detail on each front lobe, and polished bevel-like highlights. Generate coherent longitudinal wood grain with a canvas texture or shader and subtle roughness variation. Model a separate wooden mallet with a slim handle and wrapped cream padded head. Float the instrument just above a broad stone plinth with a soft contact shadow. Create an architectural alcove with tall dim vertical fins, a warm side light, a sparse dust field and slight depth fog. Keep architecture subdued, without religious symbols, figures or copied decorations. For [ROOM_SETTING] adapt the atmospheric light and short caption; for Rainlit pavilion use a cooler side window light with abstract static rain-like vertical traces, still inside the same composition. No downloaded images or generated bitmaps.

## Pages & Sections
### [BRAND] — A quiet moment (`index.html`)
1. **Identity rail** — Left: [BRAND] in 27px Instrument Serif with a tiny original two-line woodcut mark. Right: a small status dot and Quiet by design. Do not add navigation to nonexistent pages.
   Layout: A single full-width line with a subtle bottom divider. On phones retain both ends without wrapping.
   Motion: No moving or blinking status indicator.
2. **Playable sculpture and invitation** — Left eyebrow: A SMALL DAILY RITUAL. Main invitation: A little less noise. Beneath: One tap. One breath. A moment of your own. Below it show [WOOD_FINISH] / [ROOM_SETTING] as a small scene caption. Center the original wooden fish and poised mallet, immediately visible and tappable. A small stage instruction says Tap the wood or press Space. Use a large button labeled Strike the wood with a small outlined spacebar keycap on desktop. A compact helper below the button reads Sound begins with your first tap.
   Layout: Asymmetric open composition around the large 3D scene; no text layered across the instrument. The scene is the main visual anchor and occupies at least half the desktop screen. Place a visible HTML strike button immediately beneath the scene; hide the spacebar keycap on touch widths. On mobile stack invitation, scene, counters and button with the toy visible in the first viewport. The canvas has an accessible label, and the strike button supplies a keyboard-equivalent interaction if WebGL is unavailable. Render an original Canvas 2D instrument fallback if WebGL initialization fails.
   Motion: Use pointer raycasting to strike only the instrument, not arbitrary blank background. Handle pointer events for mouse and touch without double firing. Space and Enter on the primary button strike; a global Space shortcut prevents page scrolling only when focus is not on another interactive control. Animate synchronized mallet, wooden body, ripple, particles and [CALM_MESSAGE].
3. **Ritual counters** — Show Today with a large count starting at 0, and a smaller Session count. Show Rhythm with combo count and the helper Keep a gentle rhythm. A combo increments for strikes less than 1.6 seconds apart and resets after that window. Each accepted strike increments session and today by exactly one. Store today using a hidden local-day key and reset on the first strike of a new local day. Never show a calendar date, timestamp or calendar UI. A small state label changes to In rhythm at a combo of 3 or more.
   Layout: On desktop the right metric rail aligns near the upper-middle of the stage with tabular numerals, open typography and dividers. On mobile place Today and Rhythm in a compact row under the scene; show Session as a small secondary line. Keep counts out of the 3D object silhouette. Use polite accessible announcements that avoid flooding screen readers during auto mode.
   Motion: A 140ms amber number flash on a strike. Do not animate large numeric jumps or shake the layout.
4. **Sound and rhythm dock** — A bottom dock contains Sound with an on/off button, Ambience with an independent on/off button, and Auto tap with a labeled switch. Defaults: Sound on, Ambience off, Auto tap off. Auto tap runs once every 1.2 seconds, updates the same counts and effects, and has a clear active state and Stop auto accessible label. Starting Auto tap is a user gesture that may unlock audio. Show Slow rhythm · 50 taps/min while active. A subtle footer reads Made for a small pause. and includes the optional [CREDIT] link.
   Layout: Desktop dock is a 560px-wide centered strip with thin vertical dividers and 44px minimum targets. Small helper text sits outside it. On 390px screens it wraps cleanly into two rows with every control at least 44px and labels never truncated. Show pressed/checked state both visually and with aria-pressed or switch semantics. Tab focus uses a 2px ivory outline.
   Motion: Initialize or resume AudioContext only after a user gesture and never throw when unsupported. Synthesize a short wooden knock from layered decaying sine/triangle oscillators around 180Hz and 470Hz plus a very short filtered noise transient; use soft gain envelopes and a low-volume synthesized reverb tail. Ambience uses a quiet low-passed generated noise buffer and a soft detuned drone, fading in/out over 300ms. No audio files. Sound off silences strikes without disabling visual play; ambience remains separately controllable. Stop automatic strikes and suspend audio when hidden; require a deliberate resume after returning rather than unexpectedly restarting.

## Assets
- image: All instrument geometry, plinth, room, grain texture, ripple and particle art are authored in code in this project. No external images, media, 3D models or HDRIs. Record procedural authorship in ASSETS.md.
- icon: Create small original inline SVG icons for sound, ambience, automatic rhythm and the brand woodcut mark; no brand icons or external icon service.
- font: Install @fontsource/instrument-serif and @fontsource/dm-sans; import local Latin woff2 files only. Record the Fontsource source package URLs and OFL-1.1 licenses in ASSETS.md.

## Don'ts
- Do not copy the reference prompt, code, composition, branding, slogans, screenshots, audio, fonts or marks; do not use merit, worries or salary reward text. Use original [BRAND] copy and geometry.
- Do not use a plain sphere as a substitute for the carved wooden fish, a flat illustration as the primary scene, or a mallet that clips through the body at rest.
- Do not use image generation, photographs, remote models, HDRIs or downloaded audio. Graphics must use Three.js, Canvas or GLSL only; sound must be synthesized with Web Audio.
- Do not use CDN scripts, font CDNs, hotlinked images, external runtime requests, analytics, backend code, auth, APIs or forms that submit anywhere. All dependencies and assets must be installed locally.
- Do not show dates, timestamps, real people, real brands, copied logos, commercial fonts, restricted component code, filler copy or medical promises. All site copy and alt text must be US English.
- Do not add source maps, source directories or unminified source copies to dist/. Use relative asset paths, a single npm run build command, and static output in dist/ smaller than 20 MB. Any internal page link must point to an actual .html filename or hash route, never a bare directory.
- Do not block initial play with an intro, cookie modal or audio permission overlay. Never autoplay audio before a gesture; handle unavailable AudioContext, WebGL and localStorage gracefully.
- Do not allow horizontal overflow or hide controls at 1440×900 or 390×844. Support touch, mouse, keyboard, visible focus, high-contrast control labels and prefers-reduced-motion.
- Do not use references to VibeFather in the site beyond the optional [CREDIT] footer. Keep all copy in src/content.ts and adapt all scene captions and messages when variables differ.

---
Inspired by 3D Cyber Mokugyo (Native Audio Synthesis) by @UPGPTs Team — https://upgpts.com/en/tutorials/chatgpt/gpt-6.1-sol-test-cases
— Prompt by VibeFather · https://vibefather.ai/t/3d-wooden-fish-tapping-toy · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
中文参考译文(帮助理解,复制给 AI 时请用上面的英文原版)
# 3D 木鱼敲击玩具

完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。

## 简介
构建 [BRAND],一个可立即游玩的木鱼打击玩具,置于一个昏暗、温暖、富有沉思氛围的房间中。一个精细建模的 [WOOD_FINISH] 木鱼悬浮在一个圆形展示底座上方。点击或轻触乐器、激活敲击按钮,或按空格键,即可触发木槌敲击动画、带阻尼的下沉与回弹、金色涟漪、短促的粒子迸发、一条漂浮的 [CALM_MESSAGE] 消息,以及一声浑厚的 Web Audio 敲击声。包含连击计数器、可选的自动敲击模式、单独控制的合成环境音,以及本地保存的每日总计。

- 受众:在办公桌前或手机上短暂轻松小憩的人群;不作任何医疗或灵性宣称。
- 目标:让第一次敲击可以立即进行,然后通过协调的触觉、视觉和音频反馈来奖励重复输入。
- 基调:安静、触感、人性化且精确。所有界面文案均使用美式英语。将所有内容保留在 src/content.ts 中,并在变量变化时重写表面处理描述和设置文案。

## 技术栈(Stack)
- 框架(Framework):Vite + TypeScript + Three.js
- 样式(Styling):原生 CSS(Vanilla CSS)
- 库(Libraries):three(MIT)、vite(MIT)、typescript(Apache-2.0)、@fontsource/instrument-serif(OFL-1.1)、@fontsource/dm-sans(OFL-1.1)
- 构建(Build):`npm run build` → `dist/` 中的静态文件。无后端、无服务端代码、无外部 API。
- 设置(Setup):
  - 安装本项目中的所有依赖。使用 Vite base ./、压缩(minification),并将 build.sourcemap 设为 false。
  - 使用 Three.js WebGLRenderer 渲染场景,所有声音使用原生 Web Audio。程序化创建几何体和所有表面纹理;不使用远程模型、照片、HDRI、音频或 API 调用。
  - 仅导入 Instrument Serif 400 和 DM Sans 400、500、600 的本地拉丁 woff2 子集。将设计令牌(tokens)、响应式规则和减少动态效果(reduced-motion)样式放入 src/style.css。
  - 构建静态 index.html 入口,所有文本和可替换文案放在 src/content.ts 中。将每日计数和偏好设置保存到 localStorage,存储不可用时使用 try/catch 回退。
  - 将渲染器像素比限制在最多 1.75,限制粒子数量,复用几何体和材质,处理窗口尺寸变化(resize),并在文档隐藏时暂停动画和自动点击(automatic tapping)。

## 变量
- [BRAND] — 玩具品牌标识(默认:“Hushwood”)。为体验虚构的短名称。
- [WOOD_FINISH] — 木材饰面(默认:“Honey walnut”)。木材种类与饰面;在适配乐器纹理和颜色的同时,保留温暖的深色设计。
- [ROOM_SETTING] — 房间场景(默认:“Amber temple”)。抽象的建筑空间,不含宗教图标或人物。
- [CALM_MESSAGE] — 浮动点击消息(默认:“+1 calm”)。每次敲击上方显示的简短、非医疗性短语。
- [CREDIT] — 在页脚保留一个小型“Template by VibeFather”链接,指向 https://vibefather.ai/t/3d-wooden-fish-tapping-toy(默认:是;删除此行即可移除)

页面与区块下的文案是为默认值编写的。如果你的值不同,请为它们重写每个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。
将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。

## 设计
### 颜色
- 房间(Room)`#151915` — 深绿炭黑背景与氛围空间。
- 面板(Panel)`#20251F` — 低对比度控制坞与内嵌字段。
- 象牙白(Ivory)`#EEE8D8` — 主排版与可读控件。
- 柔和灰(Muted)`#B2B8A6` — 高对比度的次级标签。
- 琥珀色(Amber)`#D8AD64` — 激活控件、冲击涟漪、精细点缀。
- 胡桃木色(Walnut)`#8D542F` — 默认乐器基色,带程序化深色木纹。

### 排版
- 展示邀请语与品牌:Instrument Serif(OFL),字重 400
- 正文、控件与计数器:DM Sans(OFL),字重 400/500/600

### 布局与动效
- 间距:桌面端构图适配 1440×900,外缩进 40px,顶部标识栏 64px,底部功能区 112px,乐器居中于剩余舞台。使用 8px 间距单位。270px 左侧说明栏与 160px 右侧指标栏分列于约 760px 宽的场景两侧;保持 3D 物体无遮挡。在 390×844 下使用 20px 侧边缩进、54px 顶部栏、紧凑的 34px 两行邀请语、330px 高场景、两列指标行、52px 敲击按钮,以及可换行的两行设置坞。短屏幕上允许常规纵向滚动;绝不裁切控件或出现横向滚动。
- 圆角:控制坞圆角 10px,次级控件 6px,主敲击按钮为 28px 胶囊形,分隔线为发丝级 #3D4438。避免使用悬浮玻璃卡片网格。
- 动效:场景在首次绘制时即就绪;无启动画面、加载遮罩或阻挡游玩的入场序列。
- 动效:空闲漂移为 5 秒内 0.035 单位的垂直正弦运动。敲击动画:木槌在 85ms 内从右上方摆入音槽,主体下沉 0.12 单位并倾斜 0.06 弧度,阻尼弹簧在约 500ms 内将其复位。新的敲击从当前物理状态重新开始。
- 动效:每次敲击发出一个细薄的琥珀色地面涟漪,在 700ms 内从半径 0.4 扩展至 2.3,不超过 18 个暖色小粒子,以及一条屏幕空间 [CALM_MESSAGE] 在 900ms 内向上漂移 30px。池化并限制效果数量。
- 动效:减少动态效果时禁用空闲运动、浮动消息与粒子位移;保留 120ms 的轻微材质高亮与即时计数器更新。自动模式仍以其缓慢节奏推进计数,反馈保持克制。
- 图像:仅使用原创的程序化 Three.js 几何体、Canvas 生成的颗粒与手写 SVG 图标。木鱼必须呈现为一件精心制作的打击乐器,而非普通球体:一个约 2.5×1.7×1.8 单位的扁平圆润椭圆主体,两个柔和隆起的正面瓣,一条狭窄的深色雕刻音槽,一个小巧的扇贝形尾部,两侧环绕细微的铣削棱线,每个前瓣上有一个微小的内嵌眼部细节,以及抛光倒角般的高光。用 canvas 纹理或着色器生成连贯的纵向木纹,并带有细微的粗糙度变化。单独建模一把木槌,配细长手柄与缠绕的奶油色软垫槌头。将乐器悬浮于宽阔石质基座上方,带柔和接触阴影。创建一个建筑壁龛,配有高耸昏暗的竖向鳍片、温暖的侧光、稀疏的尘埃场与轻微的深度雾。保持建筑元素低调,不含宗教符号、人物或复制装饰。对于 [ROOM_SETTING] 调整氛围光与简短说明;对于 Rainlit pavilion 使用更冷的侧窗光,配以抽象的静态雨状竖向痕迹,仍处于同一构图之内。不使用下载图片或生成的位图。

## 页面与区块
### [BRAND] — 静谧一刻(`index.html`)
1. **身份栏** — 左侧:[BRAND] 使用 27px 的 Instrument Serif 字体,配有一个原创的两行小木刻标记。右侧:一个小状态点和 Quiet by design。不要添加指向不存在页面的导航。
   布局:单条全宽横线,底部有细微分隔线。在手机上保留两端内容,不换行。
   动效:状态指示器不移动、不闪烁。
2. **可演奏的雕塑与邀请** — 左侧眉题:A SMALL DAILY RITUAL。主邀请语:A little less noise。下方:One tap. One breath. A moment of your own。再下方以小型场景说明的形式显示 [WOOD_FINISH] / [ROOM_SETTING]。将原创木鱼与蓄势待发的木槌居中放置,确保立即可见且可点击。一条小型舞台提示写着 Tap the wood or press Space。使用一个大按钮,标签为 Strike the wood,桌面端配一个小型描边的空格键键帽。按钮下方有一行紧凑的辅助说明:Sound begins with your first tap。
   布局:围绕大型 3D 场景采用非对称开放式构图;文字不得叠放在乐器上。场景是主要视觉锚点,至少占据桌面屏幕的一半。在场景正下方放置一个可见的 HTML 敲击按钮;在触屏宽度下隐藏空格键键帽。在移动端,将邀请语、场景、计数器和按钮纵向堆叠,确保玩具在首屏可见。画布需有可访问标签,且当 WebGL 不可用时,敲击按钮需提供键盘等效交互。若 WebGL 初始化失败,则渲染一个原创的 Canvas 2D 乐器回退方案。
   动效:使用指针射线检测,仅敲击乐器,而非任意空白背景。处理鼠标和触摸的指针事件,避免重复触发。主按钮上的 Space 和 Enter 键可敲击;全局 Space 快捷键仅在焦点不在其他交互控件上时阻止页面滚动。同步动画木槌、木质主体、涟漪、粒子和 [CALM_MESSAGE]。
3. **仪式计数器** — 显示 Today,大号计数从 0 开始,以及较小的 Session 计数。显示 Rhythm,包含连击计数和辅助说明 Keep a gentle rhythm。连击在两次敲击间隔小于 1.6 秒时递增,超出该窗口后重置。每次有效敲击使 session 和 today 各精确增加一。使用隐藏的本地日期键存储 today,并在新本地日期的首次敲击时重置。绝不显示日历日期、时间戳或日历 UI。当连击达到 3 或以上时,一个小状态标签变为 In rhythm。
   布局:桌面端右侧指标栏对齐舞台中上部附近,使用等宽数字、开放式排版和分隔线。移动端将 Today 和 Rhythm 放在场景下方的紧凑行中;Session 作为小型次要行显示。计数不得进入 3D 物体轮廓内。使用礼貌的可访问播报,避免在自动模式下刷屏屏幕阅读器。
   动效:敲击时数字以 140ms 琥珀色闪烁。不要对大数字跳变动画或抖动布局。
4. **声音与节奏停靠栏** — 底部停靠栏包含 Sound(带开关按钮)、Ambience(带独立开关按钮)和 Auto tap(带标签开关)。默认值:Sound 开、Ambience 关、Auto tap 关。Auto tap 每 1.2 秒运行一次,更新相同的计数和效果,并具有清晰的激活状态和 Stop auto 可访问标签。启动 Auto tap 是用户手势,可能解锁音频。激活时显示 Slow rhythm · 50 taps/min。一个细微的页脚写着 Made for a small pause.,并包含可选的 [CREDIT] 链接。
   布局:桌面端停靠栏为 560px 宽的居中条带,带细垂直分隔线和最小 44px 的触控目标。小型辅助文本位于其外。在 390px 屏幕上,它干净地换行为两行,每个控件至少 44px,标签绝不截断。通过视觉和 aria-pressed 或开关语义同时显示按下/选中状态。Tab 焦点使用 2px 象牙色轮廓。
   动效:仅在用户手势后初始化或恢复 AudioContext,且在不支持时绝不抛出异常。通过围绕 180Hz 和 470Hz 的分层衰减正弦/三角振荡器,加上一个非常短的滤波噪声瞬态,合成短促的木敲声;使用柔和的增益包络和低音量合成混响尾音。Ambience 使用安静的低通生成噪声缓冲区和柔和的失谐持续音,在 300ms 内淡入/淡出。不使用音频文件。关闭声音会使敲击静音,但不禁用视觉演奏;环境音保持独立可控。页面隐藏时停止自动敲击并挂起音频;返回后要求用户主动恢复,而非意外重启。

## 资产(Assets)
- 图像(image):所有乐器几何结构、底座、房间、木纹纹理、波纹和粒子艺术均在本项目的代码中创作。不使用外部图像、媒体、3D 模型或 HDRI。在 ASSETS.md 中记录程序化创作来源。
- 图标(icon):为声音、环境音、自动节奏和品牌木刻标记创建小型原创内联 SVG 图标;不使用品牌图标或外部图标服务。
- 字体(font):安装 @fontsource/instrument-serif 和 @fontsource/dm-sans;仅导入本地拉丁文 woff2 文件。在 ASSETS.md 中记录 Fontsource 源包 URL 和 OFL-1.1 许可证。

## 禁止事项
- 不得复制参考提示词、代码、构图、品牌、标语、截图、音频、字体或标识;不得使用功德、烦恼或薪水奖励文案。使用原创的 [BRAND] 文案和几何图形。
- 不得用普通球体替代雕刻木鱼,不得用平面插画作为主场景,不得让木槌在静止时穿模进入鱼身。
- 不得使用图像生成、照片、远程模型、HDRI 或下载的音频。图形只能使用 Three.js、Canvas 或 GLSL;声音必须用 Web Audio 合成。
- 不得使用 CDN 脚本、字体 CDN、外链图片、外部运行时请求、分析工具、后端代码、认证、API 或任何会提交到某处的表单。所有依赖和资源必须本地安装。
- 不得展示日期、时间戳、真实人物、真实品牌、复制标识、商业字体、受限组件代码、填充文案或医疗承诺。所有站点文案和 alt 文本必须为美式英语。
- 不得向 dist/ 添加 source map、源码目录或未压缩的源码副本。使用相对资源路径、单一 npm run build 命令,dist/ 中的静态输出小于 20 MB。任何内部页面链接必须指向实际的 .html 文件名或 hash 路由,绝不能是裸目录。
- 不得用开场动画、cookie 弹窗或音频权限遮罩阻挡初始播放。绝不在用户手势之前自动播放音频;优雅处理不可用的 AudioContext、WebGL 和 localStorage。
- 不得在 1440×900 或 390×844 下出现水平溢出或隐藏控件。支持触摸、鼠标、键盘、可见焦点、高对比度控件标签和 prefers-reduced-motion。
- 除可选的 [CREDIT] 页脚外,不得在站点中引用 VibeFather。将所有文案保留在 src/content.ts 中,并在变量不同时调整所有场景说明和消息。

---
Inspired by 3D Cyber Mokugyo (Native Audio Synthesis) by @UPGPTs Team — https://upgpts.com/en/tutorials/chatgpt/gpt-6.1-sol-test-cases
— Prompt by VibeFather · https://vibefather.ai/t/3d-wooden-fish-tapping-toy · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

个人项目可免费使用(CC BY-NC 4.0)。 商业用途需要 Pro.

DESIGN.md

单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。

---
name: "3D Wooden Fish Tapping Toy"
colors:
  room: "#151915"
  panel: "#20251F"
  ivory: "#EEE8D8"
  muted: "#B2B8A6"
  amber: "#D8AD64"
  walnut: "#8D542F"
typography:
  display_invitation_and_brand: { family: "Instrument Serif", weights: [400] }
  body_controls_and_counters: { family: "DM Sans", weights: [400, 500, 600] }
spacing: "Desktop composition fits 1440×900 with 40px outer inset, 64px top identity rail, 112px bottom utility area, and the instrument centered in the remaining stage. Use an 8px spacing unit. A 270px left caption rail and 160px right metric rail flank the roughly 760px-wide scene; keep the 3D object unobstructed. At 390×844 use 20px side insets, a 54px top rail, a compact 34px two-line invitation, 330px-high scene, a two-column metric row, a 52px strike button, and a wrapping two-row settings dock. Allow ordinary vertical scrolling on short screens; never clip controls or horizontally scroll."
radius: "Use 10px control dock radius, 6px secondary controls, a 28px capsule for the primary strike button, and hairline #3D4438 dividers. Avoid a grid of floating glass cards."
---

# 3D Wooden Fish Tapping Toy — 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
- **Room** `#151915` — Deep green charcoal background and atmospheric room.
- **Panel** `#20251F` — Low-contrast control dock and inset fields.
- **Ivory** `#EEE8D8` — Primary typography and readable controls.
- **Muted** `#B2B8A6` — Secondary labels with strong contrast.
- **Amber** `#D8AD64` — Active controls, impact ripples, fine accents.
- **Walnut** `#8D542F` — Default instrument base, with procedural darker grain.

## Typography
- **Display invitation and brand** — Instrument Serif (OFL), weights 400. Self-host the font files.
- **Body, controls and counters** — DM Sans (OFL), weights 400/500/600. Self-host the font files.

## Spacing & shape
- Spacing: Desktop composition fits 1440×900 with 40px outer inset, 64px top identity rail, 112px bottom utility area, and the instrument centered in the remaining stage. Use an 8px spacing unit. A 270px left caption rail and 160px right metric rail flank the roughly 760px-wide scene; keep the 3D object unobstructed. At 390×844 use 20px side insets, a 54px top rail, a compact 34px two-line invitation, 330px-high scene, a two-column metric row, a 52px strike button, and a wrapping two-row settings dock. Allow ordinary vertical scrolling on short screens; never clip controls or horizontally scroll.
- Radius: Use 10px control dock radius, 6px secondary controls, a 28px capsule for the primary strike button, and hairline #3D4438 dividers. Avoid a grid of floating glass cards.

## Motion
- Keep scene ready at first paint; no splash screen, loading overlay or entrance sequence that blocks play.
- Idle drift is a 0.035-unit vertical sine over 5 seconds. Strike animation: mallet swings from the upper right into the sound slit in 85ms, body dips 0.12 units and tilts 0.06 radians, and a damped spring returns it over about 500ms. A new strike restarts from the current physical state.
- Each strike emits one thin amber ground ripple expanding from radius 0.4 to 2.3 over 700ms, no more than 18 small warm particles, and one screen-space [CALM_MESSAGE] drifting upward 30px over 900ms. Pool and cap effects.
- Reduced motion disables idle movement, floating messages and particle travel; retain a small 120ms material highlight and immediate counter updates. Automatic mode still advances counts at its slow pace with restrained feedback.

## Imagery
Use only original procedural Three.js geometry, Canvas-generated grain and hand-authored SVG icons. The wooden fish must read as a crafted percussion instrument, not a plain sphere: a flattened rounded oval body about 2.5×1.7×1.8 units, two softly raised face lobes, a narrow dark carved sound slit, a small scalloped tail, subtle routed ridges around its sides, a tiny inset eye detail on each front lobe, and polished bevel-like highlights. Generate coherent longitudinal wood grain with a canvas texture or shader and subtle roughness variation. Model a separate wooden mallet with a slim handle and wrapped cream padded head. Float the instrument just above a broad stone plinth with a soft contact shadow. Create an architectural alcove with tall dim vertical fins, a warm side light, a sparse dust field and slight depth fog. Keep architecture subdued, without religious symbols, figures or copied decorations. For [ROOM_SETTING] adapt the atmospheric light and short caption; for Rainlit pavilion use a cooler side window light with abstract static rain-like vertical traces, still inside the same composition. No downloaded images or generated bitmaps.

## Tone
Quiet, tactile, humane and precise. Write all interface copy in US English. Keep all content in src/content.ts and rewrite finish descriptions and setting copy when variables change.

---
Inspired by 3D Cyber Mokugyo (Native Audio Synthesis) by @UPGPTs Team — https://upgpts.com/en/tutorials/chatgpt/gpt-6.1-sol-test-cases
— Prompt by VibeFather · https://vibefather.ai/t/3d-wooden-fish-tapping-toy · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown

改成你自己的

  • 冥想与呼吸练习老师:把 BRAND 设为你的工作室,WOOD_FINISH 设为浅色白蜡木,ROOM_SETTING 设为安静的晨间大厅,CALM_MESSAGE 设为简短的呼吸提示。
  • 博物馆或工艺画廊:保留琥珀色房间,把 BRAND 设为展览名称,重写场景说明文字,描述展出的雕刻打击乐器。
  • 开发者的个人网站:把玩具用作休息页,BRAND 设为你的名字,页脚链接指向你的作品集,同时保留每日计数器。
  • 声音设计作品集:按每件作品更换 WOOD_FINISH 和 ROOM_SETTING,并用浮动的 CALM_MESSAGE 标注乐器或录音名称。

3D 木鱼敲击玩具:常见问题

3D 木鱼敲击玩具模板里我可以改什么来让它变成我自己的?

3D 木鱼敲击玩具模板由四个变量驱动:BRAND、WOOD_FINISH、ROOM_SETTING 和 CALM_MESSAGE。把 BRAND 设为你的名字或项目,挑选木种和饰面,选择抽象的房间氛围,再为浮动敲击提示写一句简短的非医疗用语。所有文案集中在一个内容文件里,你只需在一处重写标题和说明文字,布局、颜色和动效保持原设计。

怎么用 AI 做一个3D 木鱼敲击玩具?

复制本页的提示词,或者运行 npx vibefather add 3d-wooden-fish-tapping-toy,把 [BRAND]、[WOOD_FINISH]、[CALM_MESSAGE]、[ROOM_SETTING] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。

3D 木鱼敲击玩具模板的演示是哪个 AI 模型做的?

演示由 GPT-6.1 Sol 在 Codex 里完成;另一个案例由 GPT-6.1 Sol 在 Codex 里完成。每次都用公开的提示词原样生成,没有额外补充。