当前位置>主页 > 期刊在线 > 计算机技术 >

计算机技术23年8期

一种基于WebGL 的矢量场轨迹绘制方法
黄俊勋,王伊,刘晋泽,柯水洲
(国防科技大学,湖南 长沙 410073)

摘  要:风场洋流数据具有数据量大、结构复杂且随时间变化等特点,可以使用粒子系统法,通过粒子的生成和粒子轨迹(矢量线)的绘制来模拟风场的运动和变化。文章使用粒子系统法对风场数据进行了可视化。同时,针对WebGL 中不同视野高度下粒子轨迹宽度不一致问题,提出了一种基于视高的粒子轨迹宽度自适应计算方法。实验结果表明,采用该文的粒子轨迹绘制优化方法对矢量场数据进行可视化时产生的粒子轨迹过渡平滑,轨迹线宽保持一致,极大地改善了可视化效果。


关键词:矢量场;粒子系统法;可视化;WebGL



DOI:10.19850/j.cnki.2096-4706.2023.08.023


中图分类号:TP391                  文献标识码:A                   文章编号:2096-4706(2023)08-0092-04


A Vector Field Trajectory Drawing Method Based on WebGL

HUANG Junxun, WANG Yi, LIU Jinze, KE Shuizhou

(National University of Defense Technology, Changsha 410073, China)

Abstract: Wind ocean current data has the characteristics of large amount of data, complex structure, and changes over time. The particle system method can be used to simulate the movement and change of wind field through particle generation and particle trajectory (vector line) drawing. This paper uses particle system method to visualize wind field data. At the same time, aiming at the inconsistency of particle trajectory width under different visual field heights in WebGL, an adaptive particle trajectory width calculation method based on visual field height is proposed. Experimental results show that using the particle trajectory drawing optimization method presented in this paper to visualize vector field data produces a smooth transition of particle trajectories, maintaining consistent trajectory linewidth, and greatly improving the visualization effect.

Keywords: vector field; particle system method; visualization; WebGL


参考文献:

[1] 张俊达. 海洋环境数据场三维可视化技术研究 [D]. 长沙:国防科学技术大学,2013.

[2] 李昭. 虚拟海洋环境时空数据建模与可视化服务研究 [D].杭州:浙江大学,2010.

[3] 陈楼衡. 海洋标量与矢量数据场的可视化技术研究 [D].杭州:浙江工业大学,2018.

[4] 李朱臻. 矢量场可视化概述与展望 [J]. 信息技术与信息化,2015(2):143-144.

[5] 李思昆,蔡勋,王文珂,等. 大规模流场科学计算可视化[M]. 北京:国防工业出版社,2013.

[6] 廖忠云,季民. 海洋风场三维可视化方法研究 [J]. 海洋信息,2016(2):1-5.

[7] LUGT H J,GOLLUB J P. Vortex Flow in Nature and Technology [J].American Journal of Physics,1985,53(4):381-381.

[8] 刘恒星. 基于粒子系统的Web 数字地球海洋矢量场数据动态可视化方法 [D]. 北京:中国科学院大学,2017.

[9] 辛文鹏,方京,夏伟. 基于WebGL 的海洋三维可视化系统设计与实现 [J]. 海洋信息,2018,33(3):44-48.

[10] WANG S Z,LI W W. Capturing the dance of the earth:Polar Globe:Real-time scientific visualization of vector field data to support climate science [J].Computers Environment and Urban Systems,2019,77:1-12.

[11] 曹柱. 基于GPU 的海洋水体环境多维可视化技术研究[D]. 青岛:中国海洋大学,2015.

[12] 李海杰. 基于OpenGL 的矢量场可视化方法研究与应用[D]. 沈阳:东北大学,2013.


作者简介:黄俊勋(1991—),男,汉族,湖南长沙人,研究实习员,硕士,研究方向:职业教育。