基于细分着色的飞行仿真地形建模方法
详细信息    查看全文 | 推荐本文 |
  • 英文篇名:Tessellation-based Terrain Modeling Algorithm for Flight Simulation
  • 作者:宋歌 ; 潘卫军 ; 季玉龙
  • 英文作者:SONG Ge;PAN Weijun;JI Yulong;College of Air Traffic Management,Civil Aviation Flight Univ.of China;School of Aeronautics & Astronautics,Sichuan Univ.;
  • 关键词:飞行仿真 ; 细分着色 ; 几何裁剪图 ; 图形处理器 ; 地形建模
  • 英文关键词:flight simulation;;tessellation;;geometry clipmaps;;GPU;;terrain modeling
  • 中文刊名:SCLH
  • 英文刊名:Advanced Engineering Sciences
  • 机构:中国民用航空飞行学院空中交通管理学院;四川大学空天科学与工程学院;
  • 出版日期:2019-01-16 11:06
  • 出版单位:工程科学与技术
  • 年:2019
  • 期:v.51
  • 基金:国家自然科学基金委员会民航联合研究基金资助项目(U1733203)
  • 语种:中文;
  • 页:SCLH201901026
  • 页数:8
  • CN:01
  • ISSN:51-1773/TB
  • 分类号:201-208
摘要
针对飞行仿真中大地形数据量大、细节丰富导致的渲染负载重、帧率不稳定问题,提出一种基于细分着色的地形建模方法。该方法以几何裁剪图为框架构建视点相关的多分辨率地形结构。首先,在CPU中生成若干个细分控制点并存入顶点缓存。每层几何裁剪图根据顶点缓存中的细分控制点在索引缓存中生成能够表示几何裁剪图结构框架和状态的索引点,经CPU传至GPU。其次,在GPU读取索引点后通过细分着色器生成自适应三角形面片。在渲染循环的更新阶段,仅需对几何裁剪图的变化区域进行索引点替换,可完成几何裁剪图的状态切换。最后,按照自内向外的顺序,依次对每层(最内层除外)几何裁剪图的内侧边(与下一层的共享边)进行增加细分着色控制点的操作,从而增加内侧边三角形面片,使其与内层几何裁剪图相对应,消除几何裁剪图相邻层次间因分辨率不同引起的"裂缝"现象。实验证明,该方法能充分利用显卡硬件的最新特性,在实时渲染中减少CPU向GPU传输的顶点数量,使渲染负载相对平衡,提升渲染效率和地形实时漫游的帧率稳定性,并提供一种简单有效的"裂缝"消除方法,在保证大地形细节真实程度的同时,满足飞行仿真中对大地形绘制实时性与稳定性的要求。
        In order to solve problems of heavy rendering loads and unstable frame rates caused by huge data and rich details of large terrain in flight simulation, a terrain modeling method based on Tessellation was proposed. The key idea of the method is to build a view-dependent multiresolution LOD structure of terrain based on geometry clipmaps. Firstly, several Tessellation control points, which are able to express structures and all states of geometry clipmaps by index groups, were generated in CPU and stored in vertex cache. Then, index points were generated in index cache by each level of geometry clipmaps according to Tessellation control points in vertex cache and transferred from CPU to GPU.Secondly, adaptive triangle patches were generated by GPU tessellation shader according to index points in GPU. In update phase of rendering cycle, states switching of geometry clipmaps was did by simply replacing index points in changing regions. Finally, ‘cracks' caused by different resolutions between adjacent levels were eliminated by modifying outer tessellation level factor of shared edges between levels, which can generate triangle patches from inside to outside at shared edges of outer level corresponding to the inner level. The experimental results showed the proposed method can make full use of new features of the latest graphics cards. It is able to decrease data transmission from CPU to GPU while achieves the balance of rendering loads, and improves the rendering efficiency and real-time frame rate stability during terrain navigation. The proposed method of crack eliminating is simple and effective, which ensures the real degree of details of large terrain and meets the requirements of stable real-time terrain rendering in flight simulation.
引文
[1]Pajarola R,Gobbetti E.Survey on semi-regular multiresolution models for interactive terrain rendering[J].The Visual Computer,2007,23(8):583-605.
    [2]Losasso F,Hoppe H.Geometry clipmaps:Terrain rendering using nested regular grids[J].ACM Transactions on Graphics,2004,23(3):769-776.
    [3]Asirvatham A,Hoppe H.Terrain rendering using GPU-based geometry clipmaps[M]//GPU Gems 2:Programming Techniques for High-Performance Graphics and GeneralPurpose Computation.Upper Saddle River:Addison-Wesley,2005:27-45.
    [4]Dimitrijevi?A M,Ran?i?D D.Ellipsoidal clipmaps-Aplanet-sized terrain rendering algorithm[J].Computers and Graphics,2015,52:43-61.
    [5]Tang Bing,Miao Lanfang.Real-time rendering for 3D game terrain with GPU optimization[C]//Proceedings of the 2010Second International Conference on Computer Modeling and Simulation.Sanya:IEEE,2010:198-201.
    [6]Feldmann D,Hinrichs F.GPU based single-pass ray casting of large heightfields using clipmaps[EB/OL].[2018-01-14].http://pdfs.semanticscholar.org/b60c/24d8611893c3693fd3257424c5fba0cb0f73.pdf.
    [7]Yusov E,Shevtsov M.High-performance terrain rendering using hardware tessellation[J].Journal of WSCG,2011,19(3):85-92.
    [8]Zhang Bingqiang,Zhang Limin,Ai Zuliang,et al.Screenspace adaptive tessellation for terrain rendering[J].Journal of Image and Graphics,2012,17(11):1431-1438.[张兵强,张立民,艾祖亮,等.屏幕空间自适应的地形Tessellation绘制[J].中国图象图形学报,2012,17(11):1431-1438.]
    [9]Kang H Y,Jang H Y,Cho C S,et al.Multi-resolution terrain rendering with GPU tessellation[J].The Visual Computer,2015,31(4):455-469.
    [10]Han Min,Chen Hongbo,Zhen Danchen.Terrain simplification algorithm based on morton compressing in block and hybrid generating rule[J].Journal of Computer-Aided Design and Computer Graphics,2014,26(2):293-301.[韩敏,陈鸿博,郑丹晨.基于分块Morton压缩和混合生成准则的地形简化方法[J].计算机辅助设计与图形学学报,2014,26(2):293-301.]
    [11]Alderson T,Samavati F.Optimizing line-of-sight using simplified regular terrains[J].The Visual Computer,201531(4):407-421.
    [12]Liu Y,Chang H,Dai S L.Large scale terrain tessellation in flight simulator visual system[C]//Proceedings of 2014IEEE Chinese Guidance,Navigation and Control Conference.Yantai:IEEE,2014:1028-1033.
    [13]Mikhaylyuk M V,Timokhin P Y,Maltsev A V.A method of earth terrain tessellation on the GPU for space simulators[J].Programming and Computer Software,2017,43(4):243-249.
    [14]Barnard C.Applying tessellation to clipmap terrain rendering[EB/OL].(2014-10-17)[2018-01-14].https://ir.canterbury.ac.nz/bitstream/handle/10092/14440/hons_1401.pdf.
    [15]Shreiner D,Sellers G,Kessenich J,et al.OpenGL编程指南[M].王锐,等译.8版.北京:机械工业出版社,2014.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700