电子设计工程
電子設計工程
전자설계공정
ELECTRONIC DESIGN ENGINEERING
2011年
20期
14-17,26
,共5页
常洪强%刘爽%李国超%吴娜
常洪彊%劉爽%李國超%吳娜
상홍강%류상%리국초%오나
3DS%三维选取%视点移动%OpenGL%三维建模
3DS%三維選取%視點移動%OpenGL%三維建模
3DS%삼유선취%시점이동%OpenGL%삼유건모
3DS%three-dimensional-selection%viewpoint-movement%OpenGL%three-dimensional-modeling
以三维数据文件3DS为数据源,说明了3DS文件内部数据结构及读取流程,重点讨论了如何有效地解析三维数据,并以合理的数据结构进行保存;阐述了虚拟三维场景中视点的移动位置和目标位置的计算过程,从而实现通过外部设备控制场景的应用;介绍了用OpenGL的选择机制实现三维场景中对象的鼠标定位方法并予以编程实现。实践表明文中设计的算法有效可行,能满足实际应用需求。
以三維數據文件3DS為數據源,說明瞭3DS文件內部數據結構及讀取流程,重點討論瞭如何有效地解析三維數據,併以閤理的數據結構進行保存;闡述瞭虛擬三維場景中視點的移動位置和目標位置的計算過程,從而實現通過外部設備控製場景的應用;介紹瞭用OpenGL的選擇機製實現三維場景中對象的鼠標定位方法併予以編程實現。實踐錶明文中設計的算法有效可行,能滿足實際應用需求。
이삼유수거문건3DS위수거원,설명료3DS문건내부수거결구급독취류정,중점토론료여하유효지해석삼유수거,병이합리적수거결구진행보존;천술료허의삼유장경중시점적이동위치화목표위치적계산과정,종이실현통과외부설비공제장경적응용;개소료용OpenGL적선택궤제실현삼유장경중대상적서표정위방법병여이편정실현。실천표명문중설계적산법유효가행,능만족실제응용수구。
Based on 3DS file as data source, internal data structure and accessing process are illustrated. How to parse 3D data effectively and save these data using reasonable data structure are discussed emphatically. Then calculation process of move position and destination position for the viewpoint in virtual 3D scenario is described, thus realize controlling scenarios through the application of an external device. Besides,use OpenGL's selection mechanism to achieve three-dimensional objects in the scene of the mouse positioning methods and programming implementation of this approach are also introduced. Application results show the algorithm designed in this paper is feasible and effective and can meet requirements of real application.