build-threejs-scroll-worlds
できること
このスキルは、一つの連続した3D世界の中で続くスクロール連動の3D体験を作る作業をAIエージェントに案内します。本物の3Dを使う製品紹介、解説、ポートフォリオ、展示を作るチーム向けです。
使う場面
- ✓訪問者がスクロールすると、カメラが一つの世界の中を動く3Dストーリーが欲しいとき。
- ✓製品やポートフォリオに、一つの連続した3D場面の中で動く対話的な物が必要なとき。
- ✓動画やセクションを重ねるだけでは、必要な奥行きが伝わらないとき。
スキルのリンク
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/build-threejs-scroll-worlds/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“訪問者がスクロールすると、カメラが一つの製品モデルの周りを動く、スクロール連動の3D製品紹介を作ってください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、一つのリアルタイムの3D場面を作り、ページのスクロール位置を章に対応させます。スクロールに応じてカメラ、光、素材、文字が変わり、場面自体はライブのまま続きます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Build Three.js Scroll Worlds
Build one detailed real-time world and use native document scroll as its deterministic conductor. Keep the renderer, scene graph, and spatial continuity alive while camera composition, light, fog, animation, copy, and interaction focus move through authored chapters.
The mechanism is one persistent Three.js world + one normalized reversible scroll state. If removing either makes the experience collapse into stacked sections, this skill applies.
The exact Kage demo proves the quality bar; it is staging, not a mandatory subject or layout. Use its detailed anatomy only when the requested direction benefits from it: references/kage-anatomy.md.
Route the request correctly
- Use
threejsfor a single interactive scene with no scroll-authored journey. - Use
scroll-world-storytellingwhen deciding between real-time 3D, pre-rendered video, and DOM-first storytelling. - Use
scroll-scrubbed-visual-sequencefor a video or image sequence whose time is scrubbed by scroll. - Use
cinematic-scroll-storytellingfor DOM-first GSAP/Lenis choreography. - Use this skill when objects must remain truly spatial and interactive while scroll moves through several compositions in one live WebGL world.
Do not disguise a video as Three.js. The public oso95/scroll-world project, reviewed at commit 71cc36d, is a strong reference for intake, scene ledgers, budget gates, mobile-specific composition, config-driven playback, and seam QA, but its renderer is a pre-generated video chain. This skill adopts those structural strengths while retaining real geometry, materials, lighting, raycasting, and camera control.
Read the build references
Before implementing a new world, read:
- references/world-bible.md for intake, art direction, scene, material, texture, and interaction ledgers;
- references/realtime-architecture.md for the scene graph, conductor, camera, loading, interaction, and lifecycle patterns;
- references/quality-and-qa.md before optimization and final verification.
Copy references/scroll-conductor.js when a project needs a portable native-scroll conductor rather than a framework-specific implementation.
Start with the output, not the template
Determine what the world is for: a landing page, portfolio, museum chapter, product explanation, game teaser, editorial essay, data story, or another spatial experience. Do not force every request into a hero-plus-CTA layout.
Discover only what is unknown:
- the subject, audience, and ordered story beats;
- the art direction and emotional arc;
- whether the world is continuous, portal-connected, or composed as adjacent sets;
- the target devices and minimum acceptable hardware;
- how interactive the world should be beyond scrolling;
- available models, textures, brand assets, audio, and copy;
- the initial-load and total-download budget.
If the user supplied an approved reference or working scene, inspect it first and carry its real geometry, materials, textures, light ratios, camera values, and motion constants into the ledger. Do not replace measured details with adjectives.
Write the world bible before code
Define one reusable visual grammar:
- scale system and unit convention;
- silhouette language and level of stylization;
- palette and per-chapter accent progression;
- material families and wear logic;
- key, fill, rim, practical, and emissive light roles;
- fog, haze, particles, weather, and post-processing;
- typography, DOM composition, and near-plane foreground rules;
- motion grammar for camera, ambient objects, and interactions.
Every visible detail must support the same world. Random noise, unrelated texture packs, arbitrary particle effects, and one-off materials create complexity without cohesion.
Author a scene ledger
Use 4–8 chapters for most experiences. Store the full contract as data rather than scattering thresholds through CSS and the render loop:
const chapters = [
{
id: "threshold",
scrollWeight: 1.25,
copy: {
eyebrow: "Chapter 01",
title: "Enter the archive",
body: "A spatial collection revealed through motion."
},
camera: {
position: [0, 3.8, 13.5],
target: [0, 2.4, -8],
fov: 38,
mobile: { position: [0, 4.8, 18
よくある質問
ただの動画をページに置いたものですか?
いいえ。動画を3Dとして見せるべきではないとスキルは述べています。場面はライブで、対話的です。
もっと簡単な方法はいつ使うべきですか?
スクロールのストーリーがない一つの3D場面なら、スキルはより簡単なThree.jsの方法を勧めます。
通常のページスクロールを使いますか?
はい。ページ本来のスクロールがストーリーを動かすので、体験は予測しやすいままです。
詳細
作者による元の説明
Build rich, scroll-controlled real-time Three.js experiences as one persistent 3D world whose camera, lighting, atmosphere, materials, objects, DOM story, and interactions evolve across authored chapters. Use for 3D scrollytelling, scroll-driven WebGL worlds, camera journeys, interactive portfolios, product stories, exhibitions, explainers, game or film microsites, spatial narratives, and multi-scene websites where native scroll should travel through one continuous place. Not limited to landing pages.
repo: MengTo/Skills
人気
- GitHubのスター
- 7.2k
- ランキング
- #13408
- ライセンス
- MIT
- 更新日
- 2026/11/1
コメント
- …
このリポジトリの他のスキル
3d-cloth-material
7.2kThree.js で、糸の織り、柔らかい光沢、自然な襞、裾、縫い目を持つ、本物の織物らしい布を作るようエージェントを支援します。
3d-falling-leaves
7.2k3D のシーンに、回転し、風に流され、カメラの動きに合わせて再利用される、本物らしい落ち葉を加えるようエージェントを支援します。
3d-four-seasons
7.2k3D のシーンに、春、夏、秋、冬の見た目を加え、シーン全体を作り直さずに、茂み、光、空、雪を変えるようエージェントを支援します。
3d-high-poly-models
7.2k滑らかな形と自然な縁をもつ、詳細な3Dモデルを作り、その後、Web で快適に動く軽いバージョンを準備するようエージェントを支援します。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。