三维校园虚拟现实平台的设计与实现

2015-01-06 18:28:44刘小英张健
湖北农业科学 2014年12期
关键词:校园建筑模型

刘小英+张健

摘要:虚拟校园是虚拟现实技术的一个重要应用方面,通过虚拟校园,人们只需要一台计算机即可了解校园整体风貌。以攀枝花学院主体建筑为研究对象,利用SketchUp构建三维模型,应用GIMP进行纹理贴图处理。运用VC++6.0结合OpenGL技术,读取三维模型,实现漫游交互控制及碰撞检测功能。系统运行表明,该系统场景逼真,能够展现学校风貌,为学校提供了一个新的窗口。

关键词:虚拟校园;OpenGL;VC++6.0;SketchUp

中图分类号:TP391.9        文献标识码:A        文章编号:0439-8114(2014)12-2909-04

Design and Implementation of Virtual Reality Platform for 3D Campus

LIU Xiao-yinga,ZHANG Jianb

(a. School of Mathematics and Computer Science; b. School of Transportation and Automobile Engineering, Panzhihua University,

Panzhihua  617000, Sichuan, China)

Abstract: Virtual campus is an important application about virtual reality technology. People only need a computer to have the overall view of the campus through the virtual campus. Taking the main building of Panzhihua university as a research object, using SketchUp to build 3D model and GIMP to process texture mapping, and VC++6.0 and OpenGL technology, the 3D model was read, and then the roaming interactive control and collision detection function were implemented. The system operation showed that the system could show realistic scenes of the school and provide school views with a new window.

Key words: virtual campus; OpenGL; VC++6.0; SketchUp

虚拟现实技术是一种融合了计算机图形技术、多媒体技术和仿真技术等多种技术的综合集成技术[1]。虚拟现实技术已被广泛应用于视景仿真、虚拟工程设计、文化遗产数字化保护等领域[2,3]。随着虚拟现实技术的发展,虚拟校园的构建已经成为各大高校学者研究的热点。虚拟校园结合地理信息技术、虚拟现实技术、计算机网络技术等高新技术,实现对真实校园环境中的三维景观的数字化和虚拟化[4]。构建虚拟校园系统,并发布在校园网站或者其他网络上,使很多使用者不用亲临学校,即可了解校园整体风貌。

SketchUp是目前最流行的三维建模及渲染软件,被广泛用于室内设计、建筑建模、虚拟现实等领域[5,6],其构造模型方法简单易上手,模型美观,便于虚拟校园多场景构建。OpenGL作为开发交互式的三维应用程序方面使用最为广泛且有着高度评价的3D图形接口,作为一个性能优越的图形API,OpenGL主要能实现基本图形的绘制、三维图形的几……

登录APP查看全文

猜你喜欢
校园建筑模型
一半模型
《北方建筑》征稿简则
北方建筑(2021年6期)2021-12-31 03:03:54
关于建筑的非专业遐思
文苑(2020年10期)2020-11-07 03:15:36
建筑的“芯”
现代装饰(2020年6期)2020-06-22 08:43:12
重尾非线性自回归模型自加权M-估计的渐近分布
校园的早晨
琴童(2017年3期)2017-04-05 14:49:04
春满校园
3D打印中的模型分割与打包
独特而伟大的建筑
开心校园