中EN

Chapter 28. Practical Post-Process Depth of Field — Earl Hammon Jr. (Infinity Ward)

Markdown1 KB 原始文件

Summary

CoD4/Modern Warfare DoF: prioritize quality UX over physical accuracy; SM2.0. Background gather (Scheuermann-style) leaves sharp FG silhouettes. Scatter-as-gather too expensive/ringy. Solution: blur the near CoC itself so FG bleeds past silhouettes.

Pipeline: (1) downsample near CoC (+ medium blur color in RGB) to 1/4; (2) Gaussian blur CoC; (3) D = 2*max(D0, DB)-D0 edge expansion then tiny blur; (4) variable-width blur via piecewise lerp among unblurred / 17-tap small / medium / large. Artistic piecewise-linear CoC vs depth (near/far regions). FPS: separate weapon vs world CoC (negative depth flag). ~9.6 texels/pixel, ~1–1.5 ms at 1024x768 on X1900/7900. Limitations: focused bleeds onto BG; huge near radius looks like whole-screen smear; transparency ignored (usually OK).

引用这一章的笔记

输入关键词开始搜索

滚轮或双指缩放 · 拖动平移 · 双击放大 / 还原