这个模板是一个全屏的太阳系 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 仍然免费。
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
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
太阳系 3D 科普演示模板是一个全屏的 Three.js 场景,不是静态图片。访客可以拖动环绕、点击行星飞过去,并就地查看它的数据。最标志性的操作是比例切换:一拨开关,大小和距离就会动画过渡到真实比例,直到每颗行星都缩到不足一个像素,同时实时读数会显示地球在屏幕上有多宽。
比例切换会在可读比例和真实比例之间动画过渡太阳系 3D 科普演示:可读比例下行星大到足以仔细端详,真实比例下则由真实大小和距离接管。在真实比例下,行星几乎消失在黑暗中。实时读数会显示当前屏幕上母天体(默认是地球)有多少像素宽,让太空的空旷变成一个数字,而不只是一句说法。
可以。太阳系 3D 科普演示模板把所有数字、说明文字和表面配方都放在同一个内容文件里,所以你可以把它指向另一个恒星系统。两个在线演示已经展示了一颗红矮星的七颗行星。在变量里设置 SYSTEM、CENTER_BODY 和 BODIES,你的编程智能体就会重新整理这些天体的真实已发布数据,而外观和导览结构保持不变。
先从变量开始:BRAND 是发布方名称,AUDIENCE 是网站面向的人群,HOME_BODY 是像素读数中使用的天体。如果你要讲另一颗恒星,再检查 BODIES、SYSTEM 和 CENTER_BODY。模板的内容文件保存了所有文案和天体数据,所以你的编程智能体可以重写标题、事实和导览说明,而不用碰场景代码。
太阳系 3D 科普演示模板包含一段从太阳到海王星的九站滚动导览,每一站都有预设的镜头运动。导览最后会揭示真实比例,然后展示一张表格,教你在真实街道上用沙滩球和几颗种子把整个太阳系按比例排出来。如果你改了天体,导览会变成中心天体一站加每个天体各一站,表格也会重新计算。
复制本页的完整提示词(Pro),或者运行 npx vibefather add solar-system-3d-explainer,把 [BRAND]、[BODIES]、[SYSTEM]、[AUDIENCE] 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
演示由 GLM-5.4 在 ZCode 里完成;另一个案例由 Gemini 4 Carbon 在 Cursor 里完成;另一个案例由 Kimi K3.1 Pro 在 Kimi Code 里完成;另一个案例由 Claude Opus 5.5 在 Claude Code 里完成;另一个案例由 GPT-6 Astra 在 Codex 里完成;另一个案例由 Claude Sonnet 5.5 在 Claude Code 里完成。每次都用公开的提示词原样生成,没有额外补充,可以并排比较不同模型的效果。
太阳系 3D 科普演示是一个单页网站,用 Tailwind CSS、GSAP、Three.js 构建。提示词固定了技术栈,不同 AI 工具做出来的都是同一类项目,成品是静态网站,部署到哪里都可以。
太阳系 3D 科普演示是 Pro 模板:说明、技术栈和变量公开,完整提示词、在线演示的源码和商用授权包含在 VibeFather Pro 里,支持支付宝和微信支付。它的 DESIGN.md 个人项目可以免费用。
能。每个太阳系 3D 科普演示的演示上线前都在手机和电脑尺寸上检查过布局、字号和点击区域。可以直接用手机打开在线演示,或者在本页把预览切到手机视图看看。