Communitygithub.com

SamuelChien/mega-skills-collection

3D 게임 개발 원리: 렌더링, 셰이더, 물리, 카메라

mega-skills-collection란 무엇인가요?

이 기술은 3D 게임 개발의 핵심 원리를 체계적으로 설명합니다. 렌더링 파이프라인(버텍스 처리, 래스터화, 프래그먼트 처리)의 최적화 기법(절두체 컬링, 폐색 컬링, LOD, 배칭)을 다루며, 버텍스/프래그먼트/컴퓨트 셰이더의 용도와 커스텀 셰이더 작성이 필요한 상황을 제시합니다. 3D 물리에서는 충돌 형태(박스, 구체, 캡슐, 메시)와 원칙(단순 충돌체-복잡한 시각물, 레이어 기반 필터링, 레이캐스팅)을 다루고, 카메라 시스템(3인칭, 1인칭, 등각, 궤도)과 느낌(부드러운 추종, 충돌 회피, 선행 보기, FOV 변화)을 설명합니다. 또한 조명 유형(방향광, 점광, 스포트라이트, 앰비언트)과 성능 고려사항(실시간 그림자 비용, 베이크, 섀도우 캐스케이드), LOD 전략(거리별 모델 상세도), 안티 패턴(메시 콜라이더 남용, 모바일 실시간 그림자, 단일 LOD 등)을 포함합니다. 이 기술은 Claude Code, Cursor, Codex 등에서 사용할 수 있으며, 3D 게임 시스템 설계 시 효율적인 의사결정을 돕습니다.

지원 대상~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. 카메라 시스템

카메라 유형

유형용도
3인칭액션, 어드벤처
1인칭몰입형, 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".

관련 스킬