基于OpenSceneGraph的网络版虚拟小区漫游系统
摘 要
自20世纪末以来,虚拟现实技术一直是信息领域研究、开发和应用的热点方向之一。它借助计算机构建出一个与现实环境十分逼真的虚拟环境,而且支持用户使用自然的技能亲身感受它。目前己经广泛应用于军事、科学计算可视化、教育与培训、设计与规划、虚拟测试、虚拟游览、购物、交互式娱乐、工程技术、科技探索等多方面领域。
本文首先介绍了场景图形理论的相关概念、OpenSceneGraph体系结构,最后结合当今房地产开发业的激烈竞争,对虚拟现实技术的综合应用,使用三维建模软件—3DS MAX 2009软件、集成开发环境Visual C++ 2005和开源的OpenSceneGraph三维渲染引擎,设计实现了中北大学校园虚拟漫游系统。此系统可以为用户提供友好、逼真的虚拟环境,使人有身临其境之感。
最后对本文所做的工作进行了总结,指出了有待改进的地方,并对下一步的研究提出了展望。
关键词:虚拟仿真,场景图形,碰撞检测,场景观察变换,粒子系统
Virtual Community of Roaming System Online Based on OpenSceneGraph Engine
Abstract
Since the late 20th century, Virtual reality has been the field of information technology research, development and application of one of the hot direction.It is constructed using the computer a very realistic virtual reality environment, but the skills to support users to experience it naturally.Now has been widely used in military, scientific visualization, education and training, design, and planning, virtual testing, virtual tours, shopping, interactive entertainment, engineering technology, such as many areas of science and technology exploration.
This paper introduces the concept of scene graph theory related, OpenSceneGraph architecture, Finally, today's real estate development industry, intense competition, the integrated application of virtual reality technology, using 3D modeling software-3DS MAX 2009 software, integrated development environment, Visual C + + 2005 and the open source OpenSceneGraph 3D rendering engine, designed and implemented in the North Campus Virtual Tour System. This system could provide users with friendly, realistic virtual environment, giving the feeling.
Finally, this article summarizes the work done, pointed out the areas to be improved, and the future study are pointed out.
Keywords:Virtual Reality, Scene Graph, Collision Detection, Scene Observed Transformation, Particle System
目 录
1 绪论 1
1.1 背景及意义 1
1.2 虚拟仿真视景技术的发展状况和趋势 1
1.3 本文的组织结构 3
2 场景图形理论 5
2.1 场景图形的概念 5
2.2 场景图形的特性 7
2.3 场景图形的渲染方式 8
2.4 本章小结 9
3 基于OpenSceneGraph的虚拟系统开发工具和环境简介 10
3.1 OpenSceneGraph三维渲染引擎 10
3.1.1 OpenSceneGraph的发展状况 11
3.1.2 OpenSceneGraph的结构 12
3.2 3DS MAX 2009简介 15
3.3 Visual C++ 2005简介 16
3.4 C++语言简介 16
3.5 基于OpenSceneGraph的虚拟系统开发环境 17
3.6 其它相关工具 17
3.7 本章小结 17
4 基于OpenSceneGraph的网络版虚拟小区漫游系统的开发 18
4.1 系统的需求分析 18
4.2 系统的主要功能 18
4.3 具体实现 18
4.3.1小区模型的制作 18
4.3.2 变换操作基础和场景观察 19
4.3.3 漫游功能的实现 23
4.3.4 碰撞检测 25
4.3.5 喷泉的实现 28
4.3.6 天空盒的实现 32
4.3.7 导航器的实现 34
4.4 系统测试 36
4.5 本章小结 40
5 总结与下一步展望 41
5.1 全文总结 41
5.2 下一步展望 41
参考文献 42
致谢 43