用户名: 密码: 验证码:
基于OpenGL的VRML文件浏览器
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
在计算机仿真中,普遍采用OpenGL建立系统的三维真实感图形,但OpenGL只提供有限的生成三维实体模型的辅助库函数,只能实现简单模型的绘制,而在虚拟现实的仿真环境中,必须建立复杂的三维实体模型。目前通过Pro/E等3D软件建立的复杂三维实体模型,均可以输出为VRML(虚拟现实建模语言)文件格式,如果在OpenGL环境能读取VRML文件,实现三维实体信息的提取与传输,就可以实现OpenGL对复杂图形的绘图与控制。为此本文开发了《基于OpenGL的VRML文件浏览器》。
     《基于OpenGL的VRML文件浏览器》包括三个主要组件:语法分析器、场景图、高真感图形呈现。语法分析器读取VRML文件并将节点信息保存到图元信息中以便于场景图使用;场景图包括一个执行引擎,作用是建立显示列表,将图元信息通过列表管理,并且通过层次转换可以修改图元中的信息;高真感图形呈现主要是将处理后的图无信息呈现出来,并且根据其图元中或者用户自定义的光照、材质、纹理信息生成真实感三维图形。
     该浏览器的设计采用面向对象的Visual C++语言开发。采用基于文档/视图的单文档结构,可以处理大量的三维图形数据并且解释速度快。通过使用面向对象的编程方法,便于维护管理三维数据,提高了代码的重用性。将三维图形模拟成模型进行优化设计,很好地实现了三维图形处理的数据结构设计。利用OpenGL提供的API接口,增强了构造虚拟环境的能力。
     由于浏览器采用的虚拟现实建模语言,具备三维造型功能和数学建模能力,在此基础上扩展,可以适应基于网络的虚拟加工环境的开发,为异地制造奠定基础。
In computer simulation, three-dimension real Graph is built by using OpenGL at large, but OpenGL only provide limited auxiliary function for generating three-dimension real solid model and only realize protraction of simple model. However, the virtual simulation environment must build complex three-dimension real model. Complex three-dimension real sculpt is mostly build by Pro/E, then export Virtual Reality Modeling Language(VRML) to realize extration and transmission.OpenGL protraction and control by reading data from vrml file. So it is necessary to design a OpenGL-based vrml file browser.
    OpenGL-based vrml file browser includes three main components: Parse, Scene, and Real Graph Presentation.The parse component reads the vrml file and saves the information of node as three-demension graph information and creates a Scene.The Scene component includes Execution Engine that builds displaying list and manages the three-demension information by displaying list and modifies the three-demension information by transformation Hierarchy. The Real Presentation mainly presents the graph information having been done with and generates real three-demension graph according as the graph or user-defined illumination, material, and texture information.
    The browser is designed by object-oriented language Visual C++ and simple document structure based on document/view, its remarkable characteristic can deal with large numbers of three-dimension graph data and have high execution speed. Maintenance and management of Three-dimension data can be realized breezily by object-oriented means. Three-dimension graph is simulated as model and optimization design. It can enhance the ablity to construct virtual object by using the OpenGL API interface.
    
    
    Having adopted Virtual Reality Modeling Language, the browser has the ablity to develop the three-dimension model. The browser can fit for the development of virtual manufacturining environment based on network and establish the foundation for distance manufacture.
