Transactions on Computer Science and Technology June 2014, Volume 3, Issue 2, PP.48-54
Visualization of City 3D Scene Based on WebGL Fan Zhang #, Dan Xue, Jun Li, Ning Jing College of Electronic Science and Engineering, National University of Defense Technology, Changsha Hunan410073, P.R. China #
Email: zf455287552@126.com
Abstract For the requirements of transmission and visualization of city 3D scene under network environment, a new 3D model data structure suitable for web exchange and rendering called glTF (gl Transmission Format) was adopted in this paper, the method and basis to build and organize 3D scene were analysed. Meanwhile, the scene data was efficiently managed and drew by using asynchronous loading, local cache, and visibility culling techniques. According to these theories and techniques, a B/S mode system architecture with full consideration of visual efficiency was proposed, then a city 3D scene visualization platform based on WebGL was developed. Experiment results show that platform can smoothly render the city 3D scene; visual effect and user experience are good. Keywords: 3D Scene Visualization; gl Transformission Format; Asynchronous Loading; Visibility Culling
基于 WebGL 的城市三维场景可视化研究* 张帆,薛丹,李军,景宁 国防科技大学 电子科学与工程学院,湖南 长沙 410073 摘 要:针对网络环境下城市三维场景的传输与可视化需求,采用适合网络交换和渲染的三维模型数据结构 glTF(gl Transmission Format),分析了基于 glTF 组织与构建三维场景的依据和方法。同时,通过异步加载、本地缓存、可见性剔 除等技术,对场景数据进行高效调度与绘制。依据这些理论和技术,设计了充分考虑可视化效率的 B/S 模式系统服务架 构,并基于 WebGL 开发了城市三维场景可视化平台,实验表明平台能流畅地实现城市三维场景的绘制,可视化效果以及 用户体验良好。 关键词:三维场景可视;glTF;异步加载;可见性剔除;B/S 模式
引言 Web3D 技术的出现为 3D 图形领域注入了新的活力, 目前国内外 Web3D 的主流技术主要有 VRML、X3D、 Viewpoint、Java3D、 Shockwave3D 等,其中又以 Java3D 结合 VRML 的组合方式为主[1]。WebGL 的发行打 破了这一常规模式,它是一套跨平台、开放、无插件的底层 3D 图形 JavaScript API[2],受到了主流硬件产品 和浏览器软件的广泛支持,它的推出为 Web3D 应用的开发指明了新的方向。随着 Web3D 技术的快速发展, 各种 B/S 模式的三维场景浏览软件应运而生。客户端只安装一个浏览器,做一些简单的交互操作,如移动、 缩放、查询。而大部分数据以及系统功能实现的核心部分都集中在网络服务器上。然而,这些软件大多数不 具备加载大量城市三维模型的能力,或在浏览显示时出现场景绘制严重迟滞现象[3]。原因在于城市三维场景 的数据量巨大,一个城市经常有几千甚至上万栋建筑物,而虚拟场景的绘制和渲染也需要大量的数据信息(纹 理、灯光、坐标等) 。用户需要很长时间来下载城市场景,这使得系统内存无法一次调入整个场景的模型数 *
基金资助:受国家高技术研究发展计划(863 计划)支持资助(No.2011AA120306,No.2011AA120305) - 48 http://www.ivypub.org/cst