地球信息科学学报 ›› 2018, Vol. 20 ›› Issue (8): 1047-1054.doi: 10.12082/dqxxkx.2018.180070
收稿日期:
2018-01-23
修回日期:
2018-05-17
出版日期:
2018-08-25
发布日期:
2018-08-24
通讯作者:
佘江峰
E-mail:15651869037@163.com;gisjf@nju.edu.cn
作者简介:
作者简介:刘君妍(1994-),女,江苏南通人,硕士生,主要从事三维GIS及其应用研究。E-mail:
基金资助:
LIU Junyan(), CHEN Yaqian, GAO Yiyuan, LI Chuang, SHE Jiangfeng*(
)
Received:
2018-01-23
Revised:
2018-05-17
Online:
2018-08-25
Published:
2018-08-24
Contact:
SHE Jiangfeng
E-mail:15651869037@163.com;gisjf@nju.edu.cn
Supported by:
摘要:
作为地理信息系统中的重要组成部分,矢量数据在三维GIS中发挥着重要作用,如指示地理对象、解释空间关系和丰富图面信息等。随着图形硬件的迅速发展和虚拟地理环境的广泛应用,为了在三维地图中精确、高效地绘制出具有复杂样式的线性地图符号,本文提出了一种利用OpenGL Shader Language的三维地形表面线状符号渲染方法。该方法通过对矢量数据进行编码形成纹理数据,完成矢量数据在程序与GPU间的传输;将地形单元和矢量线段间的映射关系存储在索引纹理中,用于关联线段的实时查找;通过计算当前屏幕片元与关联矢量线段的空间位置关系,判断片元所属符号的区域,进而设置片元的颜色。实验表明,本方法可在三维地形上高质量地渲染出几种典型的复杂线状符号,并能保持较好的渲染性能。
刘君妍, 陈雅茜, 高亦远, 李创, 佘江峰. 一种基于屏幕的三维地图线状符号渲染方法[J]. 地球信息科学学报, 2018, 20(8): 1047-1054.DOI:10.12082/dqxxkx.2018.180070
LIU Junyan,CHEN Yaqian,GAO Yiyuan,LI Chuang,SHE Jiangfeng. A Screen-based Method for Rendering 3D Linear Map Symbol[J]. Journal of Geo-information Science, 2018, 20(8): 1047-1054.DOI:10.12082/dqxxkx.2018.180070
表1
平均渲染帧速对比"
序号 | 窗口大小(宽×高,像元) | 地形三角形数量/万条 | 矢量节点数量(多条矢量线) | 符号类型 | 平均渲染帧速/fps |
---|---|---|---|---|---|
1 | 800×600 | 309.4 | 2 000 | 道路 | 165.1 |
2 | 1280×960 | 309.4 | 2 000 | 道路 | 89.2 |
3 | 1920×960 | 309.4 | 2 000 | 道路 | 60.7 |
4 | 1280×960 | 77.28 | 2 000 | 道路 | 112.4 |
5 | 1280×960 | 1239.68 | 2 000 | 道路 | 52.0 |
6 | 1280×960 | 309.4 | 800 | 道路 | 102.4 |
7 | 1280×960 | 309.4 | 10 000 | 道路 | 81.6 |
8 | 1280×960 | 309.4 | 2 000 | 单色线 | 97.3 |
9 | 1280×960 | 309.4 | 2 000 | 边界线 | 82.5 |
10 | 1280×960 | 309.4 | 2 000 | 组合 | 85.3 |
[1] |
程朋根,龚健雅,眭海刚.GIS中地图符号设计系统的设计与实现[J].中国图象图形学报,2000,5(12):1006-1011.
doi: 10.3969/j.issn.1006-8961.2000.12.006 |
[ Cheng P G, Gong J Y, Gui H S.Design and implement of map symbol design system in GIS[J]. Journal of Image and Graphics, 2000,5(12):1006-1011. ]
doi: 10.3969/j.issn.1006-8961.2000.12.006 |
|
[2] | 陈鸿,汤晓安,谢耀华,等.基于视点相关透视纹理的矢量数据在三维地形上的叠加绘制[J].计算机辅助设计与图形学学报,2010,22(5):753-761. |
[ Chen H, Tang X A, Xie Y H, et al.Rendering vector data over 3D terrain with view-dependent perspective texture mapping[J]. Journal of Computer-Aided Design & Computer Graphics, 2010,22(5):753-761. ] | |
[3] | Qiao Z, Weng J, Sui Z, et al.A rapid visualization method of vector data over 3D terrain[C]. International Conference on Geoinformatics. IEEE, 2011:1-5. |
[4] |
朱庆. 三维GIS及其在智慧城市中的应用[J].地球信息科学学报,2014,16(2):151-157.
doi: 10.3724/SP.J.1047.2014.00151 |
[ Zhu Q.Full three-dimensional GIS and its key roles in smart city[J]. Journal of Geo-information Science, 2014,16(2):151-157. ]
doi: 10.3724/SP.J.1047.2014.00151 |
|
[5] | Schneider M, Guthe M, Klein R.Real-time rendering of complex vector data on 3D terrain models[C]. Proceedings of the 11th International Conference on Virtual Systems and Multimedia. IEEE, 2005:573-528. |
[6] | Kersting O, Dollner J.Interactive 3D visualization of vector data in GIS[C]. Proceedings of the 10th ACM International Symposium on Advances in Geographic Information Systems. ACM, 2002:107-112. |
[7] | Zhu J, Zhang A L, Yin L Z, et al.3D GIS modeling of virtual high-speed railway scene based on ArcGlobe[C]// In Proceedings of the 7th International Conference on Image and Graphics. IEEE, 2013:811-815. |
[8] |
Liang J M, Gong J H, Li W H, et al.A visualization-oriented 3D method for efficient computation of urban solar radiation based on 3D-2D surface mapping[J]. International Journal of Geographical Information Science, 2014,28(4):780-798.
doi: 10.1080/13658816.2014.880168 |
[9] | Lin T P, Lin H, Hu M Y.Three-dimensional visibility analysis and visual quality computation for urban open spaces aided by Google SketchUp and WebGIS[J]. Environment & Planning B, 2017,44(4):618-646. |
[10] |
Yue S S, Yang J S, Chen M, et al.A function-based linear map symbol building and rendering method using shader language[J]. International Journal of Geographical Information Science, 2016,30(2):143-167.
doi: 10.1080/13658816.2015.1077964 |
[11] |
Wu M G, Zheng P B, Lu G N, et al.Chain-based polyline tessellation algorithm for cartographic rendering[J]. Cartography & Geographic Information Science, 2016,44(6):491-506.
doi: 10.1080/15230406.2016.1183145 |
[12] |
窦世卿,赵学胜,刘成军,等.河网线要素与DEM综合的三维Douglas-Peucker算法[J].测绘学报,2016,45(4):450-457.
doi: 10.11947/j.AGCS.2016.20140584 |
[ Dou S Q, Zhao X S, Liu C J, et al.The three dimensional Douglas-Peucker algorithm for generalization between river network line element and DEM[J]. Acta Geodaetica et Cartographica Sinica, 2016,45(4):450-457. ]
doi: 10.11947/j.AGCS.2016.20140584 |
|
[13] | Li G S, Bordoloi U D, Shen H W.Chameleon: An interactive texture-based rendering framework for visualizing three-dimensional vector fields[C]// Proceedings of IEEE Visualization. IEEE, 2003:241-248. |
[14] | Taibo J, Jaspe A, Seoane A, et al.Practical line rasterization for multi-resolution textures[C]. Smart TOOLS and Apps for Graphics. Eurographics Association, 2014:9-18. |
[15] | Wartell Z, Kang E, Wasilewski T, et al.Rendering vector data over global, multi-resolution 3D terrain[C]. Proceedings of the Symposium on Data Visualization. Eurographics Association, 2003:213-222. |
[16] | Agrawal A, Radhakrishna M, Joshi R C.Geometry-based mapping and rendering of vector data over LOD phototextured 3D terrain models[C]. Proceedings of the 14th International Conference in Central Europe on Computer Graphics. WSCG, 2006:1-8. |
[17] | Schneider M, Klein R.Efficient and accurate rendering of vector data on virtual landscapes[J]. Journal of WSCG, 2007,15(15):1-3. |
[18] |
刘昭华,杨靖宇,戴晨光.基于模板阴影体算法的矢量数据在三维场景中的绘制[J].测绘工程,2009,18(1):38-41.
doi: 10.3969/j.issn.1006-7949.2009.01.011 |
[ Liu S H, Yang J Y, Dai C G.Rendering vector data over 3D terrain based on stencil shadow volume algorithm[J]. Engineering of Surveying and Mapping, 2009,18(1):38-41. ]
doi: 10.3969/j.issn.1006-7949.2009.01.011 |
|
[19] | 曹雪峰,万刚,李锋,等.模板阴影体扩展方法[J].中国图象图形学报,2013,18(4):81-86. |
[ Cao X F, Wan G, Li F, et al.Extension method of stencil shadow volume[J]. Journal of Image and Graphics, 2013,18(4):81-86. ] | |
[20] |
She J F, Zhou Y, Tan X, et al.A parallelized screen-based method for rendering polylines and polygons on terrain surfaces[J]. Computers & Geosciences, 2017,99(2):19-27.
doi: 10.1016/j.cageo.2016.10.011 |
[21] |
Yang L, Zhang L Q, Kang Z Z, et al.An efficient rendering method for large vector data on large terrain models[J]. Science China (Information Sciences), 2010,53(6):1122-1129.
doi: 10.1007/s11432-010-0091-z> |
[22] |
Yang L, Zhang L Q, Ma J T, et al.Efficient simplification of large vector maps rendered onto 3D landscapes[J]. IEEE Computer Graphics & Applications, 2011,31(2):14-23.
doi: 10.1109/MCG.2010.63 |
[23] | Vaaraniemi M, Treib M, Westermann R.High-quality cartographic roads on high-resolution DEMs[J]. Journal of Wscg, 2013,19:41-48. |
[24] |
谈心,佘江峰.二维矢量线符号在三维地形表面的贴合渲染方法[J].地球信息科学学报,2015,17(12):1483-1489.
doi: 10.3724/SP.J.1047.2015.01483 |
[ Tan X, She J F.A new method of rendering 2D vector line symbols on 3D terrain surface[J]. Journal of Geo-information Science, 2015,17(12):1483-1489. ]
doi: 10.3724/SP.J.1047.2015.01483 |
[1] | 林珲, 胡明远, 陈旻, 张帆, 游兰, 陈宇婷. 从地理信息系统到虚拟地理环境的认知转变[J]. 地球信息科学学报, 2020, 22(4): 662-672. |
[2] | 马晓辉,周洁萍,龚建华,黄琳,李文航,邹宇玲. 面向室内应急疏散标识的VR眼动感知实验与布局评估[J]. 地球信息科学学报, 2019, 21(8): 1170-1182. |
[3] | 易超, 陈斌, 袁帅, 徐丙立. 虚拟地理环境中基于多模式的多人动作捕捉方法[J]. 地球信息科学学报, 2019, 21(3): 305-314. |
[4] | 袁帅, 陈斌, 易超, 徐丙立. 虚拟地理环境中沉浸式多人协同交互技术研究及实现[J]. 地球信息科学学报, 2018, 20(8): 1055-1063. |
[5] | 唐丽玉, 王灵霞, 陈崇成, 陈琪. 生长模型驱动的单株杉木三维动态模拟[J]. 地球信息科学学报, 2015, 17(6): 668-674. |
[6] | 林珲, 游兰. 虚拟地理环境知识工程初探[J]. 地球信息科学学报, 2015, 17(12): 1423-1430. |
[7] | 朱军, 张恒. 虚拟高速铁路环境快速建模服务与案例[J]. 地球信息科学学报, 2013, 15(6): 895-901. |
[8] | 杜云虎, 陈崇成, 唐丽玉, 李界光. 一种单机多屏的时序三维地理场景同步可视化系统[J]. 地球信息科学学报, 2013, 15(2): 200-208. |
[9] | 唐丽玉, 林定, 黄洪宇, 邹杰, 陈崇成, 杜云虎. 基于虚拟植物的幼龄杉木生长模拟[J]. 地球信息科学学报, 2012, 14(5): 569-575. |
[10] | 苏红军, 盛业华, 温永宁, 陈旻. 面向虚拟地理环境的多源异构数据集成方法[J]. 地球信息科学学报, 2009, 11(3): 292-298. |
[11] | 杨慧, 温永宁, 闾国年, 韦程. 面向虚拟地理环境的空间信息共享研究[J]. 地球信息科学学报, 2007, 9(4): 74-79. |
[12] | 唐卫, 闾国年, 温永宁, 陶虹. 面向虚拟地理环境的图形化地理建模与应用[J]. 地球信息科学学报, 2007, 9(2): 78-84. |
[13] | 黄云, 盛业华, 温永宁, 刘立嘉, 杨慧. 地理模型定义XML文档编辑器的设计和应用[J]. 地球信息科学学报, 2006, 8(4): 96-100. |
[14] | 尹章才, 李霖, 朱海红, 王铮. 基于XSLT的图示表达规则的设计与实现[J]. 地球信息科学学报, 2005, 7(4): 135-140. |
|