计算机工程与应用 ›› 2019, Vol. 55 ›› Issue (9): 157-161.DOI: 10.3778/j.issn.1002-8331.1801-0298

• 图形图像处理 • 上一篇    下一篇

基于几何着色器的流场动态可视化研究与实现

樊  宇1,吕晓琪1,2,张继凯1,王月明1,张信雪1   

  1. 1.内蒙古科技大学 信息工程学院,内蒙古 包头 014010
    2.内蒙古工业大学,呼和浩特 010051
  • 出版日期:2019-05-01 发布日期:2019-04-28

Research and Realization of Flow Field Dynamic Visualization Based on Geometric Shader

FAN Yu1, LV Xiaoqi1,2, ZHANG Jikai1, WANG Yueming1, ZHANG Xinxue1   

  1. 1.School of Information Engineering, Inner Mongolia University of Science and Technology, Baotou, Inner Mongolia 014010, China
    2.Inner Mongolia University of Technology, Hohhot 010051, China
  • Online:2019-05-01 Published:2019-04-28

摘要: 为有效解决复杂流场可视化效率低下问题,加快可视化速度,提出了一种基于几何着色器的快速流场可视化算法。在流场可视化的过程当中引入几何着色器,利用GPU的并行处理能力和强大的图像处理能力对流场实时地进行箭头和流线的绘制,然后采用积分颜色映射方法,与常规的线性颜色映射法相比较,改善了颜色的均匀分布,增强流场强度层次感。实验表明,该算法可以有效地反映流场特征分布,减少可视化过程中的数据传输量,降低资源浪费,提高可视化渲染效率。

关键词: 流场可视化, 几何着色器, 颜色映射, 箭头法, 流线法

Abstract: In order to effectively solve the problem of the visualization efficiency of complex flow field, a fast flow field visualization algorithm based on geometric shader is proposed. The flow field is drawn in real-time by streamlines and arrows, the geometric shader is introduced into the process of the flow field visualization while using the parallel processing ability and the strong image processing ability of GPU. Compared with the conventional linear mapping method, the integral color mapping method improves the uniform distribution of color and enhances the sense of layering in flow field intensity. The experiment shows that this algorithm can effectively reflect the distribution of flow field characteristics, reduce the data transmission in the visualization process, minimize the waste of resources, and improve the visualization rendering efficiency.

Key words: flow field visualization, geometric shader, color mapping , arrow method, streamline method