跳到正文
Skillpedia
通用编程48k · #4683

3d-games

它能做什么

这个 AI 智能体可以帮你理解 3D 游戏开发的基本原理。它会讲解画面是如何绘制到屏幕上的,如何用“着色器”(shader)制作视觉特效,如何模拟物理和碰撞,以及摄像机和光照是如何工作的。

适用场景

  • ✓学习 3D 游戏开发时。
  • ✓想弄清楚游戏画面是如何制作出来的时候。
  • ✓优化 3D 游戏性能时。

技能链接

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/game-development/3d-games/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/game-development/3d-games/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“游戏中的 3D 图形渲染是如何工作的?”

每周 5 个新技能,1 分钟读完。

工作原理

它会详细拆解渲染过程的各个步骤,从对象变换一直到最终显示在屏幕上。同时也会介绍一些让游戏运行更快、画面更有趣的技巧。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

3D Game Development

Principles for 3D game systems.


1. Rendering Pipeline

Stages

1. Vertex Processing → Transform geometry
2. Rasterization → Convert to pixels
3. Fragment Processing → Color pixels
4. Output → To screen

Optimization Principles

Technique Purpose
Frustum culling Don't render off-screen
Occlusion culling Don't render hidden
LOD Less detail at distance
Batching Combine draw calls

2. Shader Principles

Shader Types

Type Purpose
Vertex Position, normals
Fragment/Pixel Color, lighting
Compute General computation

When to Write Custom Shaders

  • Special effects (water, fire, portals)
  • Stylized rendering (toon, sketch)
  • Performance optimization
  • Unique visual identity

3. 3D Physics

Collision Shapes

Shape Use Case
Box Buildings, crates
Sphere Balls, quick checks
Capsule Characters
Mesh Terrain (expensive)

Principles

  • Simple colliders, complex visuals
  • Layer-based filtering
  • Raycasting for line-of-sight

4. Camera Systems

Camera Types

Type Use
Third-person Action, adventure
First-person Immersive, FPS
Isometric Strategy, RPG
Orbital Inspection, editors

Camera Feel

  • Frame-rate-independent smoothing; test camera collision and teleports
  • Collision avoidance
  • Look-ahead for movement
  • FOV changes for speed

5. Lighting

Light Types

Type Use
Directional Sun, moon
Point Lamps, torches
Spot Flashlight, stage
Ambient Base illumination

Performance Consideration

  • Real-time shadows are expensive
  • Bake when possible
  • Shadow cascades for large worlds

6. Level of Detail (LOD)

LOD Strategy

Distance Model
Near Full detail
Medium Reduced detail based on measured visual error
Far Low-detail mesh or billboard when visually appropriate

7. Anti-Patterns

❌ Don't ✅ Do
Mesh colliders everywhere Simple shapes
Real-time shadows on mobile Baked or blob shadows
One LOD for all distances Distance-based LOD
Unoptimized shaders Profile and simplify

Remember: 3D is about illusion. Create the impression of detail, not the detail itself.

When to Use

Use when implementing or profiling a 3D rendering pipeline, shaders, colliders, cameras, lighting or level-of-detail transitions.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Verification

Treat tables as design starting points, not guarantees. Prototype the selected mechanic, test accessibility and recovery paths, and measure frame timing, memory and behavior on target hardware before claiming completion. Store submission and licensing requirements must be checked against current official platform documentation.

常见问题

什么是“渲染管线”(rendering pipeline)?

它是 3D 游戏数据变成屏幕上所见图像的路径,会经过顶点处理、像素着色等多个阶段。

什么是“着色器”(shader)?

它是一些控制 3D 物体如何绘制的小程序,负责定义颜色、纹理和光照效果,从而做出水面、火焰或卡通风格等独特的视觉效果。

为什么碰撞检测要用简单形状,而不是复杂模型?

用简单形状(比如方块或球体)来检测碰撞,对电脑来说快得多,也更高效。即使物体在视觉上很复杂,游戏也能运行得更流畅。

详情

作者的原始描述

3D game development principles. Rendering, shaders, physics, cameras.

repo: sickn33/agentic-awesome-skills

热度

GitHub 星标
48k
排名
#4683
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能