系统仿真学报 ›› 2016, Vol. 28 ›› Issue (10): 2407-2414.

• 仿真建模理论与方法 • 上一篇    下一篇

在线片元剔除的多片元效果高效绘制方法

周果1,2,3, 朱登明1,2, 王兆其1,2, 魏毅1,2   

  1. 1.中国科学院计算技术研究所,北京 100190;
    2.移动计算与新型终端北京市重点实验室,北京 100190;
    3.中国科学院大学,北京 100049
  • 收稿日期:2016-05-09 修回日期:2016-07-22 出版日期:2016-10-08 发布日期:2020-08-13
  • 作者简介:周果(1987-),男,陕西,博士生,研究方向为计算机图形学;朱登明(1973-),男,安徽,博士,副研究员,研究方向为自然现象模拟和可视化。
  • 基金资助:
    国家自然科学基金(61173067,61379085,61532002),国家863计划项目(2015AA016401)

Online Fragment Culling for Efficient Rendering of Multi-Fragment Effects

Zhou Guo1,2,3, Zhu Dengming1,2, Wang Zhaoqi1,2, Wei Yi1,2   

  1. 1. Institute of Computing Technology, Chinese Academy of Sciences, Beijing 100190, China;
    2. Beijing Key Laboratory of Mobile Computing and Pervasive Device, Beijing 100190;
    3. University of Chinese Academy of Sciences, Beijing 100049, China
  • Received:2016-05-09 Revised:2016-07-22 Online:2016-10-08 Published:2020-08-13

摘要: 多片元效果有实时透明等重要应用,它按深度顺序处理每个像素的所有片元。已有的k-buffer算法在单遍绘制场景时,剥取并缓存距离视点最近的多个片元,这需要避免缓存更新时的读写冲突,降低了在复杂场景上的计算效率。对此提出利用帧间的时空相关性,允许单遍绘制时在线地剔除缓存外片元的方法。描述建立半堆结构的片元缓存的过程,分析最坏情况下的时间复杂度,在绘制每帧时反向重投影构造剔除界面。由于减少了缓存更新操作且不需要预处理,复杂场景特别在被漫游或发生变化时的绘制效率被显著提高。

关键词: 深度剥离, 堆排序, 片元临界区, 反向重投影

Abstract: Multi-fragment effects such as real-time transparency are rendered by visiting the per-pixel fragments in depth order. The k-buffer algorithm rendered the scene in a single pass to obtain several layers of fragments. The read-modify-write hazard while updating the buffer should be avoided thus the performance was likely to be hit hard. The temporal and spatial coherence among frames were exploited to cull the input fragments in an online manner. A fragment cache based on a semi-heap was proposed. The worst case scenario of the time complexity was analyzed. The reverse reprojection was employed to construct the culling interface on the fly while rendering a frame. Since the buffer updating operations are effectively reduced and no preprocessing is required, the complexity scene during walkthrough or changing can be rendered efficiently.

Key words: depth peeling, heap sort, fragment interlock, reverse reprojection

中图分类号: