3D 传送门世界之旅是一个全屏、实时渲染的 3D 主页,它会自动播放。镜头在八个原创世界中漂移,每个世界约二十秒,然后穿过一个朴素的胶囊形门飞入下一个世界:漂浮在晨雾中的柑橘玻璃温室、蓝调时刻被雨水浸透的屋顶花园、悬挂在开阔天空中的珊瑚礁、环绕行星下的盐滩镜面、书页如椋鸟般群飞的图书馆、光之瀑布倾泻的混凝土峡谷、玻璃鲸鱼穿行的极光苔原,以及黄铜发条树组成的果园。所有内容都用 three.js 和少量 shader 以代码绘制,不包含任何模型、纹理、图片或音频文件,因此网站无需开始界面,直接加载进入第一个世界。
它被设定为一家环境视觉工作室的主页,带有一个滑入式抽屉,展示服务、价格、过往房间和联系地址,但它适合任何想要展示作品而非宣传册的人:动态设计师、创意工作室、音乐人、睡眠与专注类应用,或开发者的个人页面。
设计上,每个世界都有自己固定的调色板、光线、雾效和一个标志性动态,而界面保持极简:一个文字标志、一张按固定节奏淡入淡出的标题卡、一个带倒计时的精简世界索引,以及三个圆形控件,分别用于暂停、拖拽环视和声音。每个世界都有一段生成的环境音景,默认关闭,只在用户要求时开启,并在传送门处交叉淡入淡出。手机会获得更轻量的渲染、底部栏和底部抽屉;偏好减少动态效果的用户则会看到静止镜头和缓慢的交叉淡入淡出。
要适配它,只需更改品牌、介绍语、城市和受众变量,抽屉文案会随之变化。每个世界都是一个自包含模块,拥有自己的调色板、标题和说明文字,因此你可以在不触及引擎的情况下重命名、改色、重新排序或删除世界。
在线演示就是用这份提示词原样做出来的,没有额外补充。 提示词保持英文原版,国内常用的 AI 编程工具都能直接理解;下面附中文参考译文。
# 3D Portal Worlds Journey
Build this website exactly as described below. Replace the [VARIABLES] with your own values; keep everything else.
## Brief
A full-screen, hands-off journey through eight original 3D worlds that are drawn entirely in code and linked by gates you fly through, serving as the homepage of [BRAND], an invented ambient-visuals studio in [CITY]. The camera drifts through each world for about twenty seconds, a title card names the place, a gate opens onto the next world, and the camera passes through. It loops forever without input. A slim world index lets the visitor jump, pause or switch to drag-to-look, each world has its own generated ambient sound (off until asked for), and a Studio drawer carries what the studio offers for [VENUES]. The page opens already inside the first world, the Citrus Glasshouse: there is no start screen.
- Audience: People who commission or program screens in shared spaces (hotel and venue managers, exhibition designers, clinic operators) and anyone who lands on the page and simply wants to watch. They decide in the first three seconds, from the picture alone, whether this studio has taste.
- Goal: Let the work sell itself: hold the visitor through at least two gate crossings, make each world memorable enough to be named ('the one with the glass whales'), and make it one click to see prices and write to the studio.
- Tone: Calm, exact, a little dry. Short sentences with concrete nouns and numbers. No exclamation marks, no hype words, nothing about technology on the surface: the copy talks about rooms, light and time.
## Stack
- Framework: Vite 5 + TypeScript + three.js
- Styling: Vanilla CSS
- Libraries: three (MIT), vite (MIT), typescript (Apache-2.0), @types/three (MIT), lucide (ISC), @fontsource-variable/fraunces (OFL-1.1), @fontsource-variable/manrope (OFL-1.1), @fontsource/dm-mono (OFL-1.1)
- Build: `npm run build` → static files in `dist/`. No backend, no server code, no external APIs.
- Setup:
- Create a Vite 5 vanilla TypeScript project (vite 5.4, typescript 5.9, strict mode) with no UI framework. One HTML entry, index.html, with lang set to en. The npm build script is 'tsc --noEmit && vite build'.
- In vite.config.ts set base to './', build.outDir to 'dist', build.sourcemap to false and build.target to 'es2020'. Do not copy src/ into dist/.
- Install three 0.179 and @types/three 0.179 and import from the three package only. Do not use any loader (model, texture, audio or font loaders), the post-processing addons or the orbit controls addon; write the small amount of camera and input code yourself.
- Statically import the engine and src/worlds/01-citrus-glasshouse.ts in src/main.ts. Load worlds 2 to 8 with dynamic import() from a table in the journey engine so each becomes its own chunk.
- Install lucide 0.499.0 and import only the eight icons named in Assets; build each SVG with createElement from the package.
- Import the fonts once at the top of src/styles.css or main.ts: @fontsource-variable/fraunces/full.css, @fontsource-variable/fraunces/full-italic.css, @fontsource-variable/manrope/index.css and @fontsource/dm-mono/400.css. Add link rel=preload tags for the Fraunces latin normal and italic woff2 files.
- Write the GLSL as template strings in the world files (or .glsl files imported with ?raw). Keep one shared chunk of helpers: hash, value noise, 3D simplex noise, the dither function and the fog blend.
- Put the overlay markup (wordmark, intro block, controls, index rail, bottom bar) directly in index.html so it paints before JavaScript runs; scripts only attach behavior and fill in the world list from src/content.ts.
- Define the CSS custom properties --ink, --accent and --shade on :root with world 1's values and register them with @property so they can transition.
- Put every string, world name, caption and palette in src/content.ts, and the variables [BRAND], [TAGLINE], [VENUES], [CITY] and [CONTACT_EMAIL] at the top of that file.
## Variables
- [BRAND] — Studio or product name (default: "Slow Meridian"). Shown as the wordmark, in the document title and in the Studio drawer. Invented; one to three words.
- [TAGLINE] — Intro line over the first world (default: "Ambient worlds for rooms that need to breathe."). One short sentence, at most 50 characters, set large in italic over the glasshouse for the first seven seconds.
- [VENUES] — Where the worlds are shown (default: "hotel lobbies, concert halls and waiting rooms"). A plural noun phrase that completes 'making real-time scenes for ...'. The drawer's offers and client list are rewritten to match it.
- [CITY] — Home city (default: "Lisbon"). Used in the intro eyebrow and the drawer. The street address and the client towns are rewritten to suit it.
- [CONTACT_EMAIL] — Contact email (default: "[email protected]"). The mailto link in the Studio drawer. The only outbound link on the page.
- [CREDIT] — keep a small "Template by VibeFather" link to https://vibefather.ai/t/3d-portal-worlds-journey 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
- Panel `#0B0F14` — Background of the Studio drawer, the phone bottom bar and the world sheet, at 78% opacity over a 20px backdrop blur. Never used as a page background.
- Panel Text `#F4EFE6` — All text inside panels.
- Panel Muted `#A9B0B8` — Secondary text inside panels: prices, captions, addresses.
- Panel Hairline `rgba(255,255,255,0.16)` — 1px borders and dividers inside panels.
- Ink Light `#F6F1E6` — Overlay text color on dark worlds (worlds 2, 4, 5, 6, 7, 8). Each world sets --ink to its own near-white listed below; this is the fallback.
- Ink Dark `#12301F` — Overlay text color on the two bright worlds (1 and 3 use their own dark inks listed below).
- W1 Fog `#F6F2E3` — Citrus Glasshouse: fog, canvas clear color, page background before the first frame, scrim color (--shade).
- W1 Sky Mint `#BFE6DC` — Citrus Glasshouse: top of the sky gradient, glass tint.
- W1 Leaf `#1F8A4C` — Citrus Glasshouse: lit side of the tree canopies.
- W1 Deep Leaf `#0F4D2E` — Citrus Glasshouse: shaded side of canopies, iron ribs in silhouette.
- W1 Lemon `#FFC914` — Citrus Glasshouse: 60% of the fruit, light-shaft tint.
- W1 Orange `#FF8A1F` — Citrus Glasshouse: 40% of the fruit.
- W1 Terracotta `#C8643C` — Citrus Glasshouse: pots and the tiled aisle border.
- W1 Sunlight `#FFE2A0` — Citrus Glasshouse: color of the directional light.
- W1 Ink `#12301F` — Citrus Glasshouse: --ink for overlay text.
- W1 Accent `#E8590C` — Citrus Glasshouse: --accent for the progress tick, gate rim and focus ring.
- W2 Night Indigo `#0B1340` — Blue Hour Rooftop: top of the sky.
- W2 Electric Indigo `#3B4BD8` — Blue Hour Rooftop: horizon band of the sky, rim light on wet surfaces.
- W2 Fog `#1A2470` — Blue Hour Rooftop: fog.
- W2 Wet Deck `#101736` — Blue Hour Rooftop: deck, planters, city towers.
- W2 Window Amber `#FFB347` — Blue Hour Rooftop: lit windows, string lights; --accent.
- W2 Deep Amber `#FF7A1A` — Blue Hour Rooftop: the nearest lamps and their reflections.
- W2 Foliage `#1E6B5A` — Blue Hour Rooftop: grasses and small trees.
- W2 Rain `#AFC4FF` — Blue Hour Rooftop: rain streaks and ripple rings.
- W2 Ink `#F3EEDF` — Blue Hour Rooftop: --ink. Scrim (--shade) is #070B26.
- W3 Turquoise `#0FA3C7` — Sky Reef: top of the sky.
- W3 Aqua Haze `#BFF3EC` — Sky Reef: horizon, fog and cloud shadow.
- W3 Reef Rock `#2B6E86` — Sky Reef: floating rock.
- W3 Coral Pink `#FF5E8A` — Sky Reef: branch coral and jellyfish glow.
- W3 Coral Orange `#FF8F5C` — Sky Reef: brain coral and tube clusters.
- W3 Magenta `#D83A8F` — Sky Reef: fan coral; --accent.
- W3 Sea Teal `#12C7B2` — Sky Reef: sea grass ribbons.
- W3 Jelly `#FFD1E8` — Sky Reef: jellyfish bells.
- W3 Sunlight `#FFF4E0` — Sky Reef: color of the directional light.
- W3 Ink `#06303F` — Sky Reef: --ink (dark, because this world is bright). Scrim (--shade) is #D9F7F2.
- W4 Zenith Violet `#2B1672` — Salt Mirror: top of the sky.
- W4 Rose `#B0387F` — Salt Mirror: middle band of the sky.
- W4 Tangerine `#FF7A2F` — Salt Mirror: horizon band; --accent.
- W4 Sun Glow `#FFD08A` — Salt Mirror: glow where the sun has just set, planet ring.
- W4 Planet Lit `#E9C9F2` — Salt Mirror: lit side of the ringed planet.
- W4 Planet Shadow `#5B3FA8` — Salt Mirror: dark side of the planet.
- W4 Fog `#C24C7A` — Salt Mirror: fog.
- W4 Silhouette `#1C0E3F` — Salt Mirror: cairns and posts; scrim (--shade).
- W4 Ink `#FFF4E6` — Salt Mirror: --ink.
- W5 Vault `#2A0508` — Murmuration Library: ceiling vault.
- W5 Oxblood `#5C0F14` — Murmuration Library: walls and the long carpet.
- W5 Fog `#3A070B` — Murmuration Library: fog.
- W5 Shelf Wood `#3B0A0D` — Murmuration Library: shelves, ladders, tables.
- W5 Spine Red `#A3271F` — Murmuration Library: 55% of the book spines (another 30% use #7A1420, 5% use #1F3A3A).
- W5 Gilt `#C8922E` — Murmuration Library: 10% of the spines, balcony rail.
- W5 Paper `#FFF1CF` — Murmuration Library: the flying pages; --ink.
- W5 Candle Gold `#FFC24B` — Murmuration Library: flames and their light; --accent.
- W5 Floor `#1A0305` — Murmuration Library: floor outside the carpet; scrim (--shade).
- W6 Overcast `#DDE6F0` — Lightfall Canyon: the slit of sky.
- W6 Fog `#8F98A6` — Lightfall Canyon: fog.
- W6 Concrete Light `#B9BEC6` — Lightfall Canyon: lit concrete faces.
- W6 Concrete Mid `#7C838E` — Lightfall Canyon: most wall surfaces.
- W6 Concrete Dark `#2E333B` — Lightfall Canyon: undersides and deep recesses.
- W6 Cyan `#00E5FF` — Lightfall Canyon: four of the seven lightfalls; --accent.
- W6 Magenta `#FF2BD6` — Lightfall Canyon: three of the seven lightfalls.
- W6 Channel `#1B1F26` — Lightfall Canyon: the water channel. Scrim (--shade) is #14171C; --ink is #F4F7FA.
- W7 Night `#05070F` — Whale Aurora: sky; scrim (--shade).
- W7 Horizon `#0E1B2E` — Whale Aurora: horizon glow.
- W7 Fog `#070B18` — Whale Aurora: fog.
- W7 Aurora Green `#3DFFA2` — Whale Aurora: lower edge of the aurora; --accent.
- W7 Aurora Teal `#19D3C5` — Whale Aurora: middle of the aurora.
- W7 Ice Violet `#B39DFF` — Whale Aurora: top of the aurora, whale rim light.
- W7 Deep Violet `#6B4BD8` — Whale Aurora: snow shadows.
- W7 Snow `#DCE8F5` — Whale Aurora: snow where the moon hits it.
- W7 Whale Glass `#CFE6FF` — Whale Aurora: whale bodies. --ink is #EAF6FF.
- W8 Deep Teal `#052B33` — Clockwork Orchard: top of the sky.
- W8 Fog `#0B4A52` — Clockwork Orchard: fog and horizon.
- W8 Ground `#06343B` — Clockwork Orchard: ground.
- W8 Moss `#0E6B66` — Clockwork Orchard: moss between the brass rails.
- W8 Brass `#D9A441` — Clockwork Orchard: trunks, gears, leaves.
- W8 Brass Light `#FFD98A` — Clockwork Orchard: highlights; --accent.
- W8 Brass Dark `#7A5417` — Clockwork Orchard: shaded brass.
- W8 Copper `#C4683A` — Clockwork Orchard: every third gear and the pendulum bobs.
- W8 Verdigris `#3FC1A5` — Clockwork Orchard: patina on trunk collars.
- W8 Bulb `#FFE6A8` — Clockwork Orchard: glowing glass fruit. --ink is #FFF3D6; scrim (--shade) is #031D22.
### Typography
- Display: wordmark, intro line, world names, drawer headings. Fraunces Variable with font-variation-settings 'opsz' 144, 'SOFT' 100, 'WONK' 0. World names at weight 300, upright. Intro line at weight 300 italic. Wordmark at weight 500.: Fraunces Variable (OFL), weights 300/500
- Text: captions, buttons, drawer body. 16px/24px body, 14px/20px controls, weight 400, 500 for buttons and names in the index.: Manrope Variable (OFL), weights 400/500
- Mono: world numbers, countdown, eyebrows, prices. 12px, letter-spacing 0.08em, uppercase for eyebrows.: DM Mono (OFL), weights 400
### Layout & motion
- Spacing: 8px base unit. Desktop overlay margin 40px on all sides; phone margin 20px (12px for the bottom bar). Card slot max-width 620px. Controls are 44px circles with 12px gaps. Drawer width 440px with 32px padding; drawer sections are separated by 40px and a 1px hairline. The page never scrolls: html and body are 100dvh with overflow hidden; only the drawer and the bottom sheet scroll inside themselves.
- Radius: Controls and the phone bottom bar are fully round (999px). Panels: 20px on the drawer's inner corners and the top corners of the bottom sheet. The gate is a capsule: a rectangle 2.6 units wide and 4.4 units tall whose top and bottom are half circles of radius 1.3. No other rounded shapes in the interface.
- Motion: Journey clock: every world runs the same 22.4 s timeline. 0 to 1.6 s arrive, 2.5 s title card in, 12.5 s title card out, 14.0 s gate opens, 20.0 s approach starts, 22.4 s crossing. Eight worlds loop in 179.2 s and never stop.
- Motion: Camera drift: the camera rides a centripetal Catmull-Rom rail. Speed is baseSpeed times m(t). m falls from 3.0 to 1.0 over the first 1.6 s with easeOutCubic, holds 1.0 until 20.0 s, then rises from 1.0 to 3.0 over 2.4 s with easeInCubic. baseSpeed is railLength / 24.4, about 1.5 units per second, so the speed leaving one world equals the speed entering the next.
- Motion: Gate opening: at 14.0 s a vertical hairline of light widens into the full capsule over 1600 ms with cubic-bezier(0.16, 1, 0.3, 1). The rim glow then breathes between 70% and 100% opacity on a 4 s sine until the crossing.
- Motion: Gate pass-through: 2.4 s, accelerating with easeInCubic. Over the same 2.4 s the overlay colors (--ink, --accent, --shade), the outer fog tint and the sound cross-fade with cubic-bezier(0.45, 0, 0.55, 1). The swap of worlds happens 0.15 units before the gate plane and must be invisible: no flash, no fade to black, no cut.
- Motion: Title card in: number fades in 400 ms; the name rises 18px and fades in over 900 ms with cubic-bezier(0.22, 1, 0.36, 1), 80 ms stagger per line; the caption follows 250 ms later over 600 ms. Title card out: 700 ms, 8px upward, cubic-bezier(0.4, 0, 1, 1). Same place every time.
- Motion: Interface: hover, press and toggle states take 200 ms with cubic-bezier(0.2, 0, 0, 1). The drawer and the bottom sheet slide in over 520 ms with cubic-bezier(0.22, 1, 0.36, 1) and out over 320 ms with cubic-bezier(0.4, 0, 1, 1).
- Motion: Look mode: drag input is smoothed with an exponential half-life of 120 ms. When look mode is switched off, or when an approach starts, the view returns to the rail direction over 1200 ms with easeOutCubic.
- Motion: One signature motion per world, named in each world section. Everything else in a world is still or moves only because of that motion (leaves move because fog passes, reflections move because rain lands). Nothing spins, pulses or floats for decoration, and no interface element animates on a loop except the progress tick.
- Motion: Reduced motion: the camera stands still at each world's rest pose, worlds change by a 2500 ms cross-fade every 20 s, in-world motion runs at 40% speed, title cards fade without moving, and the film grain is static.
- Imagery: No image, model, texture or audio files. Every world is built at run time from three.js primitives, instanced meshes, noise-displaced geometry, points and small GLSL shaders; any sprite or matcap texture is painted on an in-memory canvas at start-up. No shadow maps, no transmission materials and no post-processing passes: glow is additive geometry, depth is fog. All sky and fog gradients add a one-step hash dither so dark gradients never band. A film-grain layer sits above the canvas: a 128px noise tile painted on a canvas at start-up, used as a CSS background at 6% opacity with mix-blend-mode overlay, shifted to a new offset 8 times per second. A soft vignette (radial gradient, transparent to 22% black at the corners) sits under the overlay text. Behind the text in the lower left there is a scrim: a radial gradient of the current world's --shade color, 72% at the corner fading to 0 at 60% of the viewport width, strong enough that the caption keeps a contrast of at least 4.5:1 in every world.
## Pages & Sections
### [BRAND] · Ambient worlds (`index.html`)
1. **Stage and first frame** — The page is one full-screen WebGL scene with a thin interface over it. There is no start screen, no loader, no progress bar, no spinner and no click-to-enter state. The first thing a visitor sees is the inside of the Citrus Glasshouse with the camera already drifting down the aisle, the [BRAND] wordmark top left and the intro line in the lower left. A still screenshot taken at any moment from 0 s onward must look like a finished poster. To guarantee that: (1) index.html ships the wordmark, the intro block and the controls as real HTML, styled by CSS that loads with the page, so they are visible before any script runs. (2) Until the first WebGL frame, html has a CSS background that stands in for the glasshouse: a linear gradient from #BFE6DC at the top to #F6F2E3 at 55%, with a radial glow of #FFC914 at 20% opacity in the upper right and a soft #1F8A4C band at 18% opacity along the bottom. The canvas clear color is #F6F2E3. (3) The engine and the Citrus Glasshouse module are in the entry bundle and build synchronously; the other seven worlds are separate lazy chunks. (4) The first WebGL frame must be on screen within 2 seconds of navigation on a mid-range laptop and within 3 seconds on a mid-range phone. Measure with performance.now() in development and cut glasshouse detail until it holds. (5) Fonts use font-display swap and the two Fraunces latin files are preloaded, so text never waits for a font. The document title is '[BRAND] · Ambient worlds'. If the address has a hash such as #/salt-mirror the journey starts in that world instead, showing that world's sky gradient as the CSS background until its chunk has loaded; with no hash it always starts in world 1. The hash is updated with history.replaceState at each crossing.
Layout: Layers from back to front: html background gradient; canvas#stage fixed, inset 0; vignette; grain; scrim; div#ui fixed, inset 0, pointer-events none (children that are controls set pointer-events auto); drawer and sheet. Camera: perspective, vertical field of view 55 degrees in landscape and 72 degrees when the viewport is taller than wide, near 0.1, far 600. Renderer: no tone mapping, sRGB output, antialias on only when the starting quality tier is high. Handle resize and orientation change by updating size, aspect, field of view and render-target size. Pause the animation loop and suspend audio while document.hidden. Clamp the frame delta to 50 ms.
Motion: The canvas does not fade in; the CSS stand-in is simply replaced by the first rendered frame, which uses the same colors, so the change reads as the picture sharpening.
2. **Journey engine** — src/engine/journey.ts owns one clock and one state machine: drift, approach, crossing. Each world module exports the same interface: id, slug, name, caption, palette, rail (five control points), rest pose for reduced motion, optional glance, async init(ctx) that builds the scene in steps and yields to the next animation frame whenever a step has used more than 8 ms, update(time, delta, quality), setQuality(tier), dispose() and createAmbience(audioContext, output). All worlds share one coordinate convention so the engine stays simple: the camera enters at (0, 2.2, 0) facing negative Z, and the gate stands at (0, 2.2, -36) facing the camera. The rail is a centripetal Catmull-Rom curve through the world's five points, sampled by arc length. The camera looks at the rail point 7 units ahead; during the approach this blends to looking straight down negative Z so it meets the gate square on. A world may define one glance: between 6 s and 12 s the view turns by a fixed yaw and pitch toward that world's main subject and back, each way 3 s with easeInOutSine. A vertical breathing bob of 0.06 units on a 9 s sine keeps the frame from feeling locked to a track. Schedule for the following world: start its dynamic import at 4 s, run init from 8 s, call renderer.compileAsync for it before 14 s so the gate opening never hitches. Only two worlds are ever alive: the current one and the one behind the gate. After a crossing the old world is disposed (geometries, materials, canvas textures, render targets) and renderer.info.memory must return to the same numbers each loop. After world 8 the gate leads back to world 1. Use one seeded pseudo-random generator per world (mulberry32, seed = world number times 1000) so every visit builds the identical scene.
Layout: No visible interface. Files: src/main.ts, src/content.ts (all copy, world names, captions and palettes in one place), src/engine/ (journey, rail, gate, quality, input), src/worlds/ (one file per world), src/audio/ (engine and shared helpers), src/ui/ (chrome, card, index, sheet, drawer), src/styles.css.
Motion: Speed profile exactly as in the Design motion list: 3.0x easing down to 1.0x over 1.6 s (easeOutCubic), 1.0x until 20.0 s, up to 3.0x by 22.4 s (easeInCubic). Integrate distance each frame as baseSpeed * m(t) * delta.
3. **Gate** — The gate is the portal between worlds and the only transition in the site. It is a plain upright capsule opening, 2.6 units wide and 4.4 units tall, standing on the ground at the end of the rail, with a rim 0.03 units thick in the next world's accent color and a soft additive halo 0.5 units wide at 25% opacity. It has no frame, machinery, runes, swirl or particles. From the moment it opens, the next world is visible through it, live and with correct parallax. Implementation: render the next world into a WebGLRenderTarget with a second camera whose rotation equals the main camera's and whose position is the main camera's position minus the gate position plus the next world's entry position (0, 2.2, 0); the capsule mesh uses a ShaderMaterial that samples the target with screen-space coordinates (gl_FragCoord.xy divided by the drawing-buffer size) and ends with the colorspace_fragment include so a pixel seen through the gate has exactly the value it will have after the swap. Use a half-float target when the device can render to one, otherwise 8-bit; give it a depth buffer; 4 samples on the high tier, 0 otherwise. The target is rendered only from 14.0 s on. Its size is the drawing buffer times the tier factor (0.75 high, 0.5 medium, 0.35 low) and ramps to 1.0 during the last 1.2 s of the approach so nothing sharpens at the swap. When the camera is 0.15 units from the gate plane, swap: the next world becomes the current scene, the main camera takes the second camera's position, the journey clock resets to 0, and the old world is disposed on the next idle frame. Check the swap by stepping one frame before and one frame after: there must be no jump in brightness, saturation, position or sharpness. During the approach the current world's fog color moves 40% of the way toward the next world's fog color, so the surroundings begin to take on the destination before the camera leaves.
Layout: World space: center (0, 2.2, -36), facing positive Z. Each world leaves a clear 5 unit wide, 6 unit tall corridor in front of the gate so nothing intersects it, and places something of its own on both sides (the last arch of the glasshouse, the roof parapet, two coral arms, and so on) so the gate reads as standing in the place rather than pasted on.
Motion: Opening: scale X from 0.01 to 1 over 1600 ms with cubic-bezier(0.16, 1, 0.3, 1) while scale Y stays 1, so it begins as a hairline of the next world's light. Rim halo breathes 70% to 100% on a 4 s sine. Jumping from the index summons a temporary gate 10 units ahead of the camera on its current heading: 600 ms opening with the same curve, then an 1800 ms straight approach with easeInCubic; after a summoned crossing the view eases to the new rail's direction over 1200 ms with easeOutCubic.
4. **Quality tiers and phones** — The journey must hold a steady frame rate on a mid-range phone. src/engine/quality.ts picks a starting tier and can only step down. Start at medium when the pointer is coarse, when the shorter viewport side is under 768px, or when navigator.hardwareConcurrency is 4 or less; otherwise start at high. High: pixel ratio capped at 1.75, particle and instance counts at 100%, gate target factor 0.75. Medium: pixel ratio capped at 1.5, counts at 50%, factor 0.5, terrain and curtain meshes at half their segment counts. Low: pixel ratio 1.0, counts at 30%, factor 0.35, point lights reduced to the two nearest. A monitor averages frame time over 120 frames, ignoring the approach; if two windows in a row average above 22 ms it steps down one tier and never steps back up in that session. Counts change through InstancedMesh.count and geometry draw ranges, never by rebuilding. All particle motion (rain, mist, dust, salt, filings, stars) is computed in the vertex shader from a time uniform and per-particle seeds, with no per-frame buffer uploads; only the page flock, the jellyfish and the whales update matrices on the CPU. Listen for webglcontextlost (prevent default, stop the loop) and webglcontextrestored (rebuild the current world and continue); a lost context must never leave a white or black page.
Layout: No visible interface. The per-world counts in the world sections below are the high-tier numbers.
5. **Overlay interface** — Thin and quiet. All overlay text uses the current world's --ink color and all hairlines, the progress tick and focus rings use --accent; accent never carries text. Top left: the wordmark '[BRAND]' in Fraunces 500, 22px (18px on phones). Top right: a text button 'Studio' in Manrope 500, 14px, with a 1px underline that draws from left to right on hover; it opens the Studio drawer. Lower left: the card slot. On first load the slot holds the intro block, visible from the very first paint: eyebrow in mono 'AMBIENT VISUALS STUDIO · [CITY]' (uppercase), then the headline '[TAGLINE]' in Fraunces 300 italic at clamp(36px, 5vw, 72px), line-height 1.02, letter-spacing -0.02em, max-width 13 characters per line on desktop, then one line in Manrope 16px: 'Eight worlds, drawn live in your browser. It plays on its own; sound is off until you ask.' The intro block stays until 7.0 s, fades out over 700 ms, and world 1's first title card appears at 8.0 s instead of 2.5 s. It is shown once per page load. Lower right (desktop): three round 44px controls with a 1px border of --ink at 35% opacity and no fill: Pause or Play, Look, Sound. Next to the Sound control a mono label always states the truth: 'Sound off' or 'Sound on'. Hover on desktop shows a small mono label above each control: 'Pause', 'Drag to look', 'Sound'. Every control is a button with an aria-label and aria-pressed, has a visible 2px --accent focus ring with 3px offset, and works from the keyboard.
Layout: Desktop 1440x900: wordmark at left 40, top 32. Studio button at right 40, top 34. Card slot at left 40, bottom 56. Controls at right 40, bottom 40, in a row with 12px gaps, the Sound label to the left of the row. The world index rail sits at right 40, vertically centered (next section but one). Phone 390x844: wordmark at left 20, top 18; Studio at right 20, top 20. The three controls move into a bottom bar: fixed at left 12, right 12, bottom 12 plus the safe-area inset, height 56, fully round, Panel color at 78% with 20px backdrop blur and a hairline border. The left part of the bar is the world chip, a button showing mono '01/08', the world name in Manrope 500 14px (ellipsis if it does not fit) and the countdown; the right part holds Pause, Look and Sound as 44px icon buttons without borders (the Sound label is replaced by the icon change plus a 6px --accent dot when sound is on). The card slot sits at left 20, right 20, bottom 92.
Motion: Overlay colors cross-fade with the worlds: register --ink, --accent and --shade with @property as colors and transition them over 2400 ms with cubic-bezier(0.45, 0, 0.55, 1) starting when the approach starts. Control hover: border goes to 100% opacity and the icon moves up 1px, 200 ms.
6. **Title card** — Each world shows one title card in the card slot: a mono line with its number ('03 / 08'), its name in Fraunces 300 at clamp(44px, 6.2vw, 96px), line-height 0.95, letter-spacing -0.025em, and a one-line caption in Manrope 16px/24px, max-width 34 characters per line. Names and captions for the defaults: 01 Citrus Glasshouse, 'Morning fog, eighteen citrus trees and nothing due until noon.' 02 Blue Hour Rooftop, 'Rain on the planters, and every window across the street still lit.' 03 Sky Reef, 'Coral with no sea around it, and jellyfish keeping the tide.' 04 Salt Mirror, 'Two dusks, one above the other, under a planet with rings.' 05 Murmuration Library, 'After closing, the pages leave their books and fly as one.' 06 Lightfall Canyon, 'Concrete sixty meters high, and light poured down it like water.' 07 Whale Aurora, 'Glass whales cross the tundra once the sky turns green.' 08 Clockwork Orchard, 'Thirty brass trees, wound each evening, ticking toward harvest.' The names and captions describe the worlds, not the brand, so they stay when the variables change; only rewrite them if the user replaces a world.
Layout: Always in the card slot, left aligned, bottom anchored, so the name grows upward and the caption baseline never moves. On phones the name is clamp(40px, 11vw, 56px) and may wrap to two lines. The card is aria-live polite so screen readers hear each world once.
Motion: In at 2.5 s: number fades over 400 ms; each line of the name rises 18px and fades in over 900 ms with cubic-bezier(0.22, 1, 0.36, 1), second line 80 ms later; caption fades in over 600 ms starting 250 ms after the name. Out at 12.5 s: the whole card moves up 8px and fades over 700 ms with cubic-bezier(0.4, 0, 1, 1). It is gone 0.8 s before the gate opens at 14.0 s, so the eye is free for the gate. While paused the current card stays; after a jump the new card follows the normal 2.5 s timing.
7. **World index** — The only navigation. Desktop: a vertical rail of eight rows, 28px each. Every row ends in a tick on the right: 16px wide, 1.5px tall, --ink at 45%. The current world's tick is 40px wide; over it a --accent bar fills from left to right across the 22.4 s of the world (scaleX, linear), and to its left the row shows the mono number, the name in Manrope 500 13px and the mono countdown to the crossing ('0:14'). The other seven labels are hidden until the pointer enters the rail or a row takes keyboard focus; then all labels appear so the rail reads as a list. Clicking a row jumps to that world through a summoned gate (see Gate); clicking the current row does nothing. If the destination chunk is still loading, the row's tick shows a moving 8px --accent segment until it is ready, and the journey continues meanwhile. Phone: the rail is replaced by the world chip in the bottom bar. Tapping it opens a bottom sheet titled 'Eight worlds' with eight rows, 60px each: mono number, name in Manrope 500 16px, caption in Panel Muted 13px on one line with ellipsis, and three 10px dots in that world's three strongest colors; the current row has a 2px --accent bar on its left edge and the countdown on its right. Tapping a row closes the sheet and jumps.
Layout: Rail: right 40, centered vertically, rows right aligned, hit area the full row width (at least 220px when labels show). Sheet: Panel color at 78% with 20px blur, top corners 20px, height fits content up to 76dvh, a 36px by 4px grab handle, 20px side padding; a 40% black backdrop behind it. It closes on backdrop tap, on Escape, on the close button and on a downward drag of more than 80px. While the sheet or the drawer is open, focus is trapped inside and returns to the opener on close.
Motion: Rail labels fade in over 180 ms with a 24 ms stagger from the current row outward, moving 6px from the right. Sheet slides up over 520 ms with cubic-bezier(0.22, 1, 0.36, 1), down over 320 ms with cubic-bezier(0.4, 0, 1, 1); during a drag it follows the finger.
8. **Pause, look mode and input** — Pause holds the camera and the journey clock exactly where they are; the world keeps living (rain keeps falling, pages keep flocking) and sound keeps playing, so a paused world works as a still, breathing backdrop. The Pause control swaps to a Play icon and the progress tick stops. Look mode: the journey continues on its rail, but the visitor can turn the view by dragging with a mouse or one finger: yaw up to 110 degrees each way, pitch up to 45 degrees, 0.18 degrees per pixel, inverted like dragging a photograph. The Look control shows aria-pressed and a filled --accent ring while on, and the cursor is grab or grabbing over the canvas. The first time look mode is switched on a mono hint 'Drag to look around' shows for 2.5 s above the controls. When an approach starts, the view eases back to the rail direction so every crossing is head-on, and the visitor's offset returns once the new world has arrived. In guided mode dragging the canvas does nothing. Keyboard: Space pause or play, L look mode, M sound, Right or Down arrow next world, Left or Up arrow previous world, digits 1 to 8 jump, Escape closes the drawer or sheet. Jumping always resumes play. Requests to jump during a crossing are ignored until it completes.
Layout: Use Pointer Events on the canvas with setPointerCapture. Set touch-action none on the canvas only while look mode is on. All touch targets are at least 44px. Nothing depends on hover. No pointer lock, no fullscreen request, no device-orientation permission prompt.
Motion: Look input is smoothed with a 120 ms half-life. Returning to the rail direction takes 1200 ms with easeOutCubic.
9. **Sound** — Each world has its own generated ambience, built only from Web Audio nodes: oscillators, filtered noise from a generated buffer, gain envelopes and one shared reverb. Nothing is recorded and nothing is loaded. Sound is off on load. The AudioContext is created on the first activation of the Sound control, never earlier, and the label changes to 'Sound on'. Signal path: each ambience has its own gain, feeding a master gain at 0.5, a compressor (threshold -18 dB, ratio 3) and the destination; 35% of each ambience is also sent to a convolver whose impulse response is generated at start-up: 3.2 s of stereo white noise multiplied by (1 - t/3.2) to the power 2.6 and gently low-passed. Switching on fades the master in over 1.5 s; switching off fades out over 0.4 s and then suspends the context. At each gate the two ambiences cross-fade with equal power over the 2.4 s of the approach, and the old one is disconnected and stopped 0.5 s after the crossing. The recipes are drones and textures, not tunes: no melody, no rhythm except the orchard's clock tick, no sound logo. Random events use the world's seeded generator. Recipes (frequencies in Hz, gains relative to the ambience gain): 01 Citrus Glasshouse: sines at 196 and 293.66 with a 0.07 Hz swell; band-passed noise at 900 Hz, gain 0.015, as air; every 2.5 to 6 s one soft glass ping, a sine at 1568, 1760, 2093 or 2349 with 8 ms attack and 1.4 s decay, gain 0.05. 02 Blue Hour Rooftop: rain as white noise high-passed at 1800 Hz, gain 0.05; brown noise low-passed at 140 Hz, gain 0.08; triangles at 110 and 164.81 through a 600 Hz low-pass; every 0.4 to 1.6 s a drip, a sine between 900 and 1400 falling 30% in 60 ms. 03 Sky Reef: sine pairs at 146.83, 220 and 329.63, each pair detuned by 3 cents so they beat slowly; noise band-passed around 400 Hz with its center swept 300 to 600 at 0.05 Hz; every 1.5 to 4 s a bubble, a sine gliding 400 to 900 in 120 ms. 04 Salt Mirror: sines at 55 and 82.41; a sawtooth at 110 through a resonant low-pass sweeping 180 to 420 Hz at 0.03 Hz; a sine at 2637, gain 0.004, with a 0.2 Hz tremolo; no events. 05 Murmuration Library: sines at 130.81 and 196; page flutter as 40 to 90 ms noise bursts band-passed at 2500 Hz with 28 Hz amplitude flutter, in clusters of 3 to 7 every 2 to 5 s, louder when the flock is near the camera. 06 Lightfall Canyon: a sawtooth at 73.42 through a 300 Hz low-pass plus a sine at 146.83; two noise sources through narrow band-passes (Q 8) at 1200 and 1790 Hz drifting by 6% on 11 s and 17 s sines, a pitched hiss like falling light. 07 Whale Aurora: sines at 98, 147 and 246.94; noise high-passed at 6000 Hz, gain 0.006, with a 0.1 Hz tremolo; every 9 to 16 s one long call, a sine gliding 220 to 330 to 262 over 6 s with 4 Hz vibrato, gain 0.03, mostly reverb. 08 Clockwork Orchard: sines at 87.31, 130.81 and 174.61; a tick every 1.0 s (a 4 ms noise burst through a 3200 Hz band-pass, gain 0.05) with a softer tock at the half second through 2400 Hz; every 7 to 12 s a brass chime, sines at 523.25 and 784 plus a partial at 2.76 times the lower one, 2.2 s decay.
Layout: Control in the lower-right cluster (bottom bar on phones). Icon volume-x when off, volume-2 when on. The state is always visible as text on desktop and as an icon plus dot on phones.
Motion: Master fade in 1.5 s, fade out 0.4 s, gate cross-fade 2.4 s equal power. No sound plays, and no AudioContext exists, before the visitor asks for it.
10. **Studio drawer** — This is what makes the page a studio homepage. The 'Studio' button opens a drawer while the journey keeps playing behind it. Content, top to bottom. Heading in Fraunces 300, 34px: '[BRAND] draws ambient worlds for rooms.' Paragraph: 'We are a two-person studio in [CITY], making real-time scenes for [VENUES]. Each world is drawn in code while you watch, so it never repeats exactly and it can run for months on a small computer behind a wall. The eight on this page are the current catalogue.' Section 'Ways to work with us', three rows with a name, a mono price and one line: 'License a world', 'from $1,800 per screen, per year', 'Any of the eight, tuned to your screen size, brightness and opening hours.' Then 'Commission a world', 'from $14,000, six weeks', 'A new place drawn for your space, with its own palette and soundscape.' Then 'Install and care', '$320 per month', 'A silent player, remote monitoring and a seasonal refresh.' Section 'Rooms we have filled', four rows with a name and a mono detail: 'Hotel Almadra, Porto', 'Salt Mirror on a 9 m lobby wall'; 'Kestrel Hall, Leeds', 'interval visuals for 62 concerts'; 'Vale Sereno Clinic, Braga', 'Sky Reef in three waiting rooms, sound off'; 'Nordlys Sauna Club, Tromsø', 'Whale Aurora across a 14 m ceiling'. All four are invented. Section 'Write to us': a mailto link to [CONTACT_EMAIL] in Fraunces 300, 26px, with an arrow-up-right icon; then 'Founded by Inês Carvalhal and Tobias Wren.'; '18 Rua do Limoeiro Alto, [CITY]'; 'Studio visits Tuesday to Thursday, 10:00 to 17:00, by appointment.' Last line in Panel Muted 13px: 'Everything on this page is drawn at run time. No model files, no textures, no recordings.' If the optional [CREDIT] line is used it goes under that sentence in the same style. Rewrite every sentence in this drawer when the variables describe a different kind of business, keeping the same four sections and row counts.
Layout: Desktop: fixed to the right edge, 440px wide, full height, Panel color at 78% with 20px blur, 20px radius on its left corners, 32px padding, internal scroll; the scene stays visible to its left and the index rail and controls hide while it is open. A round 44px close button (x icon) at its top right. Phone: the drawer becomes a full-height sheet with 20px padding and the same content in one column. Rows are two-column on desktop (name left, mono detail right) and stacked on phones. No photographs, avatars or logos anywhere in the drawer.
Motion: Slides in from the right over 520 ms with cubic-bezier(0.22, 1, 0.36, 1) (from the bottom on phones); the sections fade in 60 ms apart. Out over 320 ms with cubic-bezier(0.4, 0, 1, 1). Closes on Escape, on the close button and on a click outside it.
11. **Reduced motion and fallback** — When prefers-reduced-motion is set: the camera does not travel. Each world is shown from its rest pose (given in each world section) for 20 s, then the next world cross-fades in over 2500 ms: render the next world to the gate target and blend it over the frame with a full-screen quad. No gate is drawn and nothing accelerates. Motion inside the worlds runs at 40% speed, title cards fade without moving, the grain does not shift, the progress tick still fills. Look mode, pause, the index and sound all still work; a jump is a 1200 ms cross-fade. If the preference changes while the page is open, switch at the next crossing. If WebGL is unavailable or the renderer cannot be created, catch the error and run a still version instead: the page background becomes the current world's sky gradient (top, middle and bottom colors from its palette), title cards and the index work on the same 22.4 s clock, the Look control is hidden, and one mono line under the intro says 'Showing stills: 3D is switched off in this browser.' No console errors in either mode.
Layout: Same overlay layout in every mode.
12. **World 01: Citrus Glasshouse** — A long barrel-vaulted glasshouse standing on an island of earth that floats in morning fog. This is the first frame of the site, so it gets the most care. Signature motion: fog banks sliding past outside the glass, which makes the light shafts inside slowly brighten and dim. Build: an island slab 46 long and 16 wide (a box with noise-displaced edges whose underside tapers to a ragged point 9 units below, color #0F4D2E fading to fog). On it, 12 half-ring iron ribs of radius 6 spaced 3.5 apart from z = 2 to z = -36.5, joined by 7 thin purlins, color #0F4D2E. Glass: one half cylinder over the ribs, #BFE6DC at 10% opacity with a view-angle rim that rises to 35% at grazing angles. Floor: a 3 unit wide aisle of pale stone tiles (#F6F2E3 and a 6% darker alternate) edged with a 0.3 strip of #C8643C, and a 0.4 wide still water channel down the center reflecting the sky gradient. Trees: two rows of nine at x = -3.2 and x = 3.2, every 4 units from z = -2, each in a terracotta pot 0.9 tall: a slightly crooked trunk, a canopy of three merged noise-displaced icosahedra about 2.6 across with vertex colors mixing #1F8A4C on top and #0F4D2E below. Fruit: 252 instanced spheres of radius 0.11, 14 per tree at the canopy surface, 60% #FFC914 stretched 1.25 tall as lemons and 40% #FF8A1F as oranges, plus 40 fallen fruit along the aisle edges. One extra branch with five lemons hangs into frame at (-1.3, 2.4, -3.2) so the very first frame has fruit in the foreground. Light: hemisphere light sky #F6F2E3, ground #BFE6DC, intensity 1.1; directional light #FFE2A0, intensity 1.4, from (8, 14, 4). Five light shafts: long additive quads slanting 35 degrees from the roof to the floor, #FFC914 mixed 50% with white at 10% opacity. 60 pollen points drift inside the shafts. Outside: sky gradient #BFE6DC to #F6F2E3 and six large soft fog sprites (radial alpha painted on a canvas) moving along positive X at 0.3 units per second, 9 to 20 units from the glass. Fog: exponential, #F6F2E3, density 0.028. When a fog sprite passes between the sun direction and a shaft, that shaft's opacity eases down to 4%, and canopy vertices sway by 0.03 units on a 5 s sine as if the vents were open. Rail: (0, 2.2, 0), (-0.8, 1.8, -9), (0.9, 2.0, -18), (-0.4, 2.6, -27), (0, 2.2, -36). No glance. Rest pose: position (0.6, 2.0, -3), looking at (0, 2.3, -30). The gate stands under the last rib. Overlay: --ink #12301F, --accent #E8590C, --shade #F6F2E3.
Layout: First-frame composition at 1440x900: the aisle runs from the bottom center to a vanishing point slightly above the middle; tree rows frame both sides; ribs arch overhead; at least three shafts cross the aisle; the foreground lemon branch sits in the upper left third and does not cover the intro text in the lower left. At 390x844 the 72 degree field of view keeps both tree rows in frame.
Motion: Fog sprites 0.3 units per second; shaft opacity changes over 2 s with easeInOutSine; island bob 0.2 units on an 11 s sine applied to the outside fog and sky, not to the camera.
13. **World 02: Blue Hour Rooftop** — A rain-soaked rooftop garden just after sunset, surrounded by a city of lit windows. Signature motion: rain, and everything it causes (ripple rings on the deck, drops running off the string lights). Build: a deck 30 wide and 44 long, #101736, with a wet-surface shader: a dark base, a view-angle sheen of #3B4BD8, vertical smeared reflections of the amber lights computed analytically from the lamp positions, and 24 expanding ripple rings at any time placed by a hash of cell and time. Twelve raised planters, 1.2 wide and 0.7 tall, in two staggered lines either side of the rail, filled with 2,400 instanced grass blades (#1E6B5A, tips lit #3B4BD8) and six small multi-stem trees. A timber pergola from z = -14 to z = -24 carrying three catenary strings of 40 bulbs in total (emissive #FFB347 spheres of radius 0.06 with an additive halo sprite), and three point lights #FF7A1A, intensity 12, distance 14, under it. A cylindrical water tank on legs at (-9, 0, -20) and a parapet 1.1 tall around the roof edge. City: 70 instanced towers 40 to 160 units away, 20 to 90 tall, #101736, with a shader window grid in which 22% of the cells are lit #FFB347 and about 3% of those switch on or off once during a visit. Rain: 6,000 short line segments, #AFC4FF at 55% opacity, falling at 14 units per second with a slight slant, wrapped in a 30 by 18 by 30 box that follows the camera. Sky: gradient #0B1340 at the top to #3B4BD8 at the horizon, dithered. Hemisphere light sky #3B4BD8, ground #0B1340, intensity 0.9. Fog: exponential, #1A2470, density 0.022. Rail: (0, 2.2, 0), (2.2, 2.0, -8), (-1.8, 2.3, -17), (1.2, 2.6, -27), (0, 2.2, -36). Glance: yaw 12 degrees left, pitch 4 degrees up, toward the string lights. Rest pose: position (1.5, 2.1, -6), looking at (-1, 2.6, -22). The gate stands at the far parapet with the skyline behind it. Overlay: --ink #F3EEDF, --accent #FFB347, --shade #070B26.
Layout: Amber must be present in the first second after arrival: two string-light bulbs and their deck reflections are within 8 units of the entry point.
Motion: Rain 14 units per second; ripple rings grow from 0 to 0.5 units over 900 ms and fade; string lights swing 2 degrees on a 3.5 s sine, out of phase per string; grass leans away from the rain slant by 4 degrees with a 2 s gust cycle.
14. **World 03: Sky Reef** — A coral reef with no ocean: five reef islands hanging in open turquoise sky above a floor of cloud, with jellyfish drifting between them. Signature motion: the jellyfish, pulsing and rising. Build: five islands of #2B6E86 rock (icosahedra of detail 3, displaced by 3D noise, flattened on top, drawn out underneath into hanging spires), 8 to 14 units across, at (-7, 1, -8), (6, 3, -15), (-5, 5, -22), (7, 4, -29) and (0, 0, -38, the largest, split by a gap for the gate). Coral, all instanced and seeded: 90 branch corals (a merged tree of tapering cylinders, four levels deep) in #FF5E8A; 60 brain corals (noise-grooved spheres) in #FF8F5C; 50 fan corals (flat discs with radial ribs cut by alpha in the shader) in #D83A8F; 70 tube clusters in #FF8F5C tipped #FFD1E8; 300 sea-grass ribbons in #12C7B2 that wave as if in a current. Jellyfish: 36, bells 0.5 to 1.4 across. Each bell is a hemisphere whose rim contracts and relaxes in the vertex shader every 2 s (fast squeeze, slow release); each has six ribbon tentacles 2 to 4 units long that trail with a traveling sine. Material: #FFD1E8 at 35% opacity with an additive #FF5E8A rim at grazing angles. They rise 0.25 units per second in steps that match the pulse, wander on a slow curl-noise field, and wrap from top to bottom of a 30 unit tall volume; three of them pass within 3 units of the rail. Clouds: 14 clusters of soft sprites (canvas-painted radial alpha, white tinted #BFF3EC below) 12 to 20 units under the islands, drifting 0.2 units per second. Sky: #0FA3C7 at the top to #BFF3EC at the horizon. Directional light #FFF4E0, intensity 1.6, from high on the left; hemisphere light sky #BFF3EC, ground #FF5E8A at intensity 0.9, so the undersides of everything pick up pink. Fog: exponential, #BFF3EC, density 0.012. Rail: (0, 2.2, 0), (-3, 4.0, -9), (3.5, 6.5, -18), (-2, 4.5, -28), (0, 2.2, -36). Glance: yaw 16 degrees right, pitch 6 degrees up, toward the nearest group of jellyfish. Rest pose: position (-2, 3.5, -5), looking at (3, 5, -20). The gate hangs in the gap of the last island between two branch-coral arms. Overlay: --ink #06303F, --accent #D83A8F, --shade #D9F7F2.
Layout: The rail climbs and sinks 4 units, so the islands are seen from below, level and above within one pass.
Motion: Jellyfish pulse: 2 s cycle, contraction in 0.5 s with easeOutCubic, release in 1.5 s with easeInOutSine. Sea grass: 4 s wave. No fish, no bubbles in the scene.
15. **World 04: Salt Mirror** — A flooded salt flat at dusk that mirrors the whole sky, under a ringed planet. Signature motion: one long, slow ripple crossing the mirror every 6 s, bending the planet's reflection as it passes. Build: the sky is one shader function skyColor(direction): a vertical gradient #2B1672 at the zenith through #B0387F at 25 degrees to #FF7A2F at the horizon, a #FFD08A glow 30 degrees wide where the sun has set (straight ahead), 400 small stars above 35 degrees, and the planet: a disc of 9 degrees radius centered 32 degrees up and 20 degrees right of straight ahead, shaded from #E9C9F2 on its lower right to #5B3FA8 on its upper left with two faint bands, crossed by a ring in #FFD08A tilted 24 degrees with two dark gaps, drawn behind the disc at the top and in front of it at the bottom. The ground is a 400 unit plane whose shader returns skyColor of the reflected view direction, darkened 12%, plus: the ripple (a sine bump 6 units wide traveling toward the camera at 5 units per second, offsetting the reflection direction), a faint hexagonal salt-crust pattern in #FFD08A at 10% opacity that fades out by 40 units, and a 2% noise shimmer. Objects: seven salt cairns 1 to 2.4 tall (three to five stacked, flattened, noise-displaced spheres) in #1C0E3F with a #FF7A2F rim on the sun side, each with an upside-down copy under the plane and the plane drawn at 88% opacity so they read as reflections; a line of 24 knee-high posts 4 units apart leading to the horizon on the left of the rail; 800 salt-dust points skimming 0.05 units above the surface toward positive X at 1.2 units per second, catching #FFD08A. Directional light #FF7A2F, intensity 1.2, from the horizon ahead; hemisphere light sky #2B1672, ground #FF7A2F, intensity 0.7. Fog: exponential, #C24C7A, density 0.006. Rail: (0, 2.2, 0), (1.5, 1.2, -9), (-1.5, 0.9, -19), (0.8, 1.3, -28), (0, 2.2, -36), so the camera skims the mirror. Glance: yaw 14 degrees right, pitch 12 degrees up, to the planet. Rest pose: position (0, 1.1, -4), looking at a point 20 degrees right and 10 degrees up. The gate stands alone on the mirror with its own reflection drawn under it. Overlay: --ink #FFF4E6, --accent #FF7A2F, --shade #1C0E3F.
Layout: The horizon sits at 42% of the frame height from the bottom at the lowest point of the rail, so sky and reflection are nearly equal halves.
Motion: Ripple every 6 s, 5 units per second. The planet turns its ring by 2 degrees over a full visit. Nothing else moves.
16. **World 05: Murmuration Library** — A tall oxblood library lit by candles, after closing, where loose pages lift out of open books and fly through the nave as one flock, like starlings at dusk. Signature motion: the flock. Build: a nave 12 wide, 16 tall and 48 long with a ribbed barrel vault in #2A0508. Shelving in #3B0A0D on both walls: 8 bays per side, each 5 wide with 10 shelves, and a balcony with a #C8922E rail at half height reached by two rolling ladders. Books: 4,800 instanced boxes, 30 per shelf, heights 0.22 to 0.34, a few leaning; spine colors 55% #A3271F, 30% #7A1420, 10% #C8922E, 5% #1F3A3A. A carpet runner in #5C0F14 on a #1A0305 floor. Ten reading tables alternate left and right of the rail, each with two open books and one candle: a 0.25 tall stick, a flame drawn as an additive teardrop sprite in #FFC24B with a paler core, and a point light #FFC24B (intensity 6, distance 9) on the four candles nearest the camera only. 300 dust points hang in the candlelight. Pages: 1,400 instanced quads, 0.21 by 0.30, #FFF1CF, double sided, lit by the candles and slightly self-lit so they stay readable in the dark. They follow flocking rules on the CPU at 30 updates per second with a uniform grid for neighbor search, interpolated every frame: separation inside 0.5 units, alignment and cohesion inside 2.2 units, speed 3 to 6 units per second, a soft boundary 1 unit inside the nave walls, and a shared target that travels a slow figure-eight through the nave between 3 and 13 units high, dipping to table height every 14 s; each dip, 30 pages peel up from the open books to join while 30 others settle back. Each page flaps in the vertex shader by folding along its long center line 6 times per second with its own phase. The flock crosses directly over the rail at least twice per visit. Hemisphere light sky #5C0F14, ground #1A0305, intensity 0.6. Fog: exponential, #3A070B, density 0.03. Rail: (0, 2.2, 0), (-1.2, 2.8, -9), (1.4, 4.2, -18), (-0.6, 3.2, -28), (0, 2.2, -36). Glance: pitch 14 degrees up into the flock. Rest pose: position (-1, 2.4, -4), looking at (0.5, 7, -24). The gate stands at the end of the nave where a great window would be. Overlay: --ink #FFF1CF, --accent #FFC24B, --shade #1A0305.
Layout: Gold must read against red at all times: a candle is always within 6 units of the camera, and the flock is pale enough to be the brightest moving thing in frame.
Motion: Flock speed 3 to 6 units per second with turns limited to 90 degrees per second so it flows rather than darts. Flames change scale by 8% on a noise signal. Books and shelves never move.
17. **World 06: Lightfall Canyon** — A narrow canyon of raw cast concrete, sixty units deep, where light pours over the ledges and falls like water. Signature motion: the seven lightfalls. Build: two facing walls, each of 22 staggered concrete blocks 6 to 14 wide and 30 to 60 tall, set back or forward by up to 3 units, leaving a canyon 9 to 14 wide. The concrete shader mixes #B9BEC6, #7C838E and #2E333B by height and facing, with horizontal board-form lines every 0.5 units, a tie-hole dot every 1.2 units and vertical damp streaks from noise. Five slab bridges cross overhead at different heights, and broad steps climb the left side between z = -10 and z = -20. Floor: an 8 unit wide channel of shallow still water, #1B1F26, that reflects the lightfalls as long vertical smears of their colors and shows slow rings where mist lands. Lightfalls: seven vertical ribbons 2 to 5 wide and 30 to 50 tall, dropping from ledges on alternate sides at z = -6, -11, -16, -21, -26, -31 and one 7 wide directly behind the gate at z = -39. Cyan #00E5FF for the first, third, fifth and seventh; magenta #FF2BD6 for the others. The ribbon shader draws stretched noise streaks flowing downward at 9 units per second, brighter at the lip, thinning to transparent at the edges, additive. At each base: a mist plume of 600 points rising 3 units and drifting down-canyon, a glowing additive disc 3 units across on the water, and a point light of the fall's color (intensity 10, distance 16) on the four falls nearest the camera. Where cyan and magenta light overlap on a wall they mix toward violet. Sky: a slit of #DDE6F0 overcast far above. Hemisphere light sky #DDE6F0, ground #2E333B, intensity 0.7. Fog: exponential, #8F98A6, density 0.018. Rail: (0, 2.2, 0), (1.8, 1.6, -9), (-2.2, 1.5, -18), (1.0, 2.0, -28), (0, 2.2, -36); the mist of the second and fourth falls drifts across the rail, so their color washes over the frame for a moment as the camera passes. Glance: pitch 18 degrees up the nearest fall to its lip. Rest pose: position (1.2, 1.7, -3), looking at (-1, 9, -24). The gate stands in front of the largest fall, lit from behind. Overlay: --ink #F4F7FA, --accent #00E5FF, --shade #14171C.
Layout: The grey must stay grey: colored light is limited to the falls, their pools, their mist and what they physically light, so the cyan and magenta read as cuts through a cold monochrome space.
Motion: Streaks fall at 9 units per second. Mist rises 0.6 units per second and fades over 4 s. Rings on the water expand over 1.5 s. The concrete, bridges and steps never move.
18. **World 07: Whale Aurora** — A snow-covered tundra at night under a green and violet aurora, crossed by three whales made of glass that swim slowly through the air. Signature motion: the whales. Build: terrain, a 300 unit plane of 160 by 160 segments with gentle noise hills up to 4 units and a flat frozen lake from z = -12 to z = -30. Snow color runs from #DCE8F5 on moonlit slopes to #6B4BD8 in shadow; the lake ice reflects the aurora colors as soft vertical bands. 120 instanced tufts and stones break the snow near the rail and 14 ice shards (stretched octahedra, 1 to 3 tall, #CFE6FF with a faint inner glow) stand around the lake. Sky: #05070F with a #0E1B2E horizon band and 1,500 stars. Aurora: three curtain ribbons, each 240 long and 40 tall with 128 segments along its length, 80 to 120 units up, folded by two slow sine waves; the shader draws fine vertical rays from noise, colored #3DFFA2 at the lower edge through #19D3C5 to #B39DFF at the top, additive, fading out at both ends. Whales: three, 18, 21 and 24 units long. The body is a lathed profile (blunt head, deep chest, long taper) squashed slightly in width, with two long pectoral fins, a small dorsal fin and broad flukes built from extruded outlines. Material: glass drawn without refraction, 8% base opacity in #CFE6FF, a bright rim at grazing angles shading from #CFE6FF to #B39DFF, eleven faint rib lines inside, and moving specks of the aurora colors along the back as if the sky were caught in it. A traveling sine bends the spine and lifts the flukes once every 8 s; pectoral fins sweep once every 16 s. They follow three wide closed loops 20 to 35 units above the ground at 1.6 units per second; the largest passes 10 units above the rail around the 9th second of each visit, and its glow brightens the snow under it. Directional moonlight #CFE6FF at intensity 0.5 from behind the camera; hemisphere light sky #19D3C5, ground #05070F, intensity 0.5. Fog: exponential, #070B18, density 0.008. Rail: (0, 2.2, 0), (-2.5, 2.6, -9), (2.0, 3.4, -18), (-1.0, 2.8, -28), (0, 2.2, -36). Glance: pitch 20 degrees up to the passing whale. Rest pose: position (0, 2.4, -6), looking at a point 14 degrees up, straight ahead. The gate stands on the far shore of the lake between two ice shards. Overlay: --ink #EAF6FF, --accent #3DFFA2, --shade #05070F.
Layout: The whales are original animals drawn for this site: no saddles, riders, lights, armor or markings, and no resemblance to a creature from an existing film, game or animation.
Motion: Whale body wave 8 s; travel 1.6 units per second; aurora folds drift on 40 s and 65 s sines and its rays shimmer slowly. Stars do not twinkle.
19. **World 08: Clockwork Orchard** — An orchard of thirty brass trees on deep teal ground, built like clocks and all keeping the same time. Signature motion: the tick. Once a second every tree advances one step together. Build: five rows of six trees on a 7 unit grid with up to 0.4 units of jitter, the rail running down the middle row gap. Each tree, about 6 tall: a trunk of four stacked brass cylinders with a #3FC1A5 verdigris collar at each joint; three tiers of straight arms (five, four, then three) radiating from the trunk; a gear at the end of every arm (a toothed disc extruded 0.08 thick, 10 to 18 teeth, radius 0.35 to 0.9), paired with a second gear that meshes with it; one large horizontal crown gear of radius 1.6 at the top; a pendulum with a #C4683A bob hanging under the lowest tier; 60 small round brass leaves on thin stems (1,800 instances in all); and six glass fruit, spheres of radius 0.14 glowing #FFE6A8 with an additive halo. Every third gear is #C4683A. Brass is a matcap material so it looks polished without an environment map or extra lights: paint the matcap on a 256px canvas at start-up, a sphere shaded from #7A5417 at the edge through #D9A441 to a #FFD98A highlight in the upper left with a soft #0E6B66 bounce along the bottom. Ground: #06343B with #0E6B66 moss and thin inlaid brass rails forming concentric circles around every trunk, drawn in the shader. 500 brass-filing points hang in the air and glint. Sky: #052B33 at the top to #0B4A52 at the horizon. Directional light #FFD98A at intensity 1.0 from the upper left; hemisphere light sky #0B4A52, ground #052B33, intensity 0.8. Fog: exponential, #0B4A52, density 0.02. The tick: every 1.0 s each paired gear turns by one tooth, partners turning the opposite way; the crown gear turns 6 degrees; all leaves tilt 6 degrees and settle; the pendulums swing continuously with a 2 s period and are the only parts that never stop. Rail: (0, 2.2, 0), (0.9, 2.0, -9), (-0.9, 2.4, -18), (0.6, 2.8, -27), (0, 2.2, -36). Glance: yaw 10 degrees left, pitch 10 degrees up, into the nearest crown. Rest pose: position (0.8, 2.1, -3), looking at (-1.5, 4, -20). The gate stands at the end of the row; through it is the Citrus Glasshouse, closing the loop from brass and teal back to yellow, green and white. Overlay: --ink #FFF3D6, --accent #FFD98A, --shade #031D22.
Layout: Brass must look polished, not flat yellow: check the matcap highlight is visible on trunks and gear faces from the entry point.
Motion: Each tick moves over 180 ms with cubic-bezier(0.34, 1.56, 0.64, 1), a small overshoot like an escapement landing, then stillness for the rest of the second. The audio tick in this world is scheduled from the same clock. Under reduced motion the tick still happens, without overshoot.
## Assets
- image: No image files of any kind. Every surface, sky, creature and light is drawn at run time with three.js geometry and GLSL. The only textures are painted on in-memory canvases at start-up: one soft round sprite (128px radial alpha) for fog, clouds, halos and flames, the 256px brass matcap for world 8, and the 128px grain tile for the overlay. Do not download models, HDR environments, textures or photographs, and do not embed base64 images. There are no audio or video files either: all sound is generated in the browser with the Web Audio API from the recipes in the Sound section.
- icon: Lucide (ISC), npm package lucide pinned at 0.499.0, imported icon by icon and turned into inline SVG with its createElement helper: pause, play, rotate-3d (Look), volume-x, volume-2, x, chevron-up (world chip), arrow-up-right (mail link). Stroke width 1.5, 18px, currentColor. List the package in ASSETS.md.
- icon: Favicon drawn by hand as public/favicon.svg: a 32px square of #12301F with rounded corners of 7px and an upright capsule outline in #FFC914, 10px wide and 20px tall, stroke 2.5px, centered. No letters.
- font: Fraunces Variable (OFL-1.1, by Undercase Type) from @fontsource-variable/fraunces: import full.css and full-italic.css so the opsz, SOFT and WONK axes are available; family name 'Fraunces Variable'. Preload the latin normal and latin italic woff2 files. List in ASSETS.md.
- font: Manrope Variable (OFL-1.1, by Mikhail Sharanda) from @fontsource-variable/manrope: import index.css; family name 'Manrope Variable'. List in ASSETS.md.
- font: DM Mono (OFL-1.1, by Colophon Foundry) from @fontsource/dm-mono: import 400.css; family name 'DM Mono'. List in ASSETS.md.
## Don'ts
- No start screen of any kind: no loader, spinner, progress bar, splash, 'click to enter' or 'tap to begin', and never a black or blank first frame. The first paint already shows the Citrus Glasshouse colors with the wordmark and intro line, and the first WebGL frame arrives within 2 seconds.
- No backend, server code, API routes, database, auth, cookies, analytics, third-party APIs or forms that submit anywhere. The only outbound link is the mailto address.
- Build static files to dist/ with npm run build. Vite base is './' and every asset path is relative. No source maps, no src/ copied into dist/, dist/ under 20 MB. Any internal link points to a file name such as ./index.html, never to a bare directory.
- Nothing from a CDN: no remote script, stylesheet, font, image or audio. Fonts are self-hosted through the three Fontsource packages only; no commercial or system-default display fonts.
- No model files, HDR environments, texture files, photographs, illustrations, video or recorded audio. Geometry, light and sound are all generated at run time.
- No post-processing library or pass chain, no real-time shadow maps, no transmission or refraction materials, no physics engine. Do not add any dependency beyond the ones listed in the stack.
- Do not change the stack, the eight worlds, their order, their hex palettes or the timeline numbers unless the user asks. Do not add extra pages, a scroll-down section, a newsletter box, pricing tables, testimonials or a cookie banner.
- Keep the gate a plain capsule opening with a thin rim. No swirling vortex, no ring device, no glowing oval pairs in two fixed colors, no runes or machinery, and nothing that recalls a portal from an existing game, film or animation.
- Every world, creature and object is original to this site. Do not recreate recognizable places, characters, creatures, vehicles or shots from any existing film, game, animation or published 3D piece, and do not add people or faces.
- The ambience is drone and texture only: no melody, chord progression, drum pattern, jingle or imitation of any existing piece of music or sound logo. No sound before the visitor switches it on, and the on or off state is always visible.
- No real studio, artist, client, hotel, venue or product names in the copy; every name is invented. Do not mention any AI model, AI company or how the site was made anywhere in the site.
- Nothing moves for decoration. No idle spinning objects, pulsing buttons, parallax on the overlay text, cursor trails, typewriter text or looping interface animations other than the progress tick.
- Must run at 1440x900 and 390x844 with zero console errors or warnings from the app, no horizontal scroll and no page scroll. On phones use the quality tiers (pixel ratio cap, reduced counts), the bottom bar and the bottom sheet; touch targets are at least 44px and nothing depends on hover.
- Respect prefers-reduced-motion exactly as described: still camera, slow cross-fades, no gate fly-through, static grain. Handle a missing or lost WebGL context with the still version, never a white, black or error page.
- Keep all copy, world names, captions and palettes in src/content.ts. When the variable values differ from the defaults, rewrite the intro line and the Studio drawer to fit them; never leave default brand text behind.
- Write an ASSETS.md at the project root listing each font package and the icon package with source, author and license, and stating that every visual and sound is generated in code.
---
Inspired by Hands-off journey through code-drawn 3D worlds linked by portals, with synthesized ambient sound by @Ethan Mollick — https://www.oneusefulthing.org/p/fable-52-and-jagged-agi
— Prompt by VibeFather · https://vibefather.ai/t/3d-portal-worlds-journey · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
# 3D Portal Worlds Journey 完全按照以下描述构建此网站。将 [VARIABLES] 替换为你自己的值;其余内容保持不变。 ## 简介 一段全屏、无需操作的旅程,穿越八个完全用代码绘制、由你飞越而过的门相连的原创 3D 世界,作为 [BRAND] 的首页——一家位于 [CITY] 的虚构氛围视觉工作室。镜头在每个世界中漂移约二十秒,一张标题卡点出地点之名,一道门开启通往下一个世界,镜头随即穿过。它无需任何输入便永远循环。一条纤细的世界索引让访客可以跳转、暂停或切换为拖拽视角,每个世界都有自己生成的氛围音效(未请求前保持关闭),一个 Studio 抽屉承载着工作室为 [VENUES] 提供的服务。页面打开时已身处第一个世界——Citrus Glasshouse:没有开始画面。 - 受众:为共享空间委托或编排屏幕的人(酒店与场馆经理、展览设计师、诊所运营者),以及任何落到页面上、只想看一看的人。他们在最初三秒内,仅凭画面就决定这家工作室是否有品味。 - 目标:让作品自己说话:让访客至少经历两次穿门,让每个世界都令人难忘到足以被命名(“那个有玻璃鲸鱼的”),并让查看价格和给工作室写信只需一次点击。 - 语调:平静、精确、略带干涩。短句,配以具体的名词和数字。没有感叹号,没有炒作词汇,表面上不涉及任何技术:文案谈的是房间、光与时间。 ## 技术栈 - 框架:Vite 5 + TypeScript + three.js - 样式:原生 CSS - 库:three(MIT)、vite(MIT)、typescript(Apache-2.0)、@types/three(MIT)、lucide(ISC)、@fontsource-variable/fraunces(OFL-1.1)、@fontsource-variable/manrope(OFL-1.1)、@fontsource/dm-mono(OFL-1.1) - 构建:`npm run build` → 静态文件输出到 `dist/`。无后端、无服务端代码、无外部 API。 - 初始化设置: - 创建一个 Vite 5 原生 TypeScript 项目(vite 5.4、typescript 5.9、严格模式),不使用任何 UI 框架。一个 HTML 入口 index.html,lang 设为 en。npm 构建脚本为 'tsc --noEmit && vite build'。 - 在 vite.config.ts 中将 base 设为 './',build.outDir 设为 'dist',build.sourcemap 设为 false,build.target 设为 'es2020'。不要将 src/ 复制到 dist/ 中。 - 安装 three 0.179 和 @types/three 0.179,并且只从 three 包中导入。不要使用任何加载器(模型、纹理、音频或字体加载器)、后处理插件或轨道控制器插件;自行编写少量相机和输入代码。 - 在 src/main.ts 中静态导入引擎和 src/worlds/01-citrus-glasshouse.ts。通过旅程引擎中的一张表,用动态 import() 加载世界 2 到 8,使每个世界成为独立的 chunk。 - 安装 lucide 0.499.0,只导入 Assets 中指定的八个图标;使用包中的 createElement 构建每个 SVG。 - 在 src/styles.css 或 main.ts 顶部一次性导入字体:@fontsource-variable/fraunces/full.css、@fontsource-variable/fraunces/full-italic.css、@fontsource-variable/manrope/index.css 和 @fontsource/dm-mono/400.css。为 Fraunces 拉丁文常规体和斜体 woff2 文件添加 link rel=preload 标签。 - 将 GLSL 以模板字符串形式写在世界文件中(或使用 ?raw 导入的 .glsl 文件)。保留一个共享的辅助函数块:hash、value noise、3D simplex noise、抖动函数和雾混合。 - 将覆盖层标记(字标、介绍块、控件、索引栏、底栏)直接放在 index.html 中,使其在 JavaScript 运行前即可绘制;脚本仅附加行为,并从 src/content.ts 填充世界列表。 - 在 :root 上定义 CSS 自定义属性 --ink、--accent 和 --shade,使用世界 1 的值,并用 @property 注册它们以便可以过渡。 - 将所有字符串、世界名称、说明文字和调色板放在 src/content.ts 中,并将变量 [BRAND]、[TAGLINE]、[VENUES]、[CITY] 和 [CONTACT_EMAIL] 放在该文件顶部。 ## 变量 - [BRAND] — 工作室或产品名称(默认:"Slow Meridian")。作为字标、文档标题和 Studio 抽屉中显示。虚构名称;一到三个词。 - [TAGLINE] — 第一个世界之上的介绍语(默认:"Ambient worlds for rooms that need to breathe.")。一句简短的话,最多 50 个字符,在前七秒以斜体大字置于玻璃温室之上。 - [VENUES] — 世界展示的场所(默认:"hotel lobbies, concert halls and waiting rooms")。一个复数名词短语,用于补全 'making real-time scenes for ...'。抽屉中的服务内容和客户列表会改写以与之匹配。 - [CITY] — 所在城市(默认:"Lisbon")。用于介绍眉题和抽屉中。街道地址和客户城镇会改写以适配。 - [CONTACT_EMAIL] — 联系邮箱(默认:"[email protected]")。Studio 抽屉中的 mailto 链接。页面上唯一的外链。 - [CREDIT] — 在页脚保留一个小型 "Template by VibeFather" 链接指向 https://vibefather.ai/t/3d-portal-worlds-journey(默认:是;删除此行即可移除) Pages & Sections 下的文案是按默认值撰写的。如果你的值不同,请为它们重写每一个标题、段落、标签和图片——保持相同的长度、语气和结构。布局、颜色、字体和动效保持所述不变。 将所有文案、图片路径和链接放在一个内容文件中(例如 `src/content.ts`),按区块作为键,以便之后无需改动组件即可替换内容。 ## 设计 ### 颜色 - 面板(Panel)`#0B0F14` — Studio 抽屉、手机底部栏和世界面板的背景,在 20px 背景模糊之上以 78% 不透明度呈现。绝不作为页面背景使用。 - 面板文字(Panel Text)`#F4EFE6` — 面板内的所有文字。 - 面板弱化文字(Panel Muted)`#A9B0B8` — 面板内的次要文字:价格、说明文字、地址。 - 面板细线(Panel Hairline)`rgba(255,255,255,0.16)` — 面板内的 1px 边框和分隔线。 - 浅色墨(Ink Light)`#F6F1E6` — 深色世界(世界 2、4、5、6、7、8)上的叠加文字颜色。每个世界都将 --ink 设为自己下方列出的近白色;此为回退值。 - 深色墨(Ink Dark)`#12301F` — 两个明亮世界(1 和 3 使用下方各自列出的深色墨)上的叠加文字颜色。 - W1 雾(Fog)`#F6F2E3` — 柑橘玻璃温室(Citrus Glasshouse):雾、画布清除色、第一帧之前的页面背景、遮罩色(--shade)。 - W1 天空薄荷(Sky Mint)`#BFE6DC` — 柑橘玻璃温室(Citrus Glasshouse):天空渐变顶部、玻璃色调。 - W1 叶(Leaf)`#1F8A4C` — 柑橘玻璃温室(Citrus Glasshouse):树冠受光面。 - W1 深叶(Deep Leaf)`#0F4D2E` — 柑橘玻璃温室(Citrus Glasshouse):树冠背光面、剪影中的铁肋。 - W1 柠檬(Lemon)`#FFC914` — 柑橘玻璃温室(Citrus Glasshouse):60% 的果实、光束色调。 - W1 橙(Orange)`#FF8A1F` — 柑橘玻璃温室(Citrus Glasshouse):40% 的果实。 - W1 陶土(Terracotta)`#C8643C` — 柑橘玻璃温室(Citrus Glasshouse):花盆和瓷砖过道边缘。 - W1 阳光(Sunlight)`#FFE2A0` — 柑橘玻璃温室(Citrus Glasshouse):平行光的颜色。 - W1 墨(Ink)`#12301F` — 柑橘玻璃温室(Citrus Glasshouse):用于叠加文字的 --ink。 - W1 强调色(Accent)`#E8590C` — 柑橘玻璃温室(Citrus Glasshouse):用于进度刻度、门框和焦点环的 --accent。 - W2 夜靛(Night Indigo)`#0B1340` — 蓝调时刻屋顶(Blue Hour Rooftop):天空顶部。 - W2 电靛(Electric Indigo)`#3B4BD8` — 蓝调时刻屋顶(Blue Hour Rooftop):天空的地平线带、潮湿表面上的轮廓光。 - W2 雾(Fog)`#1A2470` — 蓝调时刻屋顶(Blue Hour Rooftop):雾。 - W2 湿甲板(Wet Deck)`#101736` — 蓝调时刻屋顶(Blue Hour Rooftop):甲板、花箱、城市塔楼。 - W2 窗琥珀(Window Amber)`#FFB347` — 蓝调时刻屋顶(Blue Hour Rooftop):亮起的窗户、串灯;--accent。 - W2 深琥珀(Deep Amber)`#FF7A1A` — 蓝调时刻屋顶(Blue Hour Rooftop):最近的灯及其倒影。 - W2 枝叶(Foliage)`#1E6B5A` — 蓝调时刻屋顶(Blue Hour Rooftop):草和小树。 - W2 雨(Rain)`#AFC4FF` — 蓝调时刻屋顶(Blue Hour Rooftop):雨丝和涟漪环。 - W2 墨(Ink)`#F3EEDF` — 蓝调时刻屋顶(Blue Hour Rooftop):--ink。遮罩(--shade)为 #070B26。 - W3 绿松石(Turquoise)`#0FA3C7` — 天空礁(Sky Reef):天空顶部。 - W3 水色薄雾(Aqua Haze)`#BFF3EC` — 天空礁(Sky Reef):地平线、雾和云影。 - W3 礁石(Reef Rock)`#2B6E86` — 天空礁(Sky Reef):漂浮岩石。 - W3 珊瑚粉(Coral Pink)`#FF5E8A` — 天空礁(Sky Reef):枝状珊瑚和水母辉光。 - W3 珊瑚橙(Coral Orange)`#FF8F5C` — 天空礁(Sky Reef):脑珊瑚和管状簇。 - W3 洋红(Magenta)`#D83A8F` — 天空礁(Sky Reef):扇珊瑚;--accent。 - W3 海青(Sea Teal)`#12C7B2` — 天空礁(Sky Reef):海草带。 - W3 水母(Jelly)`#FFD1E8` — 天空礁(Sky Reef):水母伞盖。 - W3 阳光(Sunlight)`#FFF4E0` — 天空礁(Sky Reef):平行光的颜色。 - W3 墨(Ink)`#06303F` — 天空礁(Sky Reef):--ink(深色,因为此世界是明亮的)。遮罩(--shade)为 #D9F7F2。 - W4 天顶紫(Zenith Violet)`#2B1672` — 盐镜(Salt Mirror):天空顶部。 - W4 玫瑰(Rose)`#B0387F` — 盐镜(Salt Mirror):天空中间带。 - W4 橘(Tangerine)`#FF7A2F` — 盐镜(Salt Mirror):地平线带;--accent。 - W4 日辉(Sun Glow)`#FFD08A` — 盐镜(Salt Mirror):太阳刚刚落下处的辉光、行星环。 - W4 行星受光面(Planet Lit)`#E9C9F2` — 盐镜(Salt Mirror):带环行星的受光面。 - W4 行星阴影(Planet Shadow)`#5B3FA8` — 盐镜(Salt Mirror):行星的暗面。 - W4 雾(Fog)`#C24C7A` — 盐镜(Salt Mirror):雾。 - W4 剪影(Silhouette)`#1C0E3F` — 盐镜(Salt Mirror):石堆和柱子;遮罩(--shade)。 - W4 墨(Ink)`#FFF4E6` — 盐镜(Salt Mirror):--ink。 - W5 拱顶(Vault)`#2A0508` — 群飞图书馆(Murmuration Library):天花板拱顶。 - W5 牛血红(Oxblood)`#5C0F14` — 群飞图书馆(Murmuration Library):墙壁和长地毯。 - W5 雾(Fog)`#3A070B` — 群飞图书馆(Murmuration Library):雾。 - W5 书架木(Shelf Wood)`#3B0A0D` — 群飞图书馆(Murmuration Library):书架、梯子、桌子。 - W5 书脊红(Spine Red)`#A3271F` — 群飞图书馆(Murmuration Library):55% 的书脊(另外 30% 使用 #7A1420,5% 使用 #1F3A3A)。 - W5 镀金(Gilt)`#C8922E` — 群飞图书馆(Murmuration Library):10% 的书脊、阳台栏杆。 - W5 纸(Paper)`#FFF1CF` — 群飞图书馆(Murmuration Library):飞舞的书页;--ink。 - W5 烛金(Candle Gold)`#FFC24B` — 群飞图书馆(Murmuration Library):火焰及其光线;--accent。 - W5 地板(Floor)`#1A0305` — 群飞图书馆(Murmuration Library):地毯外的地板;遮罩(--shade)。 - W6 阴天(Overcast)`#DDE6F0` — 光瀑峡谷(Lightfall Canyon):天空的缝隙。 - W6 雾(Fog)`#8F98A6` — 光瀑峡谷(Lightfall Canyon):雾。 - W6 混凝土浅(Concrete Light)`#B9BEC6` — 光瀑峡谷(Lightfall Canyon):受光的混凝土面。 - W6 混凝土中(Concrete Mid)`#7C838E` — 光瀑峡谷(Lightfall Canyon):大多数墙面。 - W6 混凝土深(Concrete Dark)`#2E333B` — 光瀑峡谷(Lightfall Canyon):底面和深凹处。 - W6 青(Cyan)`#00E5FF` — 光瀑峡谷(Lightfall Canyon):七道光瀑中的四道;--accent。 - W6 洋红(Magenta)`#FF2BD6` — 光瀑峡谷(Lightfall Canyon):七道光瀑中的三道。 - W6 水道(Channel)`#1B1F26` — 光瀑峡谷(Lightfall Canyon):水道。遮罩(--shade)为 #14171C;--ink 为 #F4F7FA。 - W7 夜(Night)`#05070F` — 鲸鱼极光(Whale Aurora):天空;遮罩(--shade)。 - W7 地平线(Horizon)`#0E1B2E` — 鲸鱼极光(Whale Aurora):地平线辉光。 - W7 雾(Fog)`#070B18` — 鲸鱼极光(Whale Aurora):雾。 - W7 极光绿(Aurora Green)`#3DFFA2` — 鲸鱼极光(Whale Aurora):极光下缘;--accent。 - W7 极光青(Aurora Teal)`#19D3C5` — 鲸鱼极光(Whale Aurora):极光中部。 - W7 冰紫(Ice Violet)`#B39DFF` — 鲸鱼极光(Whale Aurora):极光顶部、鲸鱼轮廓光。 - W7 深紫(Deep Violet)`#6B4BD8` — 鲸鱼极光(Whale Aurora):雪地阴影。 - W7 雪(Snow)`#DCE8F5` — 鲸鱼极光(Whale Aurora):月光照到的雪。 - W7 鲸玻璃(Whale Glass)`#CFE6FF` — 鲸鱼极光(Whale Aurora):鲸鱼身体。--ink 为 #EAF6FF。 - W8 深青(Deep Teal)`#052B33` — 发条果园(Clockwork Orchard):天空顶部。 - W8 雾(Fog)`#0B4A52` — 发条果园(Clockwork Orchard):雾和地平线。 - W8 地面(Ground)`#06343B` — 发条果园(Clockwork Orchard):地面。 - W8 苔藓(Moss)`#0E6B66` — 发条果园(Clockwork Orchard):黄铜轨道之间的苔藓。 - W8 黄铜(Brass)`#D9A441` — 发条果园(Clockwork Orchard):树干、齿轮、叶子。 - W8 黄铜浅(Brass Light)`#FFD98A` — 发条果园(Clockwork Orchard):高光;--accent。 - W8 黄铜深(Brass Dark)`#7A5417` — 发条果园(Clockwork Orchard):阴影中的黄铜。 - W8 铜(Copper)`#C4683A` — 发条果园(Clockwork Orchard):每第三个齿轮和摆锤。 - W8 铜绿(Verdigris)`#3FC1A5` — 发条果园(Clockwork Orchard):树干环上的铜锈。 - W8 灯泡(Bulb)`#FFE6A8` — 发条果园(Clockwork Orchard):发光的玻璃果实。--ink 为 #FFF3D6;遮罩(--shade)为 #031D22。 ### 字体排印 - 展示字体(Display):字标、介绍行、世界名称、抽屉标题。Fraunces Variable,font-variation-settings 为 'opsz' 144、'SOFT' 100、'WONK' 0。世界名称字重 300,正体。介绍行字重 300 斜体。字标字重 500。:Fraunces Variable(OFL),字重 300/500 - 正文字体(Text):说明文字、按钮、抽屉正文。正文 16px/24px,控件 14px/20px,字重 400,按钮和索引中的名称字重 500。:Manrope Variable(OFL),字重 400/500 - 等宽字体(Mono):世界编号、倒计时、眉题、价格。12px,letter-spacing 0.08em,眉题大写。:DM Mono(OFL),字重 400 ### 布局与动效 - 间距:以 8px 为基准单位。桌面端覆盖层四边留 40px 边距;手机端留 20px(底部栏为 12px)。卡片槽位最大宽度 620px。控件为 44px 圆形,间距 12px。抽屉宽度 440px,内边距 32px;抽屉内各区块之间以 40px 间距和 1px 细线分隔。页面永不滚动:html 和 body 为 100dvh 且 overflow hidden;只有抽屉和底部面板在自身内部滚动。 - 圆角:控件和手机底部栏为全圆角(999px)。面板:抽屉内侧四角和底部面板顶部四角为 20px。门是一个胶囊形:一个宽 2.6 单位、高 4.4 单位的矩形,其顶部和底部为半径 1.3 的半圆。界面中没有其他圆角形状。 - 动效:旅程时钟:每个世界都运行同一条 22.4 s 时间线。0 到 1.6 s 抵达,2.5 s 标题卡进入,12.5 s 标题卡退出,14.0 s 门开启,20.0 s 接近开始,22.4 s 穿越。八个世界以 179.2 s 循环,永不停歇。 - 动效:相机漂移:相机沿向心 Catmull-Rom 轨道运行。速度为 baseSpeed 乘以 m(t)。m 在前 1.6 s 内以 easeOutCubic 从 3.0 降至 1.0,保持 1.0 直到 20.0 s,然后在 2.4 s 内以 easeInCubic 从 1.0 升至 3.0。baseSpeed 为 railLength / 24.4,约每秒 1.5 单位,因此离开一个世界的速度等于进入下一个世界的速度。 - 动效:门开启:在 14.0 s 时,一条垂直光丝在 1600 ms 内以 cubic-bezier(0.16, 1, 0.3, 1) 扩展为完整的胶囊。随后边缘辉光在 4 s 正弦周期内于 70% 到 100% 不透明度之间呼吸,直到穿越。 - 动效:穿门:2.4 s,以 easeInCubic 加速。在同一 2.4 s 内,覆盖层颜色(--ink、--accent、--shade)、外部雾色调和声音以 cubic-bezier(0.45, 0, 0.55, 1) 交叉淡化。世界切换发生在门平面之前 0.15 单位处,且必须不可见:无闪光、无淡入黑场、无硬切。 - 动效:标题卡进入:编号在 400 ms 内淡入;名称上移 18px 并在 900 ms 内以 cubic-bezier(0.22, 1, 0.36, 1) 淡入,每行错开 80 ms;说明文字在 250 ms 后跟随,历时 600 ms。标题卡退出:700 ms,上移 8px,cubic-bezier(0.4, 0, 1, 1)。每次位置相同。 - 动效:界面:悬停、按下和切换状态耗时 200 ms,使用 cubic-bezier(0.2, 0, 0, 1)。抽屉和底部面板以 520 ms 滑入,使用 cubic-bezier(0.22, 1, 0.36, 1),以 320 ms 滑出,使用 cubic-bezier(0.4, 0, 1, 1)。 - 动效:观察模式:拖拽输入以 120 ms 的指数半衰期平滑。当观察模式关闭,或接近开始时,视图在 1200 ms 内以 easeOutCubic 回到轨道方向。 - 动效:每个世界有一个标志性动效,在各世界章节中命名。世界中的其他一切要么静止,要么仅因该动效而运动(叶子因雾经过而移动,倒影因雨滴落下而移动)。没有任何东西为装饰而旋转、脉动或漂浮,除进度刻度外,没有任何界面元素循环动画。 - 动效:减少动态效果:相机静止在每个世界的静止姿态,世界每 20 s 以 2500 ms 交叉淡化切换,世界内动效以 40% 速度运行,标题卡淡入淡出但不移动,胶片颗粒为静态。 - 图像:不使用任何图像、模型、纹理或音频文件。每个世界在运行时由 three.js 图元、实例化网格、噪声位移几何体、点和少量 GLSL 着色器构建;任何精灵或 matcap 纹理都在启动时绘制到内存画布上。无阴影贴图、无透射材质、无后处理通道:辉光为加法几何体,深度为雾。所有天空和雾渐变都添加一步哈希抖动,使暗色渐变永不出现色带。胶片颗粒层位于画布之上:启动时在画布上绘制的 128px 噪声瓦片,作为 CSS 背景以 6% 不透明度、mix-blend-mode overlay 使用,每秒偏移到新位置 8 次。柔和暗角(径向渐变,透明至四角 22% 黑色)位于覆盖层文字下方。左下角文字后方有一层遮罩:当前世界 --shade 颜色的径向渐变,角落处 72%,在视口宽度的 60% 处渐隐为 0,强度足以让说明文字在每个世界中保持至少 4.5:1 的对比度。 ## 页面与区块 ### [BRAND] · 环境世界(`index.html`) 1. **舞台与首帧** — 页面是一个全屏 WebGL 场景,上面覆盖着一层轻量界面。没有开始屏幕、没有加载器、没有进度条、没有旋转指示器,也没有点击进入状态。访客看到的第一眼就是 Citrus Glasshouse 的内部,摄像机已经在沿过道漂移,[BRAND] 字标位于左上角,介绍语位于左下角。从 0 秒起的任意时刻截取的静态截图都必须看起来像一张完成的海报。为保证这一点:(1) index.html 以真实 HTML 形式提供字标、介绍区块和控件,由随页面加载的 CSS 进行样式化,因此在任何脚本运行之前它们就可见。(2) 在第一个 WebGL 帧之前,html 有一个 CSS 背景来替代玻璃温室:从顶部的 #BFE6DC 到 55% 处的 #F6F2E3 的线性渐变,右上角有 20% 不透明度的 #FFC914 径向辉光,底部有 18% 不透明度的柔和 #1F8A4C 色带。画布清除色为 #F6F2E3。(3) 引擎和 Citrus Glasshouse 模块位于入口包中并同步构建;其他七个世界是独立的懒加载块。(4) 在中端笔记本电脑上,第一个 WebGL 帧必须在导航后 2 秒内出现在屏幕上,在中端手机上必须在 3 秒内。在开发中使用 performance.now() 测量,并削减玻璃温室细节直到达标。(5) 字体使用 font-display swap,并且两个 Fraunces 拉丁字体文件已预加载,因此文本从不等待字体。文档标题为 '[BRAND] · Ambient worlds'。如果地址带有诸如 #/salt-mirror 的哈希,旅程将从该世界开始,在其块加载完成之前显示该世界的天空渐变作为 CSS 背景;没有哈希时,它总是从世界 1 开始。每次穿越时使用 history.replaceState 更新哈希。 布局:从后到前的图层:html 背景渐变;canvas#stage 固定,inset 0;暗角;颗粒;遮罩;div#ui 固定,inset 0,pointer-events none(作为控件的子元素设置 pointer-events auto);抽屉和面板。摄像机:透视,横向时垂直视场角 55 度,视口高度大于宽度时 72 度,近裁剪面 0.1,远裁剪面 600。渲染器:无色调映射,sRGB 输出,仅在起始质量层级为高时开启抗锯齿。通过更新尺寸、宽高比、视场角和渲染目标尺寸来处理调整大小和方向变化。当 document.hidden 时暂停动画循环并挂起音频。将帧增量限制在 50 ms。 动效:画布不会淡入;CSS 替代背景只是被第一个渲染帧替换,该帧使用相同的颜色,因此变化读起来像是画面变清晰了。 2. **旅程引擎** — src/engine/journey.ts 拥有一个时钟和一个状态机:漂移、接近、穿越。每个世界模块导出相同的接口:id、slug、name、caption、palette、rail(五个控制点)、用于减少动态效果的静止姿态、可选的 glance、异步 init(ctx),它分步构建场景,并在某一步使用超过 8 ms 时让出到下一个动画帧,update(time, delta, quality)、setQuality(tier)、dispose() 和 createAmbience(audioContext, output)。所有世界共享同一坐标约定,使引擎保持简单:摄像机从 (0, 2.2, 0) 进入,面向负 Z 方向,门位于 (0, 2.2, -36),面向摄像机。轨道是一条穿过世界五个点的向心 Catmull-Rom 曲线,按弧长采样。摄像机看向轨道前方 7 个单位处的点;在接近过程中,这混合为直视负 Z 方向,以便正对门。一个世界可以定义一个 glance:在 6 秒到 12 秒之间,视图以固定的偏航角和俯仰角转向该世界的主要主体再转回,每程 3 秒,使用 easeInOutSine。在 9 秒正弦上 0.06 个单位的垂直呼吸浮动可防止画面感觉被锁定在轨道上。为下一个世界安排时间表:在 4 秒时开始其动态导入,从 8 秒开始运行 init,在 14 秒之前为其调用 renderer.compileAsync,以便门打开时从不卡顿。只有两个世界同时存活:当前世界和门后的世界。穿越后,旧世界被释放(几何体、材质、画布纹理、渲染目标),并且 renderer.info.memory 必须在每次循环中返回相同的数字。世界 8 之后,门通向世界 1。每个世界使用一个带种子的伪随机生成器(mulberry32,种子 = 世界编号乘以 1000),以便每次访问构建完全相同的场景。 布局:无可见界面。文件:src/main.ts、src/content.ts(所有文案、世界名称、说明和调色板集中在一处)、src/engine/(journey、rail、gate、quality、input)、src/worlds/(每个世界一个文件)、src/audio/(引擎和共享辅助函数)、src/ui/(chrome、card、index、sheet、drawer)、src/styles.css。 动效:速度曲线与设计动效列表完全一致:3.0x 在 1.6 秒内缓降到 1.0x(easeOutCubic),1.0x 直到 20.0 秒,在 22.4 秒前升到 3.0x(easeInCubic)。每帧将距离积分为 baseSpeed * m(t) * delta。 3. **门** — 门是世界之间的传送门,也是站点中唯一的过渡。它是一个普通的直立胶囊形开口,宽 2.6 个单位,高 4.4 个单位,立于轨道尽头的地面上,边缘厚 0.03 个单位,使用下一个世界的强调色,并带有 0.5 个单位宽、25% 不透明度的柔和加色光晕。它没有框架、机械结构、符文、漩涡或粒子。从它打开的那一刻起,下一个世界就透过它可见,实时且具有正确的视差。实现:将下一个世界渲染到一个 WebGLRenderTarget 中,使用第二个摄像机,其旋转等于主摄像机的旋转,其位置等于主摄像机位置减去门位置再加上下一个世界的入口位置 (0, 2.2, 0);胶囊网格使用 ShaderMaterial,以屏幕空间坐标(gl_FragCoord.xy 除以绘制缓冲区尺寸)采样目标,并以 colorspace_fragment include 结尾,以便透过门看到的像素在交换后具有完全相同的值。当设备可以渲染到半浮点目标时使用半浮点目标,否则使用 8 位;给它一个深度缓冲区;高层级 4 个采样,其他为 0。目标仅从 14.0 秒起渲染。其尺寸为绘制缓冲区乘以层级系数(高 0.75,中 0.5,低 0.35),并在接近的最后 1.2 秒内渐变到 1.0,以便交换时没有任何东西变清晰。当摄像机距离门平面 0.15 个单位时,交换:下一个世界成为当前场景,主摄像机采用第二个摄像机的位置,旅程时钟重置为 0,旧世界在下一个空闲帧被释放。通过前后各步进一帧来检查交换:亮度、饱和度、位置或清晰度不得有跳变。在接近过程中,当前世界的雾色向下一世界的雾色移动 40%,因此周围环境在摄像机离开之前就开始呈现目的地的特征。 布局:世界空间:中心 (0, 2.2, -36),面向正 Z 方向。每个世界在门前留出一条宽 5 个单位、高 6 个单位的畅通走廊,以便没有任何东西与它相交,并在两侧放置自己的东西(玻璃温室的最后一道拱门、屋顶女儿墙、两条珊瑚臂等),使门看起来像是立在这个地方,而不是贴上去的。 动效:打开:scale X 在 1600 ms 内从 0.01 到 1,使用 cubic-bezier(0.16, 1, 0.3, 1),同时 scale Y 保持 1,因此它开始时是下一个世界光线的一丝细线。边缘光晕在 4 秒正弦上以 70% 到 100% 呼吸。从索引跳转会召唤一个临时门,位于摄像机当前朝向前方 10 个单位处:600 ms 打开,使用相同曲线,然后 1800 ms 直线接近,使用 easeInCubic;召唤穿越后,视图在 1200 ms 内缓动到新轨道的方向,使用 easeOutCubic。 4. **质量层级与手机** — 整个旅程必须在中等手机上保持稳定帧率。src/engine/quality.ts 选择一个起始层级,且只能逐级下调。当指针为粗略指针、视口较短边小于 768px,或 navigator.hardwareConcurrency 为 4 或更低时,从 medium 开始;否则从 high 开始。High:像素比上限 1.75,粒子与实例数量为 100%,gate 目标系数 0.75。Medium:像素比上限 1.5,数量为 50%,系数 0.5,地形与帘幕网格的段数为一半。Low:像素比 1.0,数量为 30%,系数 0.35,点光源缩减为最近的两个。监视器对 120 帧的帧时间取平均,忽略接近阶段;如果连续两个窗口的平均值高于 22 ms,就下调一个层级,且在该会话中永不回升。数量通过 InstancedMesh.count 和几何体绘制范围改变,绝不重建。所有粒子运动(雨、雾、尘、盐、锉屑、星辰)都在顶点着色器中根据时间 uniform 和每粒子种子计算,没有逐帧缓冲区上传;只有页面鸟群、水母和鲸鱼在 CPU 上更新矩阵。监听 webglcontextlost(阻止默认行为,停止循环)和 webglcontextrestored(重建当前世界并继续);上下文丢失绝不能留下白屏或黑屏。 布局:无可见界面。下面各世界章节中的每世界数量均为 high 层级数值。 5. **叠加界面** — 纤细而安静。所有叠加文字使用当前世界的 --ink 颜色,所有细线、进度刻度和焦点环使用 --accent;accent 从不承载文字。左上角:字标 '[BRAND]',Fraunces 500,22px(手机上 18px)。右上角:文字按钮 'Studio',Manrope 500,14px,带 1px 下划线,悬停时从左向右绘制;它打开 Studio 抽屉。左下角:卡片槽位。首次加载时,槽位放置介绍块,从第一帧绘制起就可见:眉题用等宽字体 'AMBIENT VISUALS STUDIO · [CITY]'(大写),然后是标题 '[TAGLINE]',Fraunces 300 斜体,字号 clamp(36px, 5vw, 72px),行高 1.02,字距 -0.02em,桌面上每行最多 13 个字符,然后是一行 Manrope 16px:'Eight worlds, drawn live in your browser. It plays on its own; sound is off until you ask.' 介绍块保留到 7.0 s,在 700 ms 内淡出,世界 1 的首个标题卡在 8.0 s 出现,而不是 2.5 s。每次页面加载只显示一次。右下角(桌面):三个圆形 44px 控件,1px 边框为 --ink 的 35% 不透明度,无填充:暂停或播放、查看、声音。声音控件旁边有一个等宽标签始终陈述真实状态:'Sound off' 或 'Sound on'。桌面悬停时在每个控件上方显示一个小等宽标签:'Pause'、'Drag to look'、'Sound'。每个控件都是带 aria-label 和 aria-pressed 的按钮,具有可见的 2px --accent 焦点环,偏移 3px,并可通过键盘操作。 布局:桌面 1440x900:字标位于 left 40、top 32。Studio 按钮位于 right 40、top 34。卡片槽位位于 left 40、bottom 56。控件位于 right 40、bottom 40,排成一行,间距 12px,Sound 标签位于该行左侧。世界索引栏位于 right 40,垂直居中(下下节)。手机 390x844:字标位于 left 20、top 18;Studio 位于 right 20、top 20。三个控件移入底部栏:固定于 left 12、right 12、bottom 12 加安全区域内边距,高度 56,完全圆角,Panel 颜色 78%,20px 背景模糊,细线边框。栏的左侧是世界芯片,一个按钮,显示等宽 '01/08'、世界名称(Manrope 500 14px,放不下时省略)和倒计时;右侧放置暂停、查看和声音,作为 44px 图标按钮,无边框(声音开启时,Sound 标签由图标变化加一个 6px --accent 圆点替代)。卡片槽位位于 left 20、right 20、bottom 92。 动效:叠加颜色随世界交叉淡入淡出:用 @property 将 --ink、--accent 和 --shade 注册为颜色,并在接近阶段开始时以 cubic-bezier(0.45, 0, 0.55, 1) 在 2400 ms 内过渡。控件悬停:边框变为 100% 不透明度,图标上移 1px,200 ms。 6. **标题卡** — 每个世界在卡片槽位中显示一张标题卡:一行等宽字体显示其编号('03 / 08'),其名称用 Fraunces 300,字号 clamp(44px, 6.2vw, 96px),行高 0.95,字距 -0.025em,以及一行说明文字,Manrope 16px/24px,每行最多 34 个字符。默认世界的名称与说明:01 Citrus Glasshouse,'Morning fog, eighteen citrus trees and nothing due until noon.' 02 Blue Hour Rooftop,'Rain on the planters, and every window across the street still lit.' 03 Sky Reef,'Coral with no sea around it, and jellyfish keeping the tide.' 04 Salt Mirror,'Two dusks, one above the other, under a planet with rings.' 05 Murmuration Library,'After closing, the pages leave their books and fly as one.' 06 Lightfall Canyon,'Concrete sixty meters high, and light poured down it like water.' 07 Whale Aurora,'Glass whales cross the tundra once the sky turns green.' 08 Clockwork Orchard,'Thirty brass trees, wound each evening, ticking toward harvest.' 名称和说明描述的是世界,而非品牌,因此当变量改变时它们保持不变;只有当用户替换某个世界时才重写它们。 布局:始终位于卡片槽位中,左对齐,底部锚定,因此名称向上增长,说明文字的基线永不移动。手机上名称为 clamp(40px, 11vw, 56px),可换行至两行。卡片为 aria-live polite,以便屏幕阅读器每个世界只读一次。 动效:2.5 s 进入:编号在 400 ms 内淡入;名称的每一行上升 18px 并在 900 ms 内淡入,缓动为 cubic-bezier(0.22, 1, 0.36, 1),第二行晚 80 ms;说明文字在名称之后 250 ms 开始,在 600 ms 内淡入。12.5 s 退出:整张卡片上移 8px 并在 700 ms 内淡出,缓动为 cubic-bezier(0.4, 0, 1, 1)。它在 gate 于 14.0 s 打开前 0.8 s 消失,让视线为 gate 留出空间。暂停时当前卡片保留;跳转后新卡片遵循正常的 2.5 s 时序。 7. **世界索引** — 唯一的导航。桌面:一个垂直栏,八行,每行 28px。每行右端以一个刻度结束:宽 16px,高 1.5px,--ink 45%。当前世界的刻度宽 40px;在其上方,一个 --accent 条在世界持续的 22.4 s 内从左向右填充(scaleX,线性),其左侧该行显示等宽编号、名称(Manrope 500 13px)和到穿越的等宽倒计时('0:14')。其他七个标签隐藏,直到指针进入该栏或某行获得键盘焦点;然后所有标签出现,使该栏读起来像列表。点击某行通过召唤的 gate 跳转到该世界(见 Gate);点击当前行无操作。如果目标 chunk 仍在加载,该行的刻度显示一个移动的 8px --accent 段,直到就绪,同时旅程继续。手机:该栏由底部栏中的世界芯片替代。点击它打开一个底部面板,标题为 'Eight worlds',八行,每行 60px:等宽编号、名称(Manrope 500 16px)、说明文字(Panel Muted 13px,单行省略),以及该世界三种最强颜色的三个 10px 圆点;当前行左边缘有 2px --accent 条,右侧有倒计时。点击某行关闭面板并跳转。 布局:栏:right 40,垂直居中,行右对齐,点击区域为整行宽度(标签显示时至少 220px)。面板:Panel 颜色 78%,20px 模糊,顶部圆角 20px,高度适应内容,最大 76dvh,一个 36px x 4px 的抓取手柄,20px 侧内边距;其后为 40% 黑色背景。点击背景、按 Escape、点击关闭按钮以及向下拖动超过 80px 时关闭。当面板或抽屉打开时,焦点被限制在其中,关闭时返回打开者。 动效:栏标签在 180 ms 内淡入,从当前行向外以 24 ms 交错,从右侧移动 6px。面板以 cubic-bezier(0.22, 1, 0.36, 1) 在 520 ms 内上滑,以 cubic-bezier(0.4, 0, 1, 1) 在 320 ms 内下滑;拖动时跟随手指。 8. **暂停、观察模式与输入** — 暂停会将相机和旅程时钟精确保持在当前位置;世界仍在运转(雨继续下落,书页继续翻飞),声音继续播放,因此暂停的世界就像一个静止的、会呼吸的背景。暂停控件切换为播放图标,进度刻度停止。观察模式:旅程沿其轨道继续,但访客可以用鼠标或单指拖动来转动视角:偏航每侧最多 110 度,俯仰最多 45 度,每像素 0.18 度,方向反转,如同拖动一张照片。观察控件在开启时显示 aria-pressed 和一个填充的 --accent 圆环,画布上的光标为 grab 或 grabbing。首次开启观察模式时,控件上方会显示一条等宽提示 'Drag to look around',持续 2.5 秒。当一次接近开始时,视角会缓动回轨道方向,使每次穿越都是正对的,访客的偏移会在新世界到达后恢复。在引导模式下拖动画布无任何效果。键盘:Space 暂停或播放,L 观察模式,M 声音,右箭头或下箭头下一个世界,左箭头或上箭头上一个世界,数字 1 到 8 跳转,Escape 关闭抽屉或面板。跳转总是恢复播放。穿越期间的跳转请求会被忽略,直到穿越完成。 布局:在画布上使用 Pointer Events 配合 setPointerCapture。仅在观察模式开启时对画布设置 touch-action none。所有触摸目标至少 44px。不依赖悬停。不使用指针锁定,不请求全屏,不弹出设备方向权限提示。 动效:观察输入以 120 ms 半衰期平滑。返回轨道方向耗时 1200 ms,使用 easeOutCubic。 9. **声音** — 每个世界都有自己生成的氛围声,仅由 Web Audio 节点构建:振荡器、来自生成缓冲区的滤波噪声、增益包络和一个共享混响。不录制任何内容,不加载任何内容。加载时声音关闭。AudioContext 在首次激活声音控件时创建,绝不提前,标签变为 'Sound on'。信号路径:每个氛围声有自己的增益,馈入主增益 0.5、一个压缩器(阈值 -18 dB,比率 3)和目的地;每个氛围声的 35% 还发送到一个卷积器,其脉冲响应在启动时生成:3.2 秒的立体声白噪声乘以 (1 - t/3.2) 的 2.6 次方,并经过温和的低通滤波。开启时主增益在 1.5 秒内淡入;关闭时在 0.4 秒内淡出,然后挂起上下文。在每个门处,两个氛围声在 2.4 秒的接近过程中以等功率交叉淡化,旧的在穿越后 0.5 秒断开并停止。配方是持续音和纹理,不是曲调:没有旋律,没有节奏,除了果园的时钟滴答,没有声音标志。随机事件使用世界的种子生成器。配方(频率单位 Hz,增益相对于氛围声增益):01 Citrus Glasshouse:196 和 293.66 的正弦波,带 0.07 Hz 的起伏;900 Hz 的带通噪声,增益 0.015,作为空气声;每 2.5 到 6 秒一次柔和的玻璃叮声,正弦波 1568、1760、2093 或 2349,8 ms 起音和 1.4 秒衰减,增益 0.05。02 Blue Hour Rooftop:雨声为 1800 Hz 高通白噪声,增益 0.05;140 Hz 低通布朗噪声,增益 0.08;110 和 164.81 的三角波通过 600 Hz 低通;每 0.4 到 1.6 秒一滴水声,正弦波在 900 到 1400 之间,60 ms 内下降 30%。03 Sky Reef:146.83、220 和 329.63 的正弦波对,每对失谐 3 音分以缓慢拍频;噪声在 400 Hz 附近带通,中心以 0.05 Hz 在 300 到 600 之间扫动;每 1.5 到 4 秒一个气泡,正弦波在 120 ms 内从 400 滑到 900。04 Salt Mirror:55 和 82.41 的正弦波;110 的锯齿波通过谐振低通,以 0.03 Hz 在 180 到 420 Hz 之间扫动;2637 的正弦波,增益 0.004,带 0.2 Hz 颤音;无事件。05 Murmuration Library:130.81 和 196 的正弦波;书页翻动为 40 到 90 ms 的噪声脉冲,2500 Hz 带通,带 28 Hz 幅度颤动,每 2 到 5 秒成簇出现 3 到 7 次,当鸟群靠近相机时更响。06 Lightfall Canyon:73.42 的锯齿波通过 300 Hz 低通,加上 146.83 的正弦波;两个噪声源通过窄带通(Q 8),分别在 1200 和 1790 Hz,以 11 秒和 17 秒的正弦波漂移 6%,像落光一样的音调嘶声。07 Whale Aurora:98、147 和 246.94 的正弦波;6000 Hz 高通噪声,增益 0.006,带 0.1 Hz 颤音;每 9 到 16 秒一次长鸣,正弦波在 6 秒内从 220 滑到 330 再到 262,带 4 Hz 颤音,增益 0.03,大部分为混响。08 Clockwork Orchard:87.31、130.81 和 174.61 的正弦波;每 1.0 秒一次滴答(4 ms 噪声脉冲通过 3200 Hz 带通,增益 0.05),半秒处通过 2400 Hz 有更柔和的嗒声;每 7 到 12 秒一次铜钟声,正弦波 523.25 和 784,加上较低者 2.76 倍的分音,2.2 秒衰减。 布局:控件位于右下角集群(手机上为底部栏)。关闭时图标为 volume-x,开启时为 volume-2。状态在桌面端始终以文本可见,在手机上以图标加圆点显示。 动效:主增益淡入 1.5 秒,淡出 0.4 秒,门交叉淡化 2.4 秒等功率。在访客要求之前,不播放任何声音,也不存在 AudioContext。 10. **工作室抽屉** — 这正是让页面成为工作室主页的关键。'Studio' 按钮打开一个抽屉,同时旅程在它后面继续播放。内容从上到下。标题使用 Fraunces 300,34px:'[BRAND] draws ambient worlds for rooms.' 段落:'We are a two-person studio in [CITY], making real-time scenes for [VENUES]. Each world is drawn in code while you watch, so it never repeats exactly and it can run for months on a small computer behind a wall. The eight on this page are the current catalogue.' 区块 'Ways to work with us',三行,每行包含名称、等宽价格和一行说明:'License a world'、'from $1,800 per screen, per year'、'Any of the eight, tuned to your screen size, brightness and opening hours.' 然后是 'Commission a world'、'from $14,000, six weeks'、'A new place drawn for your space, with its own palette and soundscape.' 然后是 'Install and care'、'$320 per month'、'A silent player, remote monitoring and a seasonal refresh.' 区块 'Rooms we have filled',四行,每行包含名称和等宽细节:'Hotel Almadra, Porto'、'Salt Mirror on a 9 m lobby wall';'Kestrel Hall, Leeds'、'interval visuals for 62 concerts';'Vale Sereno Clinic, Braga'、'Sky Reef in three waiting rooms, sound off';'Nordlys Sauna Club, Tromsø'、'Whale Aurora across a 14 m ceiling'。这四个均为虚构。区块 'Write to us':一个指向 [CONTACT_EMAIL] 的 mailto 链接,使用 Fraunces 300,26px,带 arrow-up-right 图标;然后是 'Founded by Inês Carvalhal and Tobias Wren.';'18 Rua do Limoeiro Alto, [CITY]';'Studio visits Tuesday to Thursday, 10:00 to 17:00, by appointment.' 最后一行使用 Panel Muted 13px:'Everything on this page is drawn at run time. No model files, no textures, no recordings.' 如果使用了可选的 [CREDIT] 行,它放在该句下方,样式相同。当变量描述不同类型的业务时,重写此抽屉中的每个句子,保持相同的四个区块和行数。 布局:桌面端:固定在右边缘,440px 宽,全高,Panel 颜色 78% 不透明度,20px 模糊,左侧圆角 20px,32px 内边距,内部滚动;场景在其左侧保持可见,抽屉打开时索引轨道和控件隐藏。右上角有一个 44px 的圆形关闭按钮(x 图标)。手机端:抽屉变为全高面板,20px 内边距,相同内容单列排列。桌面端行是两列(名称在左,等宽细节在右),手机上堆叠。抽屉中任何地方都没有照片、头像或标志。 动效:从右侧滑入,520 ms,cubic-bezier(0.22, 1, 0.36, 1)(手机上从底部);各区块以 60 ms 间隔淡入。退出 320 ms,cubic-bezier(0.4, 0, 1, 1)。通过 Escape、关闭按钮和点击外部关闭。 11. **减少动态效果与回退** — 当设置了 prefers-reduced-motion 时:相机不移动。每个世界从其静止姿态(在每个世界部分给出)显示 20 秒,然后下一个世界在 2500 ms 内交叉淡化进入:将下一个世界渲染到门目标,并用全屏四边形在帧上混合。不绘制门,不加速任何东西。世界内部的运动以 40% 速度运行,标题卡淡入淡出但不移动,颗粒不偏移,进度刻度仍然填充。观察模式、暂停、索引和声音仍然有效;跳转是 1200 ms 的交叉淡化。如果页面打开时偏好改变,在下一个穿越时切换。如果 WebGL 不可用或渲染器无法创建,捕获错误并运行静态版本:页面背景变为当前世界的天空渐变(来自其调色板的顶部、中部和底部颜色),标题卡和索引在相同的 22.4 秒时钟上工作,观察控件隐藏,介绍下方一行等宽文字显示 'Showing stills: 3D is switched off in this browser.' 两种模式下控制台均无错误。 布局:每种模式下都是相同的叠加布局。 12. **世界 01:柑橘玻璃温室(Citrus Glasshouse)** — 一座长长的桶形拱顶玻璃温室,矗立在一座漂浮于晨雾中的土岛上。这是网站的第一帧,因此它得到最多的用心。标志性动态:雾团在玻璃外滑过,使室内的光柱缓慢变亮和变暗。构建:一块 46 长、16 宽的岛板(一个边缘经噪声位移的盒子,其底面逐渐收窄至下方 9 单位处的一个参差不齐的尖端,颜色 #0F4D2E 渐隐入雾)。其上,12 根半径为 6 的半环铁肋,从 z = 2 到 z = -36.5 以 3.5 的间距排列,由 7 根细檩条连接,颜色 #0F4D2E。玻璃:肋上覆盖一个半圆柱, #BFE6DC 以 10% 不透明度,并带有在掠射角升至 35% 的视角边缘。地面:一条 3 单位宽的浅色石砖过道(#F6F2E3 与深 6% 的交替色),边缘镶有 0.3 宽的 #C8643C 条带,中央有一条 0.4 宽的静水渠反射天空渐变。树木:两排各九棵,位于 x = -3.2 和 x = 3.2,从 z = -2 起每 4 单位一棵,每棵栽于 0.9 高的赤陶盆中:略微弯曲的树干,树冠由三个合并的噪声位移二十面体组成,直径约 2.6,顶点颜色上部混合 #1F8A4C、下部 #0F4D2E。果实:252 个实例化球体,半径 0.11,每棵树 14 个位于树冠表面,60% 为 #FFC914 拉伸至 1.25 高作为柠檬,40% 为 #FF8A1F 作为橙子,另有 40 个落果沿过道边缘分布。一根带有五个柠檬的额外枝条悬挂入画,位于 (-1.3, 2.4, -3.2),使第一帧的前景中就有果实。光照:半球光天空 #F6F2E3,地面 #BFE6DC,强度 1.1;平行光 #FFE2A0,强度 1.4,来自 (8, 14, 4)。五道光柱:长叠加四边形,从屋顶到地面倾斜 35 度, #FFC914 与白色以 50% 混合,不透明度 10%。60 个花粉点在各光柱内飘移。外部:天空渐变 #BFE6DC 至 #F6F2E3,以及六个大型柔和雾精灵(在画布上绘制的径向 alpha)沿正 X 方向以每秒 0.3 单位移动,距玻璃 9 至 20 单位。雾:指数雾, #F6F2E3,密度 0.028。当一个雾精灵经过太阳方向与某光柱之间时,该光柱的不透明度缓降至 4%,树冠顶点以 5 秒正弦摆动 0.03 单位,仿佛通风口已打开。轨道:(0, 2.2, 0), (-0.8, 1.8, -9), (0.9, 2.0, -18), (-0.4, 2.6, -27), (0, 2.2, -36)。无瞥视。静止姿态:位置 (0.6, 2.0, -3),看向 (0, 2.3, -30)。大门立于最后一根肋下。叠加:--ink #12301F, --accent #E8590C, --shade #F6F2E3。 布局:1440x900 下的第一帧构图:过道从底部中央延伸至略高于中部的消失点;树列框住两侧;肋拱在头顶;至少三道光柱横穿过道;前景柠檬枝位于左上三分之一处,且不遮挡左下角的介绍文字。在 390x844 下,72 度视场角使两排树都保持在画面内。 动态:雾精灵每秒 0.3 单位;光柱不透明度在 2 秒内以 easeInOutSine 变化;岛屿以 11 秒正弦上下浮动 0.2 单位,应用于外部雾和天空,而非相机。 13. **世界 02:蓝调时刻屋顶(Blue Hour Rooftop)** — 日落刚过的雨后屋顶花园,四周是亮着窗户的城市。标志性动态:雨,以及它引起的一切(甲板上的涟漪环、从串灯上滑落的水滴)。构建:一个 30 宽、44 长的甲板, #101736,带有湿表面着色器:深色基底、 #3B4BD8 的视角光泽、根据灯位解析计算出的琥珀色灯光的垂直模糊反射,以及任意时刻由单元格和时间的哈希值放置的 24 个扩散涟漪环。十二个凸起花箱,1.2 宽、0.7 高,在栏杆两侧排成两条交错线,填满 2,400 个实例化草叶(#1E6B5A,尖端受光 #3B4BD8)和六棵小型多干树。一个木制凉棚从 z = -14 到 z = -24,承载三串悬链线灯串,共 40 个灯泡(自发光 #FFB347 球体,半径 0.06,带叠加光晕精灵),其下有三盏点光源 #FF7A1A,强度 12,距离 14。一个带支腿的圆柱形水箱位于 (-9, 0, -20),屋顶边缘有一道 1.1 高的女儿墙。城市:70 座实例化塔楼,距离 40 至 160 单位,高 20 至 90, #101736,带有着色器窗户网格,其中 22% 的单元格亮着 #FFB347,约 3% 的亮窗在访问期间会开关一次。雨:6,000 条短线段, #AFC4FF 以 55% 不透明度,以每秒 14 单位下落并带有轻微倾斜,包裹在一个跟随相机的 30 x 18 x 30 盒子中。天空:顶部渐变 #0B1340 至地平线 #3B4BD8,带抖动。半球光天空 #3B4BD8,地面 #0B1340,强度 0.9。雾:指数雾, #1A2470,密度 0.022。轨道:(0, 2.2, 0), (2.2, 2.0, -8), (-1.8, 2.3, -17), (1.2, 2.6, -27), (0, 2.2, -36)。瞥视:向左偏航 12 度,向上俯仰 4 度,朝向串灯。静止姿态:位置 (1.5, 2.1, -6),看向 (-1, 2.6, -22)。大门立于远处的女儿墙处,背后是城市天际线。叠加:--ink #F3EEDF, --accent #FFB347, --shade #070B26。 布局:到达后的第一秒内必须有琥珀色存在:两个串灯泡及其甲板反射位于入口点 8 单位以内。 动态:雨每秒 14 单位;涟漪环在 900 毫秒内从 0 增长到 0.5 单位并淡出;串灯以 3.5 秒正弦摆动 2 度,每串相位不同;草向雨倾斜的反方向倾斜 4 度,带有 2 秒阵风周期。 14. **世界 03:天空礁(Sky Reef)** — 一片没有海洋的珊瑚礁:五座礁岛悬挂在开阔的绿松石色天空中,下方是云层地面,水母在它们之间漂移。标志性动态:水母,脉动并上升。构建:五座 #2B6E86 岩石岛屿(细节级别 3 的二十面体,经 3D 噪声位移,顶部压平,底部拉出成悬挂尖塔),直径 8 至 14 单位,位于 (-7, 1, -8), (6, 3, -15), (-5, 5, -22), (7, 4, -29) 和 (0, 0, -38,最大的一座,为大门留出一道缺口)。珊瑚,全部实例化并设定种子:90 株枝状珊瑚(由渐细圆柱合并成的树,四层深)为 #FF5E8A;60 株脑珊瑚(噪声沟槽球体)为 #FF8F5C;50 株扇珊瑚(平圆盘,径向肋在着色器中由 alpha 切割)为 #D83A8F;70 簇管状珊瑚为 #FF8F5C,尖端 #FFD1E8;300 条海草带为 #12C7B2,如在水流中般摆动。水母:36 只,伞盖直径 0.5 至 1.4。每个伞盖是一个半球,其边缘在顶点着色器中每 2 秒收缩和放松(快速收缩,缓慢释放);每只水母有六条 2 至 4 单位长的带状触手,以行波正弦拖曳。材质: #FFD1E8 以 35% 不透明度,在掠射角带有叠加的 #FF5E8A 边缘。它们以每秒 0.25 单位上升,步调与脉动匹配,在缓慢的旋度噪声场上游荡,并在一个 30 单位高的体积内从顶部到底部循环;其中三只从轨道 3 单位以内经过。云:14 簇柔和精灵(画布绘制的径向 alpha,下方染成 #BFF3EC 的白色),位于岛屿下方 12 至 20 单位,以每秒 0.2 单位漂移。天空:顶部 #0FA3C7 至地平线 #BFF3EC。平行光 #FFF4E0,强度 1.6,来自左上方高处;半球光天空 #BFF3EC,地面 #FF5E8A,强度 0.9,使所有物体的底面都染上粉色。雾:指数雾, #BFF3EC,密度 0.012。轨道:(0, 2.2, 0), (-3, 4.0, -9), (3.5, 6.5, -18), (-2, 4.5, -28), (0, 2.2, -36)。瞥视:向右偏航 16 度,向上俯仰 6 度,朝向最近的水母群。静止姿态:位置 (-2, 3.5, -5),看向 (3, 5, -20)。大门悬挂在最后一座岛屿的缺口中,位于两条枝状珊瑚臂之间。叠加:--ink #06303F, --accent #D83A8F, --shade #D9F7F2。 布局:轨道上升和下沉 4 单位,因此岛屿在一次经过中会从下方、平视和上方被看到。 动态:水母脉动:2 秒周期,0.5 秒收缩,使用 easeOutCubic,1.5 秒释放,使用 easeInOutSine。海草:4 秒波浪。场景中无鱼、无气泡。 15. **World 04: Salt Mirror(盐镜)** — 黄昏时分一片被水淹没的盐滩,镜面般映出整片天空,头顶是一颗带环行星。标志性动态:每 6 s 有一道又长又慢的涟漪横穿镜面,经过时使行星的倒影发生弯折。构建:天空是一个着色器函数 skyColor(direction):垂直渐变,天顶为 #2B1672,经 25 度处的 #B0387F 过渡到地平线处的 #FF7A2F;太阳落下的方向(正前方)有一片 30 度宽的 #FFD08A 辉光;35 度以上有 400 颗小星星;行星:一个半径 9 度的圆盘,中心位于正前方上方 32 度、右方 20 度,着色从右下方的 #E9C9F2 到左上方的 #5B3FA8,带两条淡带,一道 #FFD08A 的环以 24 度倾斜穿过它,环上有两道暗缝,环在圆盘上方绘制于其后、下方绘制于其前。地面是一个 400 单位的平面,其着色器返回反射视线方向的 skyColor,压暗 12%,再加上:涟漪(一道 6 单位宽的正弦凸起,以每秒 5 单位朝相机行进,偏移反射方向)、一层淡淡的六边形盐壳图案,颜色 #FFD08A、不透明度 10%,在 40 单位内逐渐淡出,以及 2% 的噪声微光。物体:七座盐堆石标,高 1 到 2.4(三到五个堆叠、压扁、经噪声位移的球体),颜色 #1C0E3F,朝太阳一侧有 #FF7A2F 的边缘光,每座在平面下方都有一个倒置副本,平面以 88% 不透明度绘制,使它们看起来像倒影;栏杆左侧一排 24 根齐膝高的柱子,间距 4 单位,通向地平线;800 个盐尘点,在表面上方 0.05 单位处掠过,朝正 X 方向以每秒 1.2 单位移动,映出 #FFD08A。平行光 #FF7A2F,强度 1.2,来自前方地平线;半球光天空 #2B1672,地面 #FF7A2F,强度 0.7。雾:指数雾,#C24C7A,密度 0.006。轨道:(0, 2.2, 0)、(1.5, 1.2, -9)、(-1.5, 0.9, -19)、(0.8, 1.3, -28)、(0, 2.2, -36),使相机贴着镜面掠过。瞥视:偏航右转 14 度,俯仰上抬 12 度,看向行星。静止姿态:位置 (0, 1.1, -4),看向右方 20 度、上方 10 度的一点。门独自立在镜面上,其下方绘制有自己的倒影。叠加层:--ink #FFF4E6,--accent #FF7A2F,--shade #1C0E3F。 布局:在轨道最低点处,地平线位于画面高度自底部起 42% 的位置,因此天空与倒影几乎各占一半。 动态:每 6 s 一道涟漪,每秒 5 单位。行星的环在一次完整访问中转动 2 度。其他一切都不动。 16. **World 05: Murmuration Library(群飞图书馆)** — 一座高大的牛血红图书馆,闭馆后由烛光照亮,散落的书页从翻开的书中升起,像黄昏的椋鸟一样成群飞过中殿。标志性动态:鸟群。构建:中殿宽 12、高 16、长 48,带肋筒形拱顶,颜色 #2A0508。两侧墙面为 #3B0A0D 的书架:每侧 8 个开间,每个开间宽 5、有 10 层书架,半高处有一道带 #C8922E 栏杆的回廊,由两部滑动梯子抵达。书:4,800 个实例化盒子,每层书架 30 本,高度 0.22 到 0.34,有几本倾斜;书脊颜色 55% #A3271F、30% #7A1420、10% #C8922E、5% #1F3A3A。一条 #5C0F14 的地毯走道铺在 #1A0305 的地板上。十张阅读桌在栏杆左右交替排列,每张桌上两本翻开的书和一支蜡烛:一根 0.25 高的烛身,火焰绘制为加色水滴精灵,颜色 #FFC24B,带更浅的芯,仅在离相机最近的四个蜡烛上放置 #FFC24B 点光源(强度 6,距离 9)。300 个尘埃点悬浮在烛光中。书页:1,400 个实例化四边形,0.21 × 0.30,#FFF1CF,双面,受烛光照亮并略微自发光,使它们在黑暗中仍可辨认。它们在 CPU 上以每秒 30 次更新遵循群飞规则,用均匀网格做邻居搜索,每帧插值:0.5 单位内分离,2.2 单位内对齐与聚合,速度每秒 3 到 6 单位,中殿墙内 1 单位处有柔和边界,以及一个共享目标,沿缓慢的 8 字形在中殿中 3 到 13 单位高度间穿行,每 14 s 下探到桌面高度;每次下探,30 页从翻开的书中剥离加入,同时另外 30 页落回。每页在顶点着色器中沿其长中心线以每秒 6 次折叠扇动,各有自己的相位。鸟群每次访问至少两次直接从栏杆上方掠过。半球光天空 #5C0F14,地面 #1A0305,强度 0.6。雾:指数雾,#3A070B,密度 0.03。轨道:(0, 2.2, 0)、(-1.2, 2.8, -9)、(1.4, 4.2, -18)、(-0.6, 3.2, -28)、(0, 2.2, -36)。瞥视:上仰 14 度看向鸟群。静止姿态:位置 (-1, 2.4, -4),看向 (0.5, 7, -24)。门立在中殿尽头,那里本应是一扇巨大的窗户。叠加层:--ink #FFF1CF,--accent #FFC24B,--shade #1A0305。 布局:金色必须始终在红色背景上可读:蜡烛始终在相机 6 单位以内,鸟群足够浅淡,是画面中最亮的移动物体。 动态:鸟群速度每秒 3 到 6 单位,转向限制在每秒 90 度,使其流动而非猛冲。火焰按噪声信号缩放变化 8%。书和书架永不移动。 17. **World 06: Lightfall Canyon(光瀑峡谷)** — 一条由清水混凝土构成的狭窄峡谷,深六十单位,光从岩台倾泻而下,如水般坠落。标志性动态:七道瀑布。构建:两面相对的墙,每面由 22 块错落的混凝土块组成,宽 6 到 14、高 30 到 60,前后错位最多 3 单位,形成宽 9 到 14 的峡谷。混凝土着色器按高度和朝向混合 #B9BEC6、#7C838E 和 #2E333B,每 0.5 单位有水平木模板线,每 1.2 单位有一个对拉螺栓孔点,还有由噪声产生的垂直湿痕。五座板桥在不同高度横跨上方,宽阔的台阶在左侧 z = -10 到 z = -20 之间向上攀升。地面:一条 8 单位宽的浅静水渠,#1B1F26,将瀑布反射为它们颜色的长垂直拖影,并在雾气落处显示缓慢的圆环。瀑布:七条垂直光带,宽 2 到 5、高 30 到 50,从两侧交替的岩台落下,位于 z = -6、-11、-16、-21、-26、-31,另有一道 7 单位宽的直接位于门后 z = -39 处。第一、三、五、七道为青色 #00E5FF;其余为品红 #FF2BD6。光带着色器绘制向下流动的拉伸噪声条纹,速度每秒 9 单位,在边缘处更亮,向边缘逐渐变细至透明,加色混合。每道底部:一团 600 个点的雾气上升 3 单位并沿峡谷向下飘移,水面上一个 3 单位宽的发光加色圆盘,以及仅在离相机最近的四个瀑布上放置该瀑布颜色的点光源(强度 10,距离 16)。青色和品红光在墙上重叠处混合为紫色。天空:远上方一条 #DDE6F0 的阴天缝隙。半球光天空 #DDE6F0,地面 #2E333B,强度 0.7。雾:指数雾,#8F98A6,密度 0.018。轨道:(0, 2.2, 0)、(1.8, 1.6, -9)、(-2.2, 1.5, -18)、(1.0, 2.0, -28)、(0, 2.2, -36);第二和第四道瀑布的雾气飘过轨道,因此相机经过时它们的颜色会短暂漫过画面。瞥视:上仰 18 度沿最近的瀑布看向其边缘。静止姿态:位置 (1.2, 1.7, -3),看向 (-1, 9, -24)。门立在最大瀑布前方,被从背后照亮。叠加层:--ink #F4F7FA,--accent #00E5FF,--shade #14171C。 布局:灰色必须保持灰色:彩色光仅限于瀑布、它们的水池、它们的雾气以及它们实际照亮的东西,使青色和品红读起来像是对冷调单色空间的切割。 动态:条纹以每秒 9 单位下落。雾气以每秒 0.6 单位上升,并在 4 s 内淡出。水面上的圆环在 1.5 s 内扩张。混凝土、桥和台阶永不移动。 18. **世界 07:鲸鱼极光(Whale Aurora)** — 夜晚被白雪覆盖的苔原,绿色与紫色极光之下,三条玻璃制成的鲸鱼缓缓在空中游过。标志性动态:鲸鱼。构建:地形,一个 300 单位的平面,160 × 160 分段,带有高达 4 单位的柔和噪声丘陵,以及从 z = -12 到 z = -30 的平坦冰湖。雪的颜色从月光坡面上的 #DCE8F5 过渡到阴影中的 #6B4BD8;湖冰将极光色彩反射为柔和的垂直光带。120 个实例化的草丛和石块在栏杆附近点缀雪地,14 块冰晶碎片(拉伸的八面体,高 1 到 3,颜色 #CFE6FF,带微弱内发光)环绕湖边矗立。天空:#05070F,地平线处有 #0E1B2E 色带和 1,500 颗星星。极光:三条帷幕光带,每条长 240、高 40,沿长度方向 128 分段,位于 80 到 120 单位高处,由两道缓慢的正弦波折叠;着色器从噪声中绘制细密的垂直光柱,颜色从下边缘的 #3DFFA2 经 #19D3C5 过渡到顶部的 #B39DFF,加法混合,两端渐隐。鲸鱼:三条,分别长 18、21 和 24 单位。身体为旋转成型轮廓(钝头、深胸、长收尾),宽度方向略微压扁,带有两片长胸鳍、一片小背鳍和由挤出轮廓构建的宽大尾鳍。材质:不折射的玻璃,基础不透明度 8%,颜色 #CFE6FF,掠射角处有明亮边缘,从 #CFE6FF 渐变到 #B39DFF,内部有十一条微弱肋线,背部有极光色彩的移动光点,仿佛天空被捕获其中。一道行进的正弦波弯曲脊柱并每 8 s 抬起尾鳍一次;胸鳍每 16 s 摆动一次。它们沿三条宽阔的闭合环路在地面上方 20 到 35 单位处飞行,速度 1.6 单位每秒;最大的一条在每次巡游的第 9 秒左右从栏杆上方 10 单位处经过,其光芒会照亮下方的雪地。方向月光 #CFE6FF,强度 0.5,来自相机后方;半球光天空 #19D3C5,地面 #05070F,强度 0.5。雾:指数雾,#070B18,密度 0.008。栏杆:(0, 2.2, 0)、(-2.5, 2.6, -9)、(2.0, 3.4, -18)、(-1.0, 2.8, -28)、(0, 2.2, -36)。瞥视:俯仰角上仰 20 度,望向经过的鲸鱼。静止姿态:位置 (0, 2.4, -6),看向正前方上仰 14 度的点。门矗立在湖的对岸,位于两块冰晶碎片之间。叠加层:--ink #EAF6FF,--accent #3DFFA2,--shade #05070F。 布局:鲸鱼是为本网站原创绘制的动物:没有鞍具、骑手、灯光、盔甲或标记,也不与任何现有电影、游戏或动画中的生物相似。 动态:鲸鱼身体波动 8 s;行进速度 1.6 单位每秒;极光褶皱以 40 s 和 65 s 的正弦波漂移,其光柱缓慢闪烁。星星不闪烁。 19. **世界 08:发条果园(Clockwork Orchard)** — 深青色地面上三十棵黄铜树的果园,像时钟一样构建,且全部保持同一时间。标志性动态:滴答。每秒每棵树一起前进一格。构建:五排六棵树,7 单位网格,最多 0.4 单位的抖动,栏杆沿中间排的间隙延伸。每棵树约 6 高:树干由四个堆叠的黄铜圆柱组成,每个接合处有 #3FC1A5 铜绿色环箍;三层直臂(五、四、三根)从树干辐射而出;每根臂末端有一个齿轮(带齿圆盘,挤出厚度 0.08,10 到 18 齿,半径 0.35 到 0.9),与另一个齿轮啮合配对;顶部有一个半径 1.6 的大型水平冠齿轮;最低层下方悬挂一个摆锤,摆锤为 #C4683A 色;60 片小圆形黄铜叶在细茎上(共 1,800 个实例);以及六个玻璃果实,半径 0.14 的球体,发出 #FFE6A8 光芒并带加法光晕。每第三个齿轮为 #C4683A。黄铜使用 matcap 材质,因此无需环境贴图或额外灯光即可呈现抛光效果:启动时在 256px 画布上绘制 matcap,一个球体从边缘的 #7A5417 经 #D9A441 过渡到左上方的 #FFD98A 高光,底部沿边有柔和的 #0E6B66 反弹光。地面:#06343B,带有 #0E6B66 苔藓和细密的黄铜镶嵌轨道,围绕每根树干形成同心圆,在着色器中绘制。500 个黄铜锉屑点悬浮在空中闪烁。天空:顶部 #052B33 到地平线 #0B4A52。方向光 #FFD98A,强度 1.0,来自左上方;半球光天空 #0B4A52,地面 #052B33,强度 0.8。雾:指数雾,#0B4A52,密度 0.02。滴答:每 1.0 s 每个配对齿轮转动一齿,配对齿轮反向转动;冠齿轮转动 6 度;所有叶片倾斜 6 度并稳定;摆锤以 2 s 周期连续摆动,是唯一永不停止的部件。栏杆:(0, 2.2, 0)、(0.9, 2.0, -9)、(-0.9, 2.4, -18)、(0.6, 2.8, -27)、(0, 2.2, -36)。瞥视:偏航左转 10 度,俯仰上仰 10 度,望向最近的冠齿轮。静止姿态:位置 (0.8, 2.1, -3),看向 (-1.5, 4, -20)。门矗立在排的尽头;穿过它便是柑橘温室(Citrus Glasshouse),将循环从黄铜与青色带回黄色、绿色和白色。叠加层:--ink #FFF3D6,--accent #FFD98A,--shade #031D22。 布局:黄铜必须看起来经过抛光,而不是扁平的黄色:从入口点检查树干和齿轮面上的 matcap 高光是否可见。 动态:每次滴答在 180 ms 内完成,使用 cubic-bezier(0.34, 1.56, 0.64, 1),像擒纵机构落位一样有轻微过冲,然后在该秒剩余时间内静止。此世界的音频滴答由同一时钟调度。在减少动态效果模式下,滴答仍然发生,但无过冲。 ## 资产 - 图像:不使用任何图像文件。每个表面、天空、生物和光线都在运行时用 three.js 几何体和 GLSL 绘制。唯一的纹理是在启动时绘制在内存画布上的:一张用于雾、云、光晕和火焰的柔和圆形精灵图(128px 径向 alpha),用于世界 8 的 256px 黄铜 matcap,以及用于叠加层的 128px 颗粒平铺图。不要下载模型、HDR 环境、纹理或照片,也不要嵌入 base64 图像。同样没有音频或视频文件:所有声音都在浏览器中用 Web Audio API 根据 Sound 部分中的配方生成。 - 图标:Lucide(ISC),npm 包 lucide 固定为 0.499.0,逐个导入图标并用其 createElement 辅助函数转换为内联 SVG:pause、play、rotate-3d(Look)、volume-x、volume-2、x、chevron-up(世界芯片)、arrow-up-right(邮件链接)。描边宽度 1.5,18px,currentColor。在 ASSETS.md 中列出该包。 - 图标:Favicon 手工绘制为 public/favicon.svg:一个 32px 的 #12301F 正方形,圆角 7px,中间有一个 #FFC914 的直立胶囊轮廓,宽 10px、高 20px,描边 2.5px,居中。不含字母。 - 字体:Fraunces Variable(OFL-1.1,由 Undercase Type 设计),来自 @fontsource-variable/fraunces:导入 full.css 和 full-italic.css,以便 opsz、SOFT 和 WONK 轴可用;字体族名 'Fraunces Variable'。预加载 latin 常规和 latin 斜体 woff2 文件。在 ASSETS.md 中列出。 - 字体:Manrope Variable(OFL-1.1,由 Mikhail Sharanda 设计),来自 @fontsource-variable/manrope:导入 index.css;字体族名 'Manrope Variable'。在 ASSETS.md 中列出。 - 字体:DM Mono(OFL-1.1,由 Colophon Foundry 设计),来自 @fontsource/dm-mono:导入 400.css;字体族名 'DM Mono'。在 ASSETS.md 中列出。 ## 禁止事项 - 不得有任何形式的启动画面:不得有加载器、旋转指示器、进度条、闪屏、“click to enter”或“tap to begin”,也绝不能出现黑色或空白的首帧。首次绘制即显示 Citrus Glasshouse 配色、字标和介绍语,首个 WebGL 帧在 2 秒内到达。 - 不得有后端、服务器代码、API 路由、数据库、认证、cookies、分析、第三方 API 或任何会提交到某处的表单。唯一的外链是 mailto 地址。 - 用 npm run build 将静态文件构建到 dist/。Vite base 为 './',所有资源路径均为相对路径。不得有 source maps,不得将 src/ 复制进 dist/,dist/ 小于 20 MB。任何内部链接都指向诸如 ./index.html 的文件名,绝不指向裸目录。 - 不得使用任何 CDN 内容:不得有远程脚本、样式表、字体、图片或音频。字体仅通过三个 Fontsource 包自托管;不得使用商业字体或系统默认显示字体。 - 不得有模型文件、HDR 环境、纹理文件、照片、插画、视频或录制音频。几何体、光照和声音全部在运行时生成。 - 不得有后处理库或 pass 链,不得有实时阴影贴图,不得有透射或折射材质,不得有物理引擎。除技术栈中列出的依赖外,不得添加任何依赖。 - 除非用户要求,不得更改技术栈、八个世界、其顺序、其十六进制调色板或时间线数字。不得添加额外页面、向下滚动区块、newsletter 框、定价表、用户评价或 cookie 横幅。 - 保持门为带细边框的普通胶囊形开口。不得有旋涡、环形装置、两种固定颜色的发光椭圆对、符文或机械结构,也不得有任何让人联想到现有游戏、电影或动画中传送门的东西。 - 每个世界、生物和物体均为本站原创。不得重现任何现有电影、游戏、动画或已发布 3D 作品中可辨识的地点、角色、生物、载具或镜头,也不得添加人物或面孔。 - 氛围仅为 drone 和纹理:不得有旋律、和弦进行、鼓点模式、广告短曲或对任何现有音乐或声音标识的模仿。访客开启声音之前不得有声音,开启或关闭状态始终可见。 - 文案中不得出现真实工作室、艺术家、客户、酒店、场馆或产品名称;所有名称均为虚构。不得在网站任何位置提及任何 AI 模型、AI 公司或网站的构建方式。 - 不得有任何装饰性运动。除进度刻度外,不得有闲置旋转物体、脉冲按钮、覆盖文字上的视差、光标拖尾、打字机文字或循环界面动画。 - 必须在 1440x900 和 390x844 下运行,应用零控制台错误或警告,无水平滚动且无页面滚动。手机上使用质量分级(像素比上限、减少数量)、底部栏和底部面板;触摸目标至少 44px,且不得有任何依赖悬停的内容。 - 严格按照描述尊重 prefers-reduced-motion:静止相机、缓慢交叉淡入淡出、无门飞越、静态颗粒。以静态版本处理缺失或丢失的 WebGL 上下文,绝不出现白色、黑色或错误页面。 - 将所有文案、世界名称、说明文字和调色板保留在 src/content.ts 中。当变量值与默认值不同时,重写介绍语和 Studio 抽屉以适配它们;绝不留默认品牌文字。 - 在项目根目录编写 ASSETS.md,列出每个字体包和图标包及其来源、作者和许可证,并声明每个视觉和声音均在代码中生成。 --- Inspired by Hands-off journey through code-drawn 3D worlds linked by portals, with synthesized ambient sound by @Ethan Mollick — https://www.oneusefulthing.org/p/fable-52-and-jagged-agi — Prompt by VibeFather · https://vibefather.ai/t/3d-portal-worlds-journey · 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。
单独的设计规范:配色、字体、间距和动效。可以把这套视觉用到你已有的项目上。
---
name: "3D Portal Worlds Journey"
colors:
panel: "#0B0F14"
panel_text: "#F4EFE6"
panel_muted: "#A9B0B8"
panel_hairline: "rgba(255,255,255,0.16)"
ink_light: "#F6F1E6"
ink_dark: "#12301F"
w1_fog: "#F6F2E3"
w1_sky_mint: "#BFE6DC"
w1_leaf: "#1F8A4C"
w1_deep_leaf: "#0F4D2E"
w1_lemon: "#FFC914"
w1_orange: "#FF8A1F"
w1_terracotta: "#C8643C"
w1_sunlight: "#FFE2A0"
w1_ink: "#12301F"
w1_accent: "#E8590C"
w2_night_indigo: "#0B1340"
w2_electric_indigo: "#3B4BD8"
w2_fog: "#1A2470"
w2_wet_deck: "#101736"
w2_window_amber: "#FFB347"
w2_deep_amber: "#FF7A1A"
w2_foliage: "#1E6B5A"
w2_rain: "#AFC4FF"
w2_ink: "#F3EEDF"
w3_turquoise: "#0FA3C7"
w3_aqua_haze: "#BFF3EC"
w3_reef_rock: "#2B6E86"
w3_coral_pink: "#FF5E8A"
w3_coral_orange: "#FF8F5C"
w3_magenta: "#D83A8F"
w3_sea_teal: "#12C7B2"
w3_jelly: "#FFD1E8"
w3_sunlight: "#FFF4E0"
w3_ink: "#06303F"
w4_zenith_violet: "#2B1672"
w4_rose: "#B0387F"
w4_tangerine: "#FF7A2F"
w4_sun_glow: "#FFD08A"
w4_planet_lit: "#E9C9F2"
w4_planet_shadow: "#5B3FA8"
w4_fog: "#C24C7A"
w4_silhouette: "#1C0E3F"
w4_ink: "#FFF4E6"
w5_vault: "#2A0508"
w5_oxblood: "#5C0F14"
w5_fog: "#3A070B"
w5_shelf_wood: "#3B0A0D"
w5_spine_red: "#A3271F"
w5_gilt: "#C8922E"
w5_paper: "#FFF1CF"
w5_candle_gold: "#FFC24B"
w5_floor: "#1A0305"
w6_overcast: "#DDE6F0"
w6_fog: "#8F98A6"
w6_concrete_light: "#B9BEC6"
w6_concrete_mid: "#7C838E"
w6_concrete_dark: "#2E333B"
w6_cyan: "#00E5FF"
w6_magenta: "#FF2BD6"
w6_channel: "#1B1F26"
w7_night: "#05070F"
w7_horizon: "#0E1B2E"
w7_fog: "#070B18"
w7_aurora_green: "#3DFFA2"
w7_aurora_teal: "#19D3C5"
w7_ice_violet: "#B39DFF"
w7_deep_violet: "#6B4BD8"
w7_snow: "#DCE8F5"
w7_whale_glass: "#CFE6FF"
w8_deep_teal: "#052B33"
w8_fog: "#0B4A52"
w8_ground: "#06343B"
w8_moss: "#0E6B66"
w8_brass: "#D9A441"
w8_brass_light: "#FFD98A"
w8_brass_dark: "#7A5417"
w8_copper: "#C4683A"
w8_verdigris: "#3FC1A5"
w8_bulb: "#FFE6A8"
typography:
display_wordmark_intro_line_world_names_drawer_headings_fraunces_variable_with_font_variation_settings_opsz_144_soft_100_wonk_0_world_names_at_weight_300_upright_intro_line_at_weight_300_italic_wordmark_at_weight_500: { family: "Fraunces Variable", weights: [300, 500] }
text_captions_buttons_drawer_body_16px_24px_body_14px_20px_controls_weight_400_500_for_buttons_and_names_in_the_index: { family: "Manrope Variable", weights: [400, 500] }
mono_world_numbers_countdown_eyebrows_prices_12px_letter_spacing_0_08em_uppercase_for_eyebrows: { family: "DM Mono", weights: [400] }
spacing: "8px base unit. Desktop overlay margin 40px on all sides; phone margin 20px (12px for the bottom bar). Card slot max-width 620px. Controls are 44px circles with 12px gaps. Drawer width 440px with 32px padding; drawer sections are separated by 40px and a 1px hairline. The page never scrolls: html and body are 100dvh with overflow hidden; only the drawer and the bottom sheet scroll inside themselves."
radius: "Controls and the phone bottom bar are fully round (999px). Panels: 20px on the drawer's inner corners and the top corners of the bottom sheet. The gate is a capsule: a rectangle 2.6 units wide and 4.4 units tall whose top and bottom are half circles of radius 1.3. No other rounded shapes in the interface."
---
# 3D Portal Worlds Journey — 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
- **Panel** `#0B0F14` — Background of the Studio drawer, the phone bottom bar and the world sheet, at 78% opacity over a 20px backdrop blur. Never used as a page background.
- **Panel Text** `#F4EFE6` — All text inside panels.
- **Panel Muted** `#A9B0B8` — Secondary text inside panels: prices, captions, addresses.
- **Panel Hairline** `rgba(255,255,255,0.16)` — 1px borders and dividers inside panels.
- **Ink Light** `#F6F1E6` — Overlay text color on dark worlds (worlds 2, 4, 5, 6, 7, 8). Each world sets --ink to its own near-white listed below; this is the fallback.
- **Ink Dark** `#12301F` — Overlay text color on the two bright worlds (1 and 3 use their own dark inks listed below).
- **W1 Fog** `#F6F2E3` — Citrus Glasshouse: fog, canvas clear color, page background before the first frame, scrim color (--shade).
- **W1 Sky Mint** `#BFE6DC` — Citrus Glasshouse: top of the sky gradient, glass tint.
- **W1 Leaf** `#1F8A4C` — Citrus Glasshouse: lit side of the tree canopies.
- **W1 Deep Leaf** `#0F4D2E` — Citrus Glasshouse: shaded side of canopies, iron ribs in silhouette.
- **W1 Lemon** `#FFC914` — Citrus Glasshouse: 60% of the fruit, light-shaft tint.
- **W1 Orange** `#FF8A1F` — Citrus Glasshouse: 40% of the fruit.
- **W1 Terracotta** `#C8643C` — Citrus Glasshouse: pots and the tiled aisle border.
- **W1 Sunlight** `#FFE2A0` — Citrus Glasshouse: color of the directional light.
- **W1 Ink** `#12301F` — Citrus Glasshouse: --ink for overlay text.
- **W1 Accent** `#E8590C` — Citrus Glasshouse: --accent for the progress tick, gate rim and focus ring.
- **W2 Night Indigo** `#0B1340` — Blue Hour Rooftop: top of the sky.
- **W2 Electric Indigo** `#3B4BD8` — Blue Hour Rooftop: horizon band of the sky, rim light on wet surfaces.
- **W2 Fog** `#1A2470` — Blue Hour Rooftop: fog.
- **W2 Wet Deck** `#101736` — Blue Hour Rooftop: deck, planters, city towers.
- **W2 Window Amber** `#FFB347` — Blue Hour Rooftop: lit windows, string lights; --accent.
- **W2 Deep Amber** `#FF7A1A` — Blue Hour Rooftop: the nearest lamps and their reflections.
- **W2 Foliage** `#1E6B5A` — Blue Hour Rooftop: grasses and small trees.
- **W2 Rain** `#AFC4FF` — Blue Hour Rooftop: rain streaks and ripple rings.
- **W2 Ink** `#F3EEDF` — Blue Hour Rooftop: --ink. Scrim (--shade) is #070B26.
- **W3 Turquoise** `#0FA3C7` — Sky Reef: top of the sky.
- **W3 Aqua Haze** `#BFF3EC` — Sky Reef: horizon, fog and cloud shadow.
- **W3 Reef Rock** `#2B6E86` — Sky Reef: floating rock.
- **W3 Coral Pink** `#FF5E8A` — Sky Reef: branch coral and jellyfish glow.
- **W3 Coral Orange** `#FF8F5C` — Sky Reef: brain coral and tube clusters.
- **W3 Magenta** `#D83A8F` — Sky Reef: fan coral; --accent.
- **W3 Sea Teal** `#12C7B2` — Sky Reef: sea grass ribbons.
- **W3 Jelly** `#FFD1E8` — Sky Reef: jellyfish bells.
- **W3 Sunlight** `#FFF4E0` — Sky Reef: color of the directional light.
- **W3 Ink** `#06303F` — Sky Reef: --ink (dark, because this world is bright). Scrim (--shade) is #D9F7F2.
- **W4 Zenith Violet** `#2B1672` — Salt Mirror: top of the sky.
- **W4 Rose** `#B0387F` — Salt Mirror: middle band of the sky.
- **W4 Tangerine** `#FF7A2F` — Salt Mirror: horizon band; --accent.
- **W4 Sun Glow** `#FFD08A` — Salt Mirror: glow where the sun has just set, planet ring.
- **W4 Planet Lit** `#E9C9F2` — Salt Mirror: lit side of the ringed planet.
- **W4 Planet Shadow** `#5B3FA8` — Salt Mirror: dark side of the planet.
- **W4 Fog** `#C24C7A` — Salt Mirror: fog.
- **W4 Silhouette** `#1C0E3F` — Salt Mirror: cairns and posts; scrim (--shade).
- **W4 Ink** `#FFF4E6` — Salt Mirror: --ink.
- **W5 Vault** `#2A0508` — Murmuration Library: ceiling vault.
- **W5 Oxblood** `#5C0F14` — Murmuration Library: walls and the long carpet.
- **W5 Fog** `#3A070B` — Murmuration Library: fog.
- **W5 Shelf Wood** `#3B0A0D` — Murmuration Library: shelves, ladders, tables.
- **W5 Spine Red** `#A3271F` — Murmuration Library: 55% of the book spines (another 30% use #7A1420, 5% use #1F3A3A).
- **W5 Gilt** `#C8922E` — Murmuration Library: 10% of the spines, balcony rail.
- **W5 Paper** `#FFF1CF` — Murmuration Library: the flying pages; --ink.
- **W5 Candle Gold** `#FFC24B` — Murmuration Library: flames and their light; --accent.
- **W5 Floor** `#1A0305` — Murmuration Library: floor outside the carpet; scrim (--shade).
- **W6 Overcast** `#DDE6F0` — Lightfall Canyon: the slit of sky.
- **W6 Fog** `#8F98A6` — Lightfall Canyon: fog.
- **W6 Concrete Light** `#B9BEC6` — Lightfall Canyon: lit concrete faces.
- **W6 Concrete Mid** `#7C838E` — Lightfall Canyon: most wall surfaces.
- **W6 Concrete Dark** `#2E333B` — Lightfall Canyon: undersides and deep recesses.
- **W6 Cyan** `#00E5FF` — Lightfall Canyon: four of the seven lightfalls; --accent.
- **W6 Magenta** `#FF2BD6` — Lightfall Canyon: three of the seven lightfalls.
- **W6 Channel** `#1B1F26` — Lightfall Canyon: the water channel. Scrim (--shade) is #14171C; --ink is #F4F7FA.
- **W7 Night** `#05070F` — Whale Aurora: sky; scrim (--shade).
- **W7 Horizon** `#0E1B2E` — Whale Aurora: horizon glow.
- **W7 Fog** `#070B18` — Whale Aurora: fog.
- **W7 Aurora Green** `#3DFFA2` — Whale Aurora: lower edge of the aurora; --accent.
- **W7 Aurora Teal** `#19D3C5` — Whale Aurora: middle of the aurora.
- **W7 Ice Violet** `#B39DFF` — Whale Aurora: top of the aurora, whale rim light.
- **W7 Deep Violet** `#6B4BD8` — Whale Aurora: snow shadows.
- **W7 Snow** `#DCE8F5` — Whale Aurora: snow where the moon hits it.
- **W7 Whale Glass** `#CFE6FF` — Whale Aurora: whale bodies. --ink is #EAF6FF.
- **W8 Deep Teal** `#052B33` — Clockwork Orchard: top of the sky.
- **W8 Fog** `#0B4A52` — Clockwork Orchard: fog and horizon.
- **W8 Ground** `#06343B` — Clockwork Orchard: ground.
- **W8 Moss** `#0E6B66` — Clockwork Orchard: moss between the brass rails.
- **W8 Brass** `#D9A441` — Clockwork Orchard: trunks, gears, leaves.
- **W8 Brass Light** `#FFD98A` — Clockwork Orchard: highlights; --accent.
- **W8 Brass Dark** `#7A5417` — Clockwork Orchard: shaded brass.
- **W8 Copper** `#C4683A` — Clockwork Orchard: every third gear and the pendulum bobs.
- **W8 Verdigris** `#3FC1A5` — Clockwork Orchard: patina on trunk collars.
- **W8 Bulb** `#FFE6A8` — Clockwork Orchard: glowing glass fruit. --ink is #FFF3D6; scrim (--shade) is #031D22.
## Typography
- **Display: wordmark, intro line, world names, drawer headings. Fraunces Variable with font-variation-settings 'opsz' 144, 'SOFT' 100, 'WONK' 0. World names at weight 300, upright. Intro line at weight 300 italic. Wordmark at weight 500.** — Fraunces Variable (OFL), weights 300/500. Self-host the font files.
- **Text: captions, buttons, drawer body. 16px/24px body, 14px/20px controls, weight 400, 500 for buttons and names in the index.** — Manrope Variable (OFL), weights 400/500. Self-host the font files.
- **Mono: world numbers, countdown, eyebrows, prices. 12px, letter-spacing 0.08em, uppercase for eyebrows.** — DM Mono (OFL), weights 400. Self-host the font files.
## Spacing & shape
- Spacing: 8px base unit. Desktop overlay margin 40px on all sides; phone margin 20px (12px for the bottom bar). Card slot max-width 620px. Controls are 44px circles with 12px gaps. Drawer width 440px with 32px padding; drawer sections are separated by 40px and a 1px hairline. The page never scrolls: html and body are 100dvh with overflow hidden; only the drawer and the bottom sheet scroll inside themselves.
- Radius: Controls and the phone bottom bar are fully round (999px). Panels: 20px on the drawer's inner corners and the top corners of the bottom sheet. The gate is a capsule: a rectangle 2.6 units wide and 4.4 units tall whose top and bottom are half circles of radius 1.3. No other rounded shapes in the interface.
## Motion
- Journey clock: every world runs the same 22.4 s timeline. 0 to 1.6 s arrive, 2.5 s title card in, 12.5 s title card out, 14.0 s gate opens, 20.0 s approach starts, 22.4 s crossing. Eight worlds loop in 179.2 s and never stop.
- Camera drift: the camera rides a centripetal Catmull-Rom rail. Speed is baseSpeed times m(t). m falls from 3.0 to 1.0 over the first 1.6 s with easeOutCubic, holds 1.0 until 20.0 s, then rises from 1.0 to 3.0 over 2.4 s with easeInCubic. baseSpeed is railLength / 24.4, about 1.5 units per second, so the speed leaving one world equals the speed entering the next.
- Gate opening: at 14.0 s a vertical hairline of light widens into the full capsule over 1600 ms with cubic-bezier(0.16, 1, 0.3, 1). The rim glow then breathes between 70% and 100% opacity on a 4 s sine until the crossing.
- Gate pass-through: 2.4 s, accelerating with easeInCubic. Over the same 2.4 s the overlay colors (--ink, --accent, --shade), the outer fog tint and the sound cross-fade with cubic-bezier(0.45, 0, 0.55, 1). The swap of worlds happens 0.15 units before the gate plane and must be invisible: no flash, no fade to black, no cut.
- Title card in: number fades in 400 ms; the name rises 18px and fades in over 900 ms with cubic-bezier(0.22, 1, 0.36, 1), 80 ms stagger per line; the caption follows 250 ms later over 600 ms. Title card out: 700 ms, 8px upward, cubic-bezier(0.4, 0, 1, 1). Same place every time.
- Interface: hover, press and toggle states take 200 ms with cubic-bezier(0.2, 0, 0, 1). The drawer and the bottom sheet slide in over 520 ms with cubic-bezier(0.22, 1, 0.36, 1) and out over 320 ms with cubic-bezier(0.4, 0, 1, 1).
- Look mode: drag input is smoothed with an exponential half-life of 120 ms. When look mode is switched off, or when an approach starts, the view returns to the rail direction over 1200 ms with easeOutCubic.
- One signature motion per world, named in each world section. Everything else in a world is still or moves only because of that motion (leaves move because fog passes, reflections move because rain lands). Nothing spins, pulses or floats for decoration, and no interface element animates on a loop except the progress tick.
- Reduced motion: the camera stands still at each world's rest pose, worlds change by a 2500 ms cross-fade every 20 s, in-world motion runs at 40% speed, title cards fade without moving, and the film grain is static.
## Imagery
No image, model, texture or audio files. Every world is built at run time from three.js primitives, instanced meshes, noise-displaced geometry, points and small GLSL shaders; any sprite or matcap texture is painted on an in-memory canvas at start-up. No shadow maps, no transmission materials and no post-processing passes: glow is additive geometry, depth is fog. All sky and fog gradients add a one-step hash dither so dark gradients never band. A film-grain layer sits above the canvas: a 128px noise tile painted on a canvas at start-up, used as a CSS background at 6% opacity with mix-blend-mode overlay, shifted to a new offset 8 times per second. A soft vignette (radial gradient, transparent to 22% black at the corners) sits under the overlay text. Behind the text in the lower left there is a scrim: a radial gradient of the current world's --shade color, 72% at the corner fading to 0 at 60% of the viewport width, strong enough that the caption keeps a contrast of at least 4.5:1 in every world.
## Tone
Calm, exact, a little dry. Short sentences with concrete nouns and numbers. No exclamation marks, no hype words, nothing about technology on the surface: the copy talks about rooms, light and time.
---
Inspired by Hands-off journey through code-drawn 3D worlds linked by portals, with synthesized ambient sound by @Ethan Mollick — https://www.oneusefulthing.org/p/fable-52-and-jagged-agi
— Prompt by VibeFather · https://vibefather.ai/t/3d-portal-worlds-journey · CC BY-NC 4.0 (non-commercial; commercial use needs a VibeFather Pro license) · Request removal: https://vibefather.ai/takedown
可以。3D 传送门世界之旅模板在 VibeFather 上免费提供:其提示词和 DESIGN.md 在 CC BY-NC 4.0 许可下可免费用于个人非商业用途。它是一个单页全屏页面,镜头穿梭于八个由代码绘制的世界,因此你可以先观看免费在线演示,然后在 Claude Code 或其他 agent 中运行提示词,获得你自己的版本。
八个世界中的每一个都是自包含模块,拥有自己的调色板、标题和说明文字,因此你可以在不触及旅程引擎的情况下重命名、改色、重新排序或删除世界。所有字符串、世界名称、说明文字和调色板都放在一个内容文件中。在该文件顶部设置品牌、标语、城市、场所和联系邮箱,抽屉文案就会随之变化。
不需要。每个世界都用 three.js 和少量 shader 实时绘制,环境音景是生成的,因此没有需要托管的模型、纹理、图片或音频文件。网站无需开始界面,直接加载进入第一个世界——柑橘玻璃温室。页面上唯一的外链是 Studio 抽屉中的联系邮箱。
可以。声音默认关闭,直到访客主动开启,每个世界生成的环境音景会在传送门处交叉淡入淡出。启用减少动态效果设置的访客会看到静止镜头和缓慢的交叉淡入淡出,而不是漂移。页面上有三个圆形控件,分别用于暂停、拖拽环视和声音,还有一个带倒计时的精简世界索引,让任何人都能在世界之间跳转。
可以。该模板被设定为一家环境视觉工作室,但它适合任何想要展示作品而非宣传册的人:动态设计师、音乐人、睡眠与专注类应用,或开发者的个人页面。更改品牌、介绍语、城市和受众变量,然后重写抽屉文案,说明你提供什么以及人们如何联系你。
复制本页的提示词,或者运行 npx vibefather add 3d-portal-worlds-journey,把 变量 换成你自己的内容,再粘贴到 Claude Code、Codex、Cursor 等 AI 编程工具里。在线演示就是用这份提示词原样做出来的。
演示由 Claude Fable 5.2 在 Claude Code 里完成。每次都用公开的提示词原样生成,没有额外补充。
3D 传送门世界之旅是一个单页网站,用 纯 HTML、Three.js 构建。提示词固定了技术栈,不同 AI 工具做出来的都是同一类项目,成品是静态网站,部署到哪里都可以。
3D 传送门世界之旅的提示词和 DESIGN.md 按 CC BY-NC 4.0 授权,个人、非商业项目免费使用。客户项目和商业用途需要 VibeFather Pro,Pro 还包含在线演示的源码。
能。每个3D 传送门世界之旅的演示上线前都在手机和电脑尺寸上检查过布局、字号和点击区域。可以直接用手机打开在线演示,或者在本页把预览切到手机视图看看。