摘要
针对现有三维(3D)场景建模方法普遍存在着业务耦合度高,复杂场景对象属性和特征描述能力不强、不丰富,不能很好地解决3D虚拟祭祀场景建模的问题,提出了基于一种形式化方法的场景建模语言与建模环境。首先,通过引入场景对象、场景对象模板、场景对象模板属性三个层次的概念对3D虚拟祭祀场景的构成特点进行了详细分析;然后,提出了一种基于形式化松耦合、属性描述能力强、语言通用性灵活的3D场景建模语言;其次,设计了场景建模语言的操作,使得该语言可以通过应用程序编程接口(API)调用的方式完成编辑,实现了该语言对界面化建模的支持;最后定义了一套该语言的可扩展标记语言(XML)映射方法,使场景建模结果以XML文本格式进行存储,提升了建模结果的可复用性,并展示了建模的应用案例。应用结果表明,所提方法在增强新增数据类型特性支持的同时完善了序列属性、结构体属性类型的描述,使得对复杂场景对象属性和特征描述能力的通用性、灵活性更强,可复用程度高,在界面化建模支持程度上优于Su等(束搏,邱显杰,王兆其.基于图像的几何建模技术综述.计算机研究与发展,2010,47(3):549-560)提出的方法,解决了3D虚拟祭祀场景建模问题。所提方法同样适用于其他组成粒度低、属性成分多、业务耦合度高的3D场景建模,并能提升建模效率。
Due to the problems of high degree of business coupling,insufficient description ability to object attributes and characteristics of complex scenes in the existing Three-Dimensional( 3 D) scene modeling models,a new scene modeling language and environment based on BNF( Backus-Naur Form) was proposed to solve the problems of 3 D virtual sacrifice scene modeling.Firstly,the 3 D concepts of scene object,scene object template and scene object template attribute were introduced to analyze the constitutional features of the 3 D virtual sacrifice scene in detail.Secondly,a 3 D scene modeling language with loose coupling,strong attribute description capability and flexible generality was proposed.Then,the operations of the scene modeling language were designed,so that the language could be edited by Application Programming Interface( API) calls,and the language supported the interface modeling.Finally,a set of Extensible Markup Language( XML) mapping methods was defined for the language.It made the scene modeling results stored in XML text format,improved the reusability of modeling results,and demonstrated the application of modeling.The application results show that the method enhances the support of new data type features,and improves the description of sequence attributes and structure attribute types,and improves the description capabilities,the versatility,the flexibility of complex scenes.The proposed method is superior to the method proposed by SHU et al.( SHU B,QIU X J,WANG Z Q.Survey of shape from image.Journal of Computer Research and Development,2010,47(3): 549-560),and solves the problem of 3 D virtual sacrifice scene modeling.The proposed method is also suitable for modeling 3 D scenes with low granularity,multiple attribute components,and high coupling degree,and can improve modeling efficiency.
引文
[1]HU F,LU J,ZHANG T.Virtual Reality Enhanced Robotic Systems for Disability Rehabilitation[M].Hershey,PA:IGI Publishing,2016:49-50.
[2]苏建明,张续红,胡庆夕.展望虚拟现实技术[J].计算机仿真,2004,21(1):18-21.(SU J M,ZHANG X H,HU Q X.The prospect of virtual reality[J].Computer Simulation,2004,21(1):18-21.)
[3]束搏,邱显杰,王兆其.基于图像的几何建模技术综述[J].计算机研究与发展,2010,47(3):549-560.(SHU B,QIU X J,WANG Z Q.Survey of shape from image[J].Journal of Computer Research and Development,2010,47(3):549-560.)
[4]陆亚萍,刘厚泉,赵志凯.基于XML的参数化虚拟场景建模技术[J].计算机工程,2006,32(22):215-217.(LU Y P,LIU H Q,ZHAO Z K.Parametric virtual scene modeling technology based on XML[J].Computer Engineering,2006,32(22):215-217.)
[5]陆亚萍,刘厚泉,王莉.基于X-VRML的虚拟现实场景建模的研究[J].微电子学与计算机,2006,23(5):149-151.(LU Y P,LIU H Q,WANG L.A research of virtual reality scene modeling based on X-VRML[J].Microelectronics&Computer,2006,23(5):149-151.)
[6]王京,郝爱民,高玉建,等.基于参数化对象和脚本语言的大规模场景建模方法[J].计算机科学,2007,34(12):144-147.(WANG J,HAO A M,GAO Y J,et al.A fast modeling method for large-scale scene based on parameterized object and script[J].Computer Science,2007,34(12):144-147.)
[7]LIU J,SU W,SUN Y.3D model semantic automatic annotation based on X3D scene[C]//ICCIS’13:Proceedings of the 2013 International Conference on Computational and Information Sciences.Washington,DC:IEEE Washington,DC,2013:282-285.
[8]陈蕾,赵正旭.基于BNF的3DS文件格式规范化描述[J].计算机系统应用,2017,26(5):23-28.(CHEN L,ZHAO Z X.3DSfile format specification based on BNF[J].Computer Systems and Applications,2017,26(5):23-28.)
[9]WEN J,GUO Y,ZHAO Z.Representation of raspberry PI practice in Z notation[J].British Journal of Applied Science and Technology,2016,15(5):1-9.
[10]WEI Z,XIA C,LUO Y,et al.An approach for description of computer network defense scheme and its simulation verification[J].Journal of Computers,2014,9(2):388-395.
[11]XIONG W,JIN Y,LIU Z.Recognizing Chinese number and quantifier prefix to enhance statistical parser in machine translation[J].Journal of Computers,2014,9(4):867-874.
[12]徐俊杰,孙长嵩,张安真.基于XML的三维场景数据的组织与表示模型[C]//北京地区高校研究生学术交流会---通信与信息技术会议.北京:北京邮电大学出版社,2006:1542-1547.(XU J J,SUN C S,ZHANG A Z.Model of scene date organization and expression based on XML[C]//Beijing University Graduate Academic Exchange Conference-Communication and Information Technology Conference.Beijing:Beijing University of Posts and Telecommunications Press,2006:1542-1547.)