APP下载

Unity3D支持的DEM地形三维可视化表达技术实现

2018-02-01陈淑姝甘淑

软件导刊 2018年1期
关键词:可视化模型

陈淑姝+甘淑

摘要:近年來,三维地形可视化、三维空间分析已经成为三维地理信息系统领域的前沿问题。为改正传统GIS中面三维将高程坐标仅仅作为附属坐标而导致无法构建地形真三维模型,同时也无法提供地下信息的缺点,基于Unity3D游戏引擎和ArcGIS平台,采用任意地形灰度图为数据源,将灰度图转化ASCII栅格文件读入Unity3D中,最终利用Gameobject中Cube元素,实现了DEM中规则格网模型的真三维展示,利用Gameobject的Mesh元素,采用顺时针索引数组实现了DEM中TIN的真三维展示,由于U3D引擎具有独立的Y坐标(在U3D中高程坐标以Y轴表示)特性,使其能够创建真正意义的真三维模型,同时可以在摄像头上添加镜头旋转脚本以实现模型的360度浏览。

关键词:地理信息系统;三维;真三维;DEM;Unity3D

DOIDOI:10.11907/rjdk.172439

中图分类号:TP317.4

文献标识码:A文章编号文章编号:1672-7800(2018)001-0208-04

Abstract:In recent years, 3D terrain visualization and 3D spatial analysis have become the front problem of GIS. For solving the disadvantages in traditional GIS that elevation coordinates just as subsidiary coordinates. This causes the true 3D model of terrain can not be constructed and could not retrieve the information of underground. The DEM model is generated by Unity 3D and ArcGIS platform, turning random gray scale map into ASCII raster file then import it into Unity3D. The Grid of DEM is generated by the Cube of Gameobject and the mesh of Gameobject employs clockwise index array to create the TIN of DEM, due to Y coordinates in Unity 3D is independent (elevation coordinates are represent by the Y axis), the true 3D model can be constructed at the same time adds the camera rotation script to main camera can see the model 360 degree.

Key Words:GIS; 3D; true 3D; DEM; Unity3D

0引言

随着计算机技术、空间技术和现代信息基础设施的发展,地理信息系统已拓展到测绘、土地、环境、交通等各个领域,发挥着日益重要的作用[1]。地形作为重要的自然景物,拥有数据结构复杂、数据量庞大的特点,地形的应用在GIS中占有重要地位。随着GIS应用的不断深入,作为第三维的高程信息显得越来越重要[2]。一些二维GIS和图象处理系统在处理高程信息时并未将高程变量作为单独变量,而是将其作为附属变量处理,这种做法虽然满足了地表地形信息的表达要求但是造成了地下信息的缺失,因此它们在国际国内也被俗称为2.5维的系统[3]。出于严密性考虑可将此称之为“地形面三维”或简称面三维。……

登录APP查看全文

猜你喜欢

可视化模型
一半模型
自然资源可视化决策系统
思维可视化
基于Power BI的油田注水运行动态分析与可视化展示
自然资源可视化决策系统
基于CGAL和OpenGL的海底地形三维可视化
重尾非线性自回归模型自加权M-估计的渐近分布
“融评”:党媒评论的可视化创新
3D打印中的模型分割与打包
FLUKA几何模型到CAD几何模型转换方法初步研究