机械设计与制造工程
機械設計與製造工程
궤계설계여제조공정
MACHINE DESIGN AND MANUFACTURING ENGINEERING
2015年
1期
15-18
,共4页
三维模型%鼠标控制%OpenGL%交互式
三維模型%鼠標控製%OpenGL%交互式
삼유모형%서표공제%OpenGL%교호식
three-dimensional models%mouse control%OpenGL%interactive
OpenGL是图形硬件的一种软件接口,在深入了解OpenGL显示机制的基础上,讨论了基于OpenGL实现三维模型的交互显示变换方法。应用OpenGL接口,通过对鼠标的二维位置的变换,得到世界坐标系中三维旋转轴和旋转角度,以及鼠标在世界坐标系中的三维位置,进而对三维模型进行平移、缩放、旋转操作。算法经实际编程应用,证明能够有效地实现三维模型的各种交互控制功能。
OpenGL是圖形硬件的一種軟件接口,在深入瞭解OpenGL顯示機製的基礎上,討論瞭基于OpenGL實現三維模型的交互顯示變換方法。應用OpenGL接口,通過對鼠標的二維位置的變換,得到世界坐標繫中三維鏇轉軸和鏇轉角度,以及鼠標在世界坐標繫中的三維位置,進而對三維模型進行平移、縮放、鏇轉操作。算法經實際編程應用,證明能夠有效地實現三維模型的各種交互控製功能。
OpenGL시도형경건적일충연건접구,재심입료해OpenGL현시궤제적기출상,토론료기우OpenGL실현삼유모형적교호현시변환방법。응용OpenGL접구,통과대서표적이유위치적변환,득도세계좌표계중삼유선전축화선전각도,이급서표재세계좌표계중적삼유위치,진이대삼유모형진행평이、축방、선전조작。산법경실제편정응용,증명능구유효지실현삼유모형적각충교호공제공능。
OpenGL is a software interface to the graphics hardware .Bases on in-depth understanding of OpenGL display mechanism , it discusses the interactive OpenGL 3 D model display transformation method .Applying OpenGL interface, it obtains the world coordinate of 3D rotation axis and angle of rotation through the two -di-mensional position of the mouse transform , the 3D position of the mouse in world coordinates , the operation of translation, scaling and rotation of the 3D model.The actual programming application proves that the algorithm can realize the various 3 Dmodel interactive control efficiently .