冰霜序列攝影機軌道
一個完整的 22.5 秒冰霜序列:標誌、第一段文字、第二段文字、碎裂與淡出。攝影機以軌道方式環繞固定物件,並在前方以較慢速度通過,方便閱讀文字。整個轉場過程由同一個粒子場驅動。您可以自訂兩段文字內容與 SVG 標誌;原始碼中包含可編輯的攝影機與組合時間設定。
合成 ID:frost-sequence-rig。長度 22.5 秒,30 fps,解析度 1920×1080。
檔案
frost-sequence-camera-orbit.html(131 KB)assets/example-logo.svg(1 KB)assets/fonts/Geist-Bold.ttf(65 KB)assets/fonts/Geist-OFL.txt(4 KB)assets/fonts/Geist-Regular.ttf(65 KB)assets/fonts/Geist-SemiBold.ttf(65 KB)assets/frost.js(1.5 MB)assets/Three-LICENSE.txt(1 KB)assets/ThreeMeshBVH-LICENSE.txt(1 KB)assets/OpentypeJS-LICENSE.txt(1 KB)assets/Clipper-LICENSE.txt(3 KB)assets/gsap-3.14.2.min.js(128 KB)assets/GSAP-NOTICE.txt(1 KB)assets/logo.svg(1 KB)assets/shards-atlas.png(安裝時從 CDN 擷取)assets/test-mark.svg(1 KB)assets/textures/bluenoise64.png(12 KB)assets/textures/ice-inclusions-generated.png(安裝時從 CDN 擷取)
安裝
使用 npx hyperframes add frost-sequence-camera-orbit 安裝;預設情況下,上述檔案會放置於 compositions/frost-sequence-camera-orbit/ 目錄下。接著從主機 index.html 掛載區塊:
<div
data-composition-id="frost-sequence-rig"
data-composition-src="compositions/frost-sequence-camera-orbit/frost-sequence-camera-orbit.html"
data-start="0"
data-duration="22.5"
data-track-index="1"
data-width="1920"
data-height="1080"
></div>
透過直接指定合成檔案,使用自訂值進行渲染:
npx --yes [email protected] render 'compositions/frost-sequence-camera-orbit/frost-sequence-camera-orbit.html' --variables '{"headline1":"Hard to|break.","headline2":"Easy to|remember."}'
變數
執行時透過 window.__hyperframes.getVariables() 讀取;在合成根元素上以 data-composition-variables 屬性(單引號屬性,純 JSON)宣告。
| id | 類型 | 預設值 | 標籤 / 範圍 |
|---|---|---|---|
headline1 | 字串 | `"Hard to | break."` |
headline2 | 字串 | `"Easy to | remember."` |
logoUrl | 字串 | "assets/logo.svg" | 標誌 SVG 資產路徑(在「資產」中上傳,然後貼上路徑)最多 200 字元 |
assemblyMode | 列舉 | "hybrid" | 組合反應 (physical |
materialBaseColor | 顏色 | "#ffffff" | 基底顏色 |
baseRoughness | 數值 | 0.31 | 基底粗糙度 0–0.5 間距 0.005 |
materialTransmission | 布林 | true | 透射 |
materialBacklight | 數值 | 0.27 | 冰霜背光 0–2 間距 0.01 |
ior | 數值 | 1.675 | 折射率 1–2 間距 0.005 |
thicknessScale | 數值 | 2.04 | 厚度比例 0.1–3 間距 0.01 |
materialAbsorption | 布林 | true | 吸收 / 色調 |
attenuationColor | 顏色 | "#d5f4ff" | 衰減顏色(白色 = 無吸收,透明玻璃) |
attenuationDistance | 數值 | 6.54 | 衰減距離 0.05–12 間距 0.01 |
materialDispersion | 布林 | false | 色散 |
dispersion | 數值 | 0.12 | 色散 (0 = 關閉;開/關需重新載入) 0–0.3 間距 0.005 |
materialReflections | 布林 | true | 反射 |
envIntensity | 數值 | 2.04 | 環境強度 0–3 間距 0.01 |
specularIntensity | 數值 | 1.44 | 鏡面反射強度 0–2 間距 0.01 |
materialFrost | 布林 | true | 霜 |
materialInteriorFrost | 數值 | 0 | 均勻霜 0–1 間距 0.01 |
frostScale | 數值 | 0.7 | 比例 0.2–6 間距 0.05 |
frostThreshold | 數值 | 0.62 | 閾值 (1 = 無霜,透明玻璃) 0–1 間距 0.01 |
frostSoftness | 數值 | 0.24 | 柔軟度 0.01–1 間距 0.01 |
frostRoughness | 數值 | 0.73 | 粗糙度 0–1 間距 0.01 |
frostDiffuse | 數值 | 0.11 | 漫射 (霜面捕捉光線的程度) 0–1 間距 0.01 |
materialSurfaceBumps | 布林 | false | 物件表面凹凸 / 裂縫凹痕 |
materialCrystals | 布林 | true | 晶體凹凸 |
crystalBump | 數值 | 0.01 | 晶體凹凸 0–1 間距 0.01 |
crystalScale | 數值 | 4 | 晶體比例 4–80 間距 1 |
materialGrain | 布林 | true | 顆粒凹凸 |
materialGrainAmount | 數值 | 0.47 | 顆粒強度 0–2 間距 0.01 |
materialGrainScale | 數值 | 150 | 顆粒比例 1–150 間距 1 |
materialCutNormals | 布林 | true | 斷裂法線 |
materialMicro | 布林 | true | 微凹凸 |
microBump | 數值 | 0.445 | 微凹凸 0–1 間距 0.005 |
microScale | 數值 | 10 | 微比例 10–200 間距 1 |
microCoverage | 數值 | 0.25 | 微覆蓋率 0–1 間距 0.01 |
bumpMaskScale | 數值 | 1.45 | 遮罩比例 0.1–6 間距 0.05 |
materialRipples | 布林 | true | 漣漪 |
rippleBump | 數值 | 0.22 | 漣漪凹凸 0–1 間距 0.01 |
rippleScale | 數值 | 23 | 漣漪比例 2–30 間距 0.5 |
materialSmudges | 布林 | true | 污漬 |
smudgeAmount | 數值 | 0.78 | 數量 0–1 間距 0.01 |
smudgeCoverage | 數值 | 0.58 | 覆蓋率 0–1 間距 0.01 |
smudgeMaskScale | 數值 | 1.85 | 遮罩比例 0.1–6 間距 0.05 |
smudgeAnisotropy | 數值 | 16.5 | 各向異性 1–20 間距 0.5 |
smudgeRoughness | 數值 | 0.75 | 粗糙度 0–1 間距 0.01 |
smudgeWhiteness | 數值 | 0.035 | 白度 0–0.5 間距 0.005 |
smudgeScale | 數值 | 1.3 | 比例 0.5–10 間距 0.1 |
materialCracks | 布林 | true | 裂縫 |
crackLargeScale | 數值 | 2.45 | 大比例 0.3–8 間距 0.05 |
crackWarp | 數值 | 0.22 | 扭曲 0–1.5 間距 0.01 |
crackCoverage | 數值 | 0.19 | 覆蓋率 0–1 間距 0.01 |
crackRegionScale | 數值 | 1.8 | 區域比例 0.1–4 間距 0.05 |
crackRegionCoverage | 數值 | 0.6 | 區域覆蓋率 0–1 間距 0.01 |
veinScale | 數值 | 8 | 紋理比例 1–20 間距 0.25 |
veinContrast | 數值 | 0.55 | 紋理對比度 0–1 間距 0.01 |
crackWidth | 數值 | 0.0025 | 寬度 0.0005–0.02 間距 0.0005 |
crackBrightness | 數值 | 0.65 | 亮度 0–3 間距 0.01 |
crackDarkness | 數值 | 0.69 | 暗度 0–1 間距 0.01 |
crackRefraction | 數值 | 0.076 | 折射 0–0.1 間距 0.001 |
crackSurfaceStrength | 數值 | 0.16 | 表面強度 0–1 間距 0.01 |
fineScale | 數值 | 18.4 | 精細比例 2–20 間距 0.1 |
fineAmount | 數值 | 0.52 | 精細數量 0–1 間距 0.01 |
fineCoverage | 數值 | 1 | 精細覆蓋率 0–1 間距 0.01 |
materialScatter | 布林 | true | 內部散射 |
materialInclusionScale | 數值 | 0.05 | 內含物比例 0.05–3 間距 0.01 |
materialInclusionAmount | 數值 | 2 | 攝影內含物 0–2 間距 0.01 |
interiorScatter | 數值 | 0.09 | 內部散射 0–1 間距 0.01 |
materialClearcoat | 布林 | true | 透明塗層 |
clearcoat | 數值 | 0 | 透明塗層 0–1 間距 0.01 |