用这个模板做的 5 个案例
同一份提示词,不同的 [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 设为你所在的年级,让字幕和事实与学生已知的内容匹配。
- 天文馆或博物馆微站点:保留九站导览,把街道丈量表格换成穿过展厅的步行路线,并将 HOME_BODY 设为你展览重点展示的天体。
- 报道系外行星的科学出版机构:将 SYSTEM 设为红矮星,在 BODIES 中列出它的七颗行星,并将 CENTER_BODY 设为该恒星,附上已发布的真实数据。
- 开发者作品集项目:保留真实比例切换和时间滑块,将 BRAND 设为你的名字,并将 AUDIENCE 设为想看到 Three.js 作品的招聘经理。
太阳系 3D 科普:常见问题
太阳系 3D 科普的真实比例切换是怎么工作的?
在可读比例下,行星大到足以仔细研究。切换到真实比例后,距离和大小会动画过渡到真实比例,直到每颗行星都缩小到不足一个像素,同时实时读数显示地球在屏幕上有多宽。导览最后会揭示真实比例,接着是一张表格,教你在真实街道上丈量整个太阳系。
怎么用 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 里完成;另一个案例由 GLM-5.4 在 ZCode 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。