# 体绘制

**体绘制**是一套技术，用于显示离散采样的三维数据集的二维投影，例如一叠 CT 或 MRI 切片，或流体模拟的输出，而无需先为数据拟合一个几何表面。渲染器不提取多边形，而是为每个采样点赋予光学属性，并沿观察射线对这些属性进行积分以形成图像。<sup>[1](https://www.sciencedirect.com/topics/computer-science/volume-rendering)</sup><sup> • </sup><sup>[3](https://graphics.stanford.edu/papers/volume-cga88/)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 直接可视化三维体数据集，无需等值面的中间几何表示<sup>[1](https://www.sciencedirect.com/topics/computer-science/volume-rendering)</sup> |
| 算法族 | 四类：光线投射、重采样或剪切-扭曲、纹理切片和抛雪球法<sup>[1](https://www.sciencedirect.com/topics/computer-science/volume-rendering)</sup> |
| 奠基论文 | 德雷宾（Drebin）、卡彭特（Carpenter）和汉拉汉（Hanrahan），SIGGRAPH 1988，《ACM SIGGRAPH Computer Graphics》22(4):65–74<sup>[2](https://www.researchgate.net/publication/220721927_Volume_Rendering)</sup> |
| 光学模型 | 最常见的模型将体数据视为同时发射和吸收光的粒子；参数来自数据值或传递函数<sup>[4](https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-39-volume-rendering-techniques)</sup> |
| 传递函数 | 将数据值映射为颜色和不透明度；实践中以简单的一维、仅依赖数据值的传递函数为主<sup>[5](https://onlinelibrary.wiley.com/doi/10.1111/cgf.12934)</sup><sup> • </sup><sup>[6](https://diglib.eg.org/items/29d8f6e3-ab08-4cf3-b3b1-36689d89e071)</sup> |
| 医学优势 | 在骨骼 CT 中，与表面渲染相比，能显示皮层下病变、轻微移位骨折和隐蔽区域，且伪影很少<sup>[7](https://pubmed.ncbi.nlm.nih.gov/8741053/)</sup> |

## 光学模型与合成

体绘制基于一个光学模型，该模型描述体数据中的粒子如何与光相互作用。最常用的模型假设体数据由同时发射和吸收光的粒子组成；更复杂的模型加入局部光照、体积阴影和散射。光学参数直接由数据值指定，或通过对数据应用一个或多个传递函数计算得到。<sup>[4](https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-39-volume-rendering-techniques)</sup>

图像通过沿所有观察射线对体数据进行采样，并累积所得光学属性来生成。对于发射-吸收模型，累积的颜色和不透明度由传递函数为每个采样点的数据值所赋的颜色和不透明度计算得到。累积和中的乘积表示采样点处发射的光在到达眼睛之前被衰减的程度，该公式通过对射线上的采样点排序并迭代累积颜色和不透明度来高效求值。<sup>[4](https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-39-volume-rendering-techniques)</sup> 合成可以前到后或后到前进行；前到后遍历使渲染器能够跟踪累积不透明度，并在累积不透明度达到 1 时提前终止射线。<sup>[1](https://www.sciencedirect.com/topics/computer-science/volume-rendering)</sup>

由于离散求和近似连续光学模型，采样率强烈影响准确性和图像质量。当采样率变化时，必须校正传递函数的不透明度，使整体图像强度保持一致；切片较少时，不透明度会被放大。<sup>[4](https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-39-volume-rendering-techniques)</sup>

## 算法族

体绘制算法分为四类：光线投射、重采样或剪切-扭曲分解、纹理切片和抛雪球法。<sup>[1](https://www.sciencedirect.com/topics/computer-science/volume-rendering)</sup>

**光线投射。** 光线投射是最常见的技术，属于图像序方法，因为计算从输出图像而非输入体数据出发。从眼睛出发，通过图像平面的每个像素向体数据投射一条射线。大多数实现使用简化的光传输模型，其中光子在体素处恰好散射一次；光源与散射体素之间的吸收被忽略，而观察者与散射体素之间的吸收被建模。<sup>[1](https://www.sciencedirect.com/topics/computer-science/volume-rendering)</sup>

**纹理切片。** 基于纹理的方法通过在体数据内部渲染一组二维几何图元（即代理几何）来执行采样和合成。代理几何被光栅化，并按后到前或前到后的顺序混合到帧缓冲中，插值纹理坐标驱动数据查找以及对传递函数纹理的依赖查找。以二维纹理切片存储的数据渲染更快，但需要三倍内存，因为切片沿每个主轴方向被复制，而且其采样距离随视点变化，导致相机移动时出现强度变化和跳变伪影。<sup>[4](https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-39-volume-rendering-techniques)</sup>

**抛雪球法与剪切-扭曲。** 抛雪球法是一种对象序方法，将体数据采样点作为抗锯齿点投影到图像平面；以这个名称，它成为渲染体数据的主导方法之一，与光线追踪和平面纹理映射并列。<sup>[8](https://graphics.stanford.edu/papers/points/levoy-pointbook-ch2.pdf)</sup> 剪切-扭曲分解先将体数据重采样到中间剪切空间，再将结果扭曲到最终图像。<sup>[1](https://www.sciencedirect.com/topics/computer-science/volume-rendering)</sup>

## 历史

如今所称的体绘制由当时在皮克斯（Pixar）的鲍勃·德雷宾（Bob Drebin）、洛伦·卡彭特（Loren Carpenter）和[帕特·汉拉汉](https://www.edgepedia.org/zh/pat-hanrahan)（Pat Hanrahan）在 1988 年 SIGGRAPH 论文中发明，该论文体现了三个关键思想：基于体数据中梯度的方向着色、用于组合体数据切片的数字合成，以及应用于体数据的图像扭曲。体数据的梯度着色最早出现在卡尔-海因茨·赫内（Karl-Heinz Hoehne）1986 年的论文中，他称之为灰度梯度着色；合成技术则可追溯至波特（Porter）和达夫（Duff）1984 年的论文，并进一步追溯到埃德·卡特穆尔（Ed Catmull）和阿尔维·雷·史密斯（Alvy Ray Smith）在 20 世纪 70 年代中期对阿尔法通道的发明。<sup>[9](https://lightfield.stanford.edu/~levoy/award_acceptance_excerpt.html)</sup>

同年，当时在[北卡罗来纳大学教堂山分校](https://www.edgepedia.org/zh/university-of-north-carolina-at-chapel-hill)（University of North Carolina at Chapel Hill）、后来在斯坦福大学（Stanford）的计算机图形学研究者马克·莱沃伊（Marc Levoy）发表了一种方法：直接为每个体素着色，使用局部梯度向量作为表面法线，应用非二值分类算子以免丢失微小或定义不清的特征，并沿观察射线从后到前合成所得颜色和不透明度。他的论文指出，该技术能显示轮廓平滑、混叠伪影很少的表面，并给出了分子图形学和医学成像中的示例。<sup>[3](https://graphics.stanford.edu/papers/volume-cga88/)</sup> 体绘制最初的用途是显示医学数据。<sup>[9](https://lightfield.stanford.edu/~levoy/award_acceptance_excerpt.html)</sup>

## 传递函数

传递函数是直接体绘制的核心：它将标量和多变量数据转换为颜色和不透明度，以表达和揭示数据中的相关特征，同时也作为编码领域知识、设计材质外观以及实现复杂数据交互式探索的工具。<sup>[5](https://onlinelibrary.wiley.com/doi/10.1111/cgf.12934)</sup> 传递函数研究按维度、派生和聚合属性、渲染方面、自动化以及用户界面进行分类。<sup>[5](https://onlinelibrary.wiley.com/doi/10.1111/cgf.12934)</sup>

尽管根据输入数据值之外所用度量（如梯度幅值或曲率）定义了大量传递函数类型，但实践中大部分使用的仍是简单的一维、仅依赖数据值的传递函数。<sup>[6](https://diglib.eg.org/items/29d8f6e3-ab08-4cf3-b3b1-36689d89e071)</sup> 将数据值与梯度幅值结合的二维传递函数可以分离材质边界：数据值与梯度幅值联合分布中的拱形表示边界，画笔将颜色和不透明度绘制到相应区域。<sup>[4](https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-39-volume-rendering-techniques)</sup>

## 应用与比较

**医学成像**是体绘制临床应用历史最长的领域。在骨骼三维 CT 中，表面渲染能有效显示总体三维关系，但阶梯伪影更多，且无法显示隐藏在覆盖骨后方或皮层下方的病变，而体绘制能有效显示皮层下病变、轻微移位骨折和隐蔽区域，且伪影很少。<sup>[7](https://pubmed.ncbi.nlm.nih.gov/8741053/)</sup> 与表面渲染相比，直接体绘制的主要优势是保留内部信息，从而提供更多关于不同结构空间关系的信息。<sup>[10](https://pmc.ncbi.nlm.nih.gov/articles/PMC3138940/)</sup>

**电影级渲染**通过全局光照扩展了这种方法。传统体绘制使用基于黎曼积分的局部光照模型，不考虑散射光或环境光遮蔽；电影级渲染则使用蒙特卡洛路径追踪算法，追踪相邻组织之间的散射和折射。在一项 2022 年关于面部骨骼 CT 和 CBCT 的研究中，电影级渲染在深度感知和三维感方面具有优势，而体绘制在表面锐度方面显示优势，电影级处理可能使表面模糊并丢失信息。<sup>[11](https://pubmed.ncbi.nlm.nih.gov/35150863/)</sup>

**游戏引擎**如今也承载科学体绘制。一项 2025 年对[虚幻引擎5](https://www.edgepedia.org/zh/unreal-engine-5)（Unreal Engine 5）的调查发现，其稀疏体积纹理（Sparse Volume Textures）和异构体积（Heterogeneous Volumes）系统在修复引擎源代码中的整数溢出后，可以渲染高达 32k × 32k × 16k 体素的稀疏数据集，前提是压缩瓦片数据不超过40亿体素。作者在英伟达（NVIDIA）RTX 3500 Ada 笔记本电脑 GPU 上以约20帧/秒渲染了科伦博海底火山（Kolumbo submarine volcano）数据集，该数据集在稠密形式下约有60亿体素，其中约26亿体素非空。<sup>[12](https://arxiv.org/abs/2504.07485)</sup>

**制作与数据结构。** 在视觉特效中，紧凑的稀疏体数据结构 OpenVDB 于 2012 年发布，已成为行业标准，被电影行业使用的大多数商业软件包采用，包括 [Houdini](https://www.edgepedia.org/zh/houdini-software)、RenderMan、Arnold、[Blender](https://www.edgepedia.org/zh/blender-software) 和虚幻引擎，此后还扩展到医学成像、机器人学和机器学习应用。<sup>[13](https://www.siggraph.org/wp-content/uploads/2025/08/Courses.html)</sup>

## References

1. [Volume Rendering, ScienceDirect Topics overview](https://www.sciencedirect.com/topics/computer-science/volume-rendering)
2. [Drebin, Carpenter, Hanrahan (1988). Volume Rendering. SIGGRAPH 1988, ACM SIGGRAPH Computer Graphics 22(4):65–74](https://www.researchgate.net/publication/220721927_Volume_Rendering)
3. [Levoy, M. (1988). Display of Surfaces from Volume Data. IEEE Computer Graphics & Applications 8(3):29–37](https://graphics.stanford.edu/papers/volume-cga88/)
4. [Ikits, M., Kniss, J., Lefohn, A., Hansen, C. Volume Rendering Techniques, GPU Gems, Chapter 39, NVIDIA](https://developer.nvidia.com/gpugems/gpugems/part-vi-beyond-triangles/chapter-39-volume-rendering-techniques)
5. [Ljung, P. (2016). State of the Art in Transfer Functions for Direct Volume Rendering. Computer Graphics Forum 35(3):669–691](https://onlinelibrary.wiley.com/doi/10.1111/cgf.12934)
6. [Arens, S., Domik, G. (2010). A Survey of Transfer Functions Suitable for Volume Rendering. Eurographics/IEEE VGTC Symposium on Volume Graphics](https://diglib.eg.org/items/29d8f6e3-ab08-4cf3-b3b1-36689d89e071)
7. [Kuszyk, B.S. et al. (1996). Skeletal 3-D CT: advantages of volume rendering over surface rendering.](https://pubmed.ncbi.nlm.nih.gov/8741053/)
8. [Levoy, M. Points chapter, in *Point-Based Graphics*](https://graphics.stanford.edu/papers/points/levoy-pointbook-ch2.pdf)
9. [Marc Levoy, excerpt from SIGGRAPH 1996 Computer Graphics Achievement Award acceptance remarks](https://lightfield.stanford.edu/~levoy/award_acceptance_excerpt.html)
10. [Volume Visualization: A Technical Overview with a Focus on Medical Applications, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC3138940/)
11. [Steffen, T. et al. (2022). Three-dimensional perception of cinematic rendering versus conventional volume rendering using CT and CBCT data of the facial skeleton. Ann Anat 241:151905](https://pubmed.ncbi.nlm.nih.gov/35150863/)
12. [Schlüter, M. et al. (2025). Rendering Large Volume Datasets in Unreal Engine 5: A Survey. arXiv:2504.07485](https://arxiv.org/abs/2504.07485)
13. [OpenVDB, SIGGRAPH 2025 Courses](https://www.siggraph.org/wp-content/uploads/2025/08/Courses.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms › Computational geometry

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/volume-rendering

English original: https://www.edgepedia.org/volume-rendering
