摘要
研究在普通的PC机下开发高质量的视景仿真系统。在Windows NT系统下,以Visual C++为开发平台,利用OpenGL和串口技术,运用面向对象的编程思想,采用MFC的编程方法。首先简介了OpenGL及如何利用它进行复杂的三维建模、文本显示、天空和地形绘制以及动画生成的技术。利用微软MSComm控件编制串口程序进行飞行仿真数据的传送,定义了简洁有效数据传输格式。采用多线程技术处理仿真数据的接收和动画显示。最终,较好地解决了飞行器三维实时显示与逼真的场景之间的矛盾。
The paper was about the development of a 3D animation simulation software with personal computer. OpenGL, Serial port, the thinking of Objected-Oriented and MFC method were utilized in the environment of Visual C++6.0. At fist the paper introduced OpenGL and its application. Furthermore, 3D molding, showing texts, drawing terrains and how to produce animations based on OpenGL technique were also described. Fight simulation data were transmitted by MSComm serial communications. And multithread technique was adopted to receive flight data and draw graphics. At last, the paper solved the conflict between real time display and vivid scene.
出处
《计算机仿真》
CSCD
2005年第3期194-196,共3页
Computer Simulation