用这个模板做的 4 个案例
同一份提示词,不同的 [VARIABLES] 变量。点一个在上方预览。关于这个模板
这个模板是一个全屏的太阳系 3D 讲解页面,在浏览器中运行,无需服务器。访客打开后第一眼看到的就是场景:太阳、八颗表面完全由代码绘制的行星、细轨道线和静谧的星空,底部有一条纤细的仪表栏,深空黑背景上点缀着一抹温暖的太阳色。
它最出彩的地方是比例切换。在可读比例下,行星足够大,便于观察。切换到真实比例后,距离和大小会动画过渡到真实比例,直到每颗行星都缩到不足一个像素,同时实时读数会显示地球在屏幕上有多大。访客还可以点击任意行星飞过去并查看其关键数据,拖动时间滑块从暂停到每秒两年多,或者开启一段从太阳到海王星的九站滚动之旅,每一站都有脚本化的镜头运动。旅程最后会揭示真实比例,然后是一张表格,说明如何用沙滩球和几颗种子在真实街道上步测整个太阳系。
它适合科学老师、博物馆、天文馆、科学出版机构,以及想要一个野心勃勃的 three.js 展示的开发者。所有数字、说明文字和表面配方都放在一个内容文件里,所以你可以把它指向另一个恒星系统,比如一颗小红星周围的一组系外行星,并保持同样的外观。修改品牌、系统、天体和受众的变量,你的编程智能体就会重新陈述真实数据。触摸控制、手机上的底部抽屉、限制像素比以及将飞行动画替换为切换的减少动态效果路径都已包含在规格中,且不需要任何图片文件。
模板提示词
在线演示就是用这份提示词原样做出来的,没有额外补充。其他案例只是改了 [VARIABLES] 变量的值。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# Solar System 3D Explainer
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A one-page interactive 3D scale model of [SYSTEM], published by [BRAND], an invented small science publisher. A fixed full-viewport WebGL canvas is the hero from the first frame, with thin instrument-style UI layered on top. It has two modes: Explore (drag to orbit, click a body to fly to it and read its numbers, a scale switch, a time slider) and Tour (a nine-stop scroll journey from [CENTER_BODY] outward with scripted camera moves, ending in a true-scale reveal and a table for pacing the model out on a real street). The signature moment is the scale switch: when distances and sizes animate to their true proportions, the planets all but vanish, and a live readout says how many pixels wide [HOME_BODY] now is.
- Audience: [AUDIENCE]. Default audience: teachers projecting it in class, and curious adults on a laptop or phone.
- Goal: Make one idea unforgettable: space is overwhelmingly empty and every poster misdraws it. Visitors should flip the switch within seconds, then take the tour.
- Tone: Calm, exact and a little wry, like a good science teacher. Short sentences, real numbers in US units first, no exclamation marks, no cosmic hype words such as vast, awe-inspiring or journey through the cosmos.
## Stack
- Framework: Vite 5 + vanilla TypeScript + three.js
- Styling: Tailwind CSS 3.4
- Libraries: three 0.169 (renderer, OrbitControls from three/addons) (MIT), gsap 3.12 with ScrollTrigger (GSAP Standard License (free, including commercial use)), lucide (icons) (ISC), @fontsource/instrument-serif (OFL-1.1), @fontsource/ibm-plex-sans (OFL-1.1), @fontsource/ibm-plex-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- No React or other UI framework: the scene is one imperative canvas and the UI is a small DOM overlay. The stack is fixed unless the user asks to change it.
- vite.config.ts: base './', build.sourcemap false, build.chunkSizeWarningLimit 1200. The npm build script is: tsc --noEmit && vite build.
- tailwind.config: extend colors with void, panel, hairline, ink, muted, solar from the Design section, and fontFamily with display (Instrument Serif), sans (IBM Plex Sans), mono (IBM Plex Mono). Custom CSS and the prefers-reduced-motion rules live in src/styles.css.
- File layout: src/content.ts (all copy and all body data), src/main.ts (boot and mode switching), src/scene/system.ts (bodies, orbits, scale), src/scene/bake.ts (surface baking), src/scene/shaders.ts, src/scene/camera.ts (flights and tour path), src/ui/instruments.ts, src/ui/panel.ts, src/ui/labels.ts, src/ui/tour.ts.
- Each body in src/content.ts has: id, name, kind, kicker, note, facts (array of label and value strings), diameterKm, distanceKm, orbitDays, rotationHours (negative means backward), tiltDeg, startAngleDeg, tourAngleDeg, surface (recipe name plus palette hexes), atmosphere (color and strength, or null), rings (or null), stop (azimuth, elevation, distance in radii, caption, chips, side). Scene code reads only this data, so a different system needs no scene changes.
- If [SYSTEM], [CENTER_BODY] or [BODIES] differ from the defaults: use the real published figures for those bodies, restated in your own words, in the same fields. The tour gets one stop for [CENTER_BODY] plus one per body, numbered accordingly. Choose surface recipes and palettes from the same recipe set. Set belt and rings to null where they do not exist. Recompute the readable-scale table with the formulas given in the 3D scene section, and the street table with the method given in the Walk it yourself section. Rewrite any fact that does not apply (for example, Moons: none known; Day: likely always the same face to the star).
- WebGL setup: THREE.WebGLRenderer with antialias true, logarithmicDepthBuffer true, powerPreference high-performance, ACESFilmicToneMapping, exposure 1.05, clear color #05070D. Pixel ratio min(devicePixelRatio, 2) on desktop and min(devicePixelRatio, 1.5) when pointer is coarse. Every custom ShaderMaterial must include the three.js logdepthbuf chunks in vertex and fragment, or depth sorting breaks.
- Before creating the renderer, test canvas.getContext('webgl2'). If it returns null, do not create the renderer; show the fallback described in the 3D scene section, so the console stays clean.
## Variables
- [BRAND] — Publisher or project name (default: "Fernhill Almanac"). Invented science publisher, school project or museum microsite.
- [SYSTEM] — The system being explained (default: "the Solar System"). Any star with orbiting worlds.
- [CENTER_BODY] — The body at the center (default: "the Sun")
- [BODIES] — Orbiting bodies, inner to outer (default: "Mercury, Venus, Earth, Mars, Jupiter, Saturn, Uranus, Neptune"). Between 5 and 8 bodies keeps the tour a good length.
- [HOME_BODY] — The body used for the live pixel readout (default: "Earth"). The one readers will care about most.
- [AUDIENCE] — Who it is for (default: "middle school classrooms and curious adults")
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/solar-system-3d-explainer 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: "Solar System 3D Explainer"
colors:
void: "#05070D"
panel: "rgba(11,15,26,0.78)"
hairline: "rgba(200,210,230,0.16)"
ink: "#E8ECF4"
muted: "#8E99AD"
solar: "#FFB454"
typography:
display_hero_headline_body_names_section_headings: { family: "Instrument Serif", weights: [400] }
text_paragraphs_captions_buttons: { family: "IBM Plex Sans", weights: [400, 500] }
data_readouts_and_instrument_labels_uppercase_11px_with_0_08em_tracking_for_labels_tabular_numbers_for_values: { family: "IBM Plex Mono", weights: [400, 500] }
spacing: "4px base. Page gutter 32px on desktop and 16px on mobile. Panels use 20 to 24px padding. The UI stays thin and sits at the edges so the scene owns the center of the screen."
radius: "8px on panels and cards, 6px on buttons, full round on the scale switch and body dots. No shadows on UI: hairline borders only."
---
# Solar System 3D Explainer — 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
- **Void** `#05070D` — Page and canvas background, a blue-black
- **Panel** `rgba(11,15,26,0.78)` — Instrument bar, side panel and caption cards, always with backdrop-filter blur(14px)
- **Hairline** `rgba(200,210,230,0.16)` — All 1px borders, rules and slider tracks
- **Ink** `#E8ECF4` — Headings and primary text
- **Muted** `#8E99AD` — Labels, secondary text, resting orbit lines
- **Solar** `#FFB454` — The single accent: primary button, active states, slider thumb, selected orbit, active tour tick. Nothing else in the UI gets a color.
## Typography
- **Display (hero headline, body names, section headings)** — Instrument Serif (OFL), weights 400. Self-host the font files.
- **Text (paragraphs, captions, buttons)** — IBM Plex Sans (OFL), weights 400/500. Self-host the font files.
- **Data readouts and instrument labels, uppercase 11px with 0.08em tracking for labels, tabular numbers for values** — IBM Plex Mono (OFL), weights 400/500. Self-host the font files.
## Spacing & shape
- Spacing: 4px base. Page gutter 32px on desktop and 16px on mobile. Panels use 20 to 24px padding. The UI stays thin and sits at the edges so the scene owns the center of the screen.
- Radius: 8px on panels and cards, 6px on buttons, full round on the scale switch and body dots. No shadows on UI: hairline borders only.
## Motion
- Opening: over 2.4s (power2.out) the camera pulls back from distance 40 to 82 around the Sun while the UI fades up in the last 0.8s.
- Scale switch: a single parameter s runs 0 to 1 over 2.4s (power3.inOut). Every distance and radius is interpolated in log space, as exp(lerp(ln readable, ln true, s)), so the shrink looks even instead of snapping at the end.
- Focus flight: 1.6s (power3.inOut). The target position interpolates linearly and the camera distance in log space, so the arrival is smooth even at true scale.
- Panels: side panel slides x 24px to 0 with opacity over 0.32s (power2.out). The mobile sheet slides up over 0.36s. Tour captions crossfade with y 16px to 0 over 0.35s.
- Scene shift: the focused body is never centered under a panel. A view-offset fraction tweens over 0.9s (see the 3D scene section).
- Controls: slider thumb grows 1.15x on hover, switch knob slides over 0.2s, buttons transition border and color over 0.15s.
- prefers-reduced-motion: time starts paused, the sun surface stops animating and planets stop spinning, camera flights become instant cuts, the scale switch jumps with a 0.2s fade to Void and back, the tour snaps to the nearest stop with the same fade, and the opening pull-back is skipped.
## Imagery
No bitmap photographs or texture maps. Every surface is generated at load by shaders and every other visual is drawn in WebGL, SVG or CSS. Surfaces are illustrative and the footer says so.
## Tone
Calm, exact and a little wry, like a good science teacher. Short sentences, real numbers in US units first, no exclamation marks, no cosmic hype words such as vast, awe-inspiring or journey through the cosmos.
---
— Prompt by VibeFather · https://vibefather.ai/t/solar-system-3d-explainer · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
改成你自己的
- 科学博物馆微型网站:把 BRAND 设为博物馆,AUDIENCE 设为来访家庭,并把每站说明文字改写为访客在镜头飞行时阅读的展签。
- 课堂教学工具:把 AUDIENCE 设为初中生,保持 HOME_BODY 为地球,并把街道表格换成你的班级可以进行的校园步测练习。
- 系外行星出版机构:把 SYSTEM 设为红矮星,BODIES 设为其已知星球,然后为每颗行星重写自转周期和卫星数量等事实。
- 天文馆预览页面:把 BRAND 设为天文馆,用 CENTER_BODY 表示恒星,并把旅程说明文字改为放映时间和座位说明。
太阳系 3D 讲解:常见问题
太阳系 3D 讲解中的比例切换具体是做什么的?
比例切换会把行星从可读比例——每颗星球都大到足以观察——动画过渡到真实比例,此时应用真实距离和大小,每颗行星都缩到不足一个像素。实时读数会显示那一刻地球在屏幕上有多少像素宽。旅程最后会揭示真实比例,然后一张表格说明如何在真实街道上步测整个太阳系。
滚动之旅中会发生什么,持续多久?
太阳系 3D 讲解的旅程是一段从太阳到海王星的九站滚动之旅,每一站都有脚本化的镜头运动。每一站将说明文字与关键数字标签配对,旅程最后会揭示真实比例,并附上一张表格,用于在真实街道上步测太阳系。如果你更改 BODIES,旅程会为中心天体保留一站,并为每个天体各增加一站。
怎么用 AI 做一个太阳系 3D 讲解?
复制本页的完整提示词(Pro),或者运行 npx vibefather add solar-system-3d-explainer,把 [BRAND]、[BODIES]、[SYSTEM]、[AUDIENCE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
太阳系 3D 讲解模板的演示是哪个 AI 模型做的?
演示由 Claude Opus 5.5 在 Claude Code 里完成;另一个案例由 Claude Sonnet 5.5 在 Claude Code 里完成;另一个案例由 Gemini 4 Carbon 在 Cursor 里完成;另一个案例由 GPT-6 Astra 在 Codex 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。