APP下载

基于OSG的体育场馆三维展示系统

2012-04-29常琳林

电脑知识与技术 2012年12期

常琳林

摘要:基于OSG技术设计实现了体育场馆的三维展示系统,对体育场馆和比赛场景建模。在该系统中,管理员可以对体育场馆的不同比赛场景进行编辑,对体育器械的摆放区域进行设定,用户可以多种方式和路径漫游体育场馆,如自动和手动漫游场馆,可以自己编辑漫游路线,也可以在权限范围内编辑场景,模拟训练。在本系统中,提出采用知识描述的方法来确定场馆内体育器械允许摆放的位置,并采用四元数来描述器械摆放的角度。该文对OSG技术在本系统中的关键应用,如OSG数学基础、OSG内存管理、OSG的场景显示等问题进行阐述。

关键词:OSG;三维展示;虚拟现实

中图分类号:TP391文献标识码:A文章编号:1009-3044(2012)12-2892-04

The 3D Exhibition System of Gymnasiums and Stadiums Based on Open Scene Garph

CHANG Lin-lin

(Phisical Education College of Zhengzhou University, Zhengzhou 450000, China)

Abstract: The 3D simulation system of gymnasiums and stadiums based on virtual reality is implemented based OSG.In this system, the ad ministrators can edit the different scenes of the sports and set the display area of sports equipment; meanwhile the users can ramble gymnasi ums and stadiums by all kinds of ways and paths, such as automatic and manual rambling. It can edit rambling routes and also can be within the purview of editing scenes, simulation training. It proposed using the method of knowledge description to set the allowance display area of the sports venues, and using the quaternion to describe the perspective of equipment display. This paper introduced the key application of OSG in this system, such as mathematics base of OSG, memory manager of OSG, scene displaying of OSG etc, it proposes the method to describe the knowledge of the location of the sports equipments.

Key words: Open scene Garph; 3D exhibition; virtual reality

本系统建立了一个体育场馆的三维展示系统,主要对场馆的比赛场地进行建模,包括田径比赛场地、足球比赛场地和其它表演用途等场景。用户可以通过漫游路径参观体育场馆,并对场景进行编辑。

1系统设计

系统分为四个主要的模块:

器械建模模块:使用3D Max,得到体育场馆中的设施和器械的三维模型,以供其它模块使用。

场景显示模块:显示体育场馆和器械,根据用户的视角的变化使场景发生不同的变化,例如:观察物体时拉近视角、拉伸视角、旋转视角等。

场景编辑模块:对体育场馆内的器械进行编辑,例如:增加器械,减少器械,改变器械在体育场馆中的位置、角度。改变后的内容要反映到场景显示模块中。

漫游路径模块:通过在场景显示模块中使用鼠标生成漫游路径,生成后的漫游路径要反映到场景显示模块中。……

登录APP查看全文