引文
[1]Donald Hearn,M.Pauline Baker.Computer Graphics(secondition).Prentice-Hall Inteter nation Inc. 1998
    [2]Microsoft Developer Studio(Graphics and Multimedia Services).Microsoft Corporation,1997
    [3]王蕾、葛研军、巩来东等,数据加工中3D图形的Web发布与浏览.机械与电子.2002,40(3):11-12
    [4]王蕾、葛研军、巩来东等,网络制造环境下数控加工技术的研究.机械与电子.2002,40(2):7-8
    [5]周杰韩,吴波,左朝晖。虚拟制造环境面向对象建模.武汉:华中理工大学学报,1998;26(3):38-39第19卷第7期
    [6]曾建超,余志和.虚拟现实技术及其应用.北京:清华大学出版社,1996.
    [7]汪成为,高文,王行仁。灵境(虚拟现实)技术的理论、实现及应用.清华大学出版社1996.
    [8]李锦涛,刘国香。虚拟环境技术。铁道出版社,1996.
    [9]王海舜,潘利庆。虚拟现实技术在医学中的应用。计算机应用,1998,18(6):41-42.
    [10]Open InventorforWin32: Interactive3Dgraphicsformircosoftwindows
    [11]Hearn D,Baker M P。计算机图形学.北京:电子工业出版社,Prentice Hall出版公司.1998
    [12]白燕斌,史惠康.OpenGL三维图形库编程指南.北京:机械工业出版社,1998
    [13]Bui-Tuong Phong。 Illumination for Computer Generated Pictures. ACAM, 1975, 18(6): 311-317
    [14]Gouraud H. Continuous Shading of Curved Surfaces。 IEEE Trans. On Computers。 1971, C-20(6):623-629
    [15]James D. Foley, et al. Computer Graphics: Principles and Practice. 2nd ed., Addison-Wesley, 1990
    [16]Paul E. Debevec, et al. Modeling and Rendering Architecture from Photographs: A hybrid geometry- and image-based approach. SIGGRAPH'96, Computer Graphics, 1996. 11-20
    
    
    [17] R. Barzel and A. H. Barr. A Modeling System Based on Dynamic Constrains. ACM SIGGRAPH'88 Conference Proceddings, 1988, 22(4): 179-188
    [18] Ronen Barzel. Physically-Based Modeling for Computer Graphics. Academic Press, 1992
    [19] 邓志刚等.一个新VRML浏览器的构造与实现.计算机工程.1999,25(12):14-16
    [20] 王宏岗等,三维实体信息的提取.哈尔滨理工大学学报.2000,5(6):100-102
    [21] ISO.VRML 2.0 Specification 1996
    [22] 黄铁军等,VRML国际标准与应用指南。第一版,电子工业出版社,1999
    [23] 宫法明等,基于OpenGL的STL文件浏览器的设计与实现.计算机工程与应用.2002.6:116-118
    [24] 张超钦,谭献海.一个复杂的VRML场景的设计.陕西工学院学报.2002,16(4):31-36
    [25] 沈春龙等,基于可重用的支持三维建模仿真的组件设计.计算机工程与应用.2001.19:167-169
    [26] 程成等,基于场景的虚拟环境用户界面研究及实现.系统仿真学报.2000,12(5):534-538
    [27] 李占利、胡德洲,三维摸型的直接分层软件研究与开发.西安科技学院学报.2002,22(2):189-193
    [28] 陶志良、潘志庚、石教英,复杂场景中动态简化层次的构造。中国图象图形学报.1998,3(12):1032-1035
    [29] 宿红毅、战守义、陈谊,面向仿真的虚拟现实开发平台的设计.北京理工大学学报.2001,21(1):83-86
    [30] S.Harrington,著,计算机图形学,高福文,译.北京:北京师范大学出版社,1985
    [31] KevinJ.Goodman.著.如何开发、window 应用程序,郭勇,译.清华大学出版社,1996
    [32] 周新宇、王硕,VRML在结构模型分析及虚拟展示系统中的应用.计算机系
    
    统应用。2000,12(2).25—29
    [33] 韩向利等.虚拟加工环境的开发与研究.计算机应用.2000,20:234~237
    [34] 阳化冰等,虚拟现实构造语言VRML.第一版,北京航空航天大学出版社,2000.8
    [35] 王力等,VRML在仿真可视化系统中的应用.计算机仿真。2001年第5期:56~59
    [36] Kimura F. Product and Process Modeling as a Kernel for Virtual Manufacturing Systems. Annals of the CIRP,1995,44:399~402
    [37] Andrea L.Ames, David R.Nadeau, John L.Moreland. VRML 2.0 Sourcebook, Ames, Nadeau, Moreland, 1997:64~66

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700