Communitygithub.com

SamuelChien/mega-skills-collection

3Dゲーム開発の原則。レンダリング、シェーダー、物理、カメラ。

mega-skills-collection とは?

このスキルは、3Dゲーム開発の中核となる原則を提供します。レンダリングパイプライン、シェーダープログラミング、物理シミュレーション、カメラシステム、ライティング、LOD戦略など、主要な領域を網羅しています。各トピックは実践的なベストプラクティスとアンチパターンを明確に示しており、初心者から中級のゲーム開発者が効率的に学習・実装できるように設計されています。対応するプラットフォームは特定されていませんが、Unity、Unreal Engine、Godotなどの一般的な3Dゲームエンジンで動作する原則が含まれています。特に、最適化手法(フラスタムカリング、オクルージョンカリング、バッチング)や物理衝突形状の選択、カメラ操作の質感向上に関する具体的なテクニックを学べる点が有用です。SKILL.mdでは、表形式で各技法の目的や使用例が整理されており、開発者は即座にプロジェクトで応用できます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/3d-games

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

3Dゲーム開発

3Dゲームシステムの原則


1. レンダリングパイプライン

ステージ

1. 頂点処理 → ジオメトリの変換
2. ラスタライズ → ピクセルへの変換
3. フラグメント処理 → ピクセルの着色
4. 出力 → 画面へ

最適化の原則

技法目的
フラスタムカリング画面外のものをレンダリングしない
オクルージョンカリング隠れたものをレンダリングしない
LOD距離に応じて詳細度を下げる
バッチングドローコールをまとめる

2. シェーダーの原則

シェーダーの種類

種類目的
頂点シェーダー位置、法線
フラグメント/ピクセルシェーダー色、ライティング
コンピュートシェーダー汎用計算

カスタムシェーダーを書くべき場合

  • 特殊効果(水、火、ポータル)
  • スタイライズドレンダリング(トゥーン、スケッチ)
  • パフォーマンス最適化
  • 独自のビジュアルアイデンティティ

3. 3D物理

衝突形状

形状使用例
ボックス建物、木箱
球ボール、高速チェック
カプセルキャラクター
メッシュ地形(高負荷)

原則

  • シンプルなコライダー、複雑なビジュアル
  • レイヤーベースのフィルタリング
  • 視線判定にはレイキャスティング

4. カメラシステム

カメラの種類

種類用途
三人称アクション、アドベンチャー
一人称没入型、FPS
アイソメトリックストラテジー、RPG
オービタルインスペクション、エディター

カメラの操作性

  • スムーズフォロー(lerp)
  • 衝突回避
  • 移動に応じた先読み
  • 速度に応じたFOV変更

5. ライティング

光源の種類

種類用途
ディレクショナル太陽、月
ポイントランプ、たいまつ
スポット懐中電灯、舞台
アンビエントベース照明

パフォーマンスに関する考慮事項

  • リアルタイムシャドウは高負荷
  • 可能な場合はベイクする
  • 大規模ワールドではシャドウカスケードを使用

6. レベルオブディテール(LOD)

LOD戦略

距離モデル
近い完全な詳細
中距離三角形50%
遠い25%またはビルボード

7. アンチパターン

❌ やらないこと✅ やるべきこと
メッシュコライダーの乱用シンプルな形状
モバイルでリアルタイムシャドウベイクまたはブロブシャドウ
全距離で同一LOD距離に応じたLOD
最適化されていないシェーダープロファイリングと簡略化

覚えておいてください: 3Dは錯覚です。詳細そのものではなく、詳細の印象を作り出しましょう。

使用タイミング

このスキルは、概要に記載されたワークフローやアクションを実行する場合に適用可能です。

制限事項

  • このスキルは、タスクが上記の範囲に明確に一致する場合にのみ使用してください。
  • 出力を、環境固有の検証、テスト、専門家レビューの代替として扱わないでください。
  • 必要な入力、権限、安全境界、成功基準が不足している場合は、立ち止まって明確化を求めてください。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Create forensically sound bit-for-bit disk images using dd and dcfldd while preserving evidence integrity through hash verification.

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

関連スキル