【正文】
1 論文題目:基于 OpenGL的三維飛行器程序設(shè)計(jì)與仿真 摘 要 本文基于 OpenGL,應(yīng)用 Visual C++ 平臺(tái),用 C++編程對(duì)飛行器的飛行場(chǎng)景進(jìn)行了設(shè)計(jì)與仿真 .這樣做的目的是由于在實(shí)際操縱中,使用真實(shí)的飛機(jī)來(lái)訓(xùn)練新操作手的風(fēng)險(xiǎn)和代價(jià)是很高的,所以 ,在實(shí)驗(yàn)室中使用模擬訓(xùn)練器來(lái)訓(xùn)練是國(guó)內(nèi)外通常采用的有效方法。文章使用紋理貼圖的方法實(shí)現(xiàn)了對(duì)天空和地面的模擬,用多邊形組成了飛機(jī),使用鍵盤來(lái)實(shí)現(xiàn)對(duì)飛機(jī)的操作,同時(shí)添加了霧以及光照來(lái)增加場(chǎng)景的真實(shí)感。程序的運(yùn)行結(jié)果比較符合預(yù)期要求,對(duì)實(shí)際操縱有一定的 借鑒意義。最后還針對(duì)實(shí)際制作過(guò)程中提出了一些建議以及改進(jìn)的方法。 【關(guān)鍵字】 OpenGL; C++;飛行器;紋理貼圖;仿真 【論文類型】 設(shè)計(jì)性 基于 OpenGL 三維飛行器程序設(shè)計(jì)與仿真 Title: Aircraft program design and simulation based an OpenGL Major: Name: Signature: Supervisor: Signature: Abstract The paper uses C + + programming design and simulate the scene of aircraft flight based on the OpenGL and apply Visual C + + to using the real aircraft to train new operators ,the risks and costs are high when in the actual manipulation, so at home and abroad,the effective method of training operators is through the training simulators in the laboratory .The article uses texture mapping method to achieve a simulation of the sky and the ground, aircraft polygons and use the keyboard to the operation of the aircraft, at the same time ,adding the fog and light to increase the realism of the results of the program is in line with the expectations, further more ,it have a significance effect on the actual manipulation .Finally, for the actual process of making a number of remendations as well as improved methods. 【 Key words】 OpenGL。 C++。 aircraft。 texture mapping。 simulate 【 Type of Thesis】 The design model 西安科技大學(xué)畢業(yè)論文 3 目 錄 1. 緒論 ....................................................................................................................................... 5 前言 ............................................................................................................................... 5 飛行器仿真技術(shù)國(guó)內(nèi)外研究現(xiàn)狀 ............................................................................... 6 本文研究的目的及主要內(nèi)容 ....................................................................................... 6 2. 程序功能概述 .................................................................................................................... 7 場(chǎng)景的構(gòu)建及其特點(diǎn) ................................................................................................... 8 場(chǎng)景的構(gòu)建 ........................................................................................................ 8 與以往實(shí)現(xiàn)方法的區(qū)別 .................................................................................... 8 程序的主要功能 ........................................................................................................... 9 本論文研究重點(diǎn) ........................................................................................................... 9 3. 程序涉及知識(shí)詳解 ..........................................................................................................10 基本框架 ......................................................................................................................10 構(gòu)建應(yīng)用程序框架 ...........................................................................................10 坐標(biāo)變換 ......................................................................................................................10 視圖變換 ...........................................................................................................13 模型變換 ...........................................................................................................14 投影變換 ...........................................................................................................14 紋理映射 ......................................................................................................................14 紋理 ...................................................................................................................14 紋理數(shù)據(jù) ...........................................................................................................15 漫游的原理 ..................................................................................................................15 顯示列表 ......................................................................................................................17 屏幕顯示 ......................................................................................................................17 ..........................................................................................................................18 天空的構(gòu)建 ...................................................................................................................19 地面 ..............................................................................................................................21 地面的生 成 .......................................................................................................21 地面中的水 .......................................................................................................25 飛行器 ..........................................................................................................................26 飛行器的構(gòu)建 ...................................................................................................26 材質(zhì)屬性的設(shè)置 ...............................................................................................28 飛行器漫游 .......................................................................................................28 飛行器的控制 ...................................................................................................30 飛行器的尾焰 ...................................................................................................33 場(chǎng)景中的光照 ..............................................................................................