資源描述:
《opengl在變電站仿真系統(tǒng)中應(yīng)用》由會(huì)員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫(kù)。
1、摘要虛擬現(xiàn)實(shí)技術(shù)作為計(jì)算機(jī)圖形學(xué)等多種學(xué)科交叉領(lǐng)域的一個(gè)前沿,它的發(fā)展使人們對(duì)變電站仿真提出了新的要求,傳統(tǒng)的變電站仿真中二維符號(hào)表示形式已無法滿足需要。同時(shí)隨著近年來計(jì)算機(jī)性能的提高,使得利用虛擬現(xiàn)實(shí)技術(shù)建立直觀的三維仿真系統(tǒng)成為可能,繼而使變電站培訓(xùn)仿真系統(tǒng)的真實(shí)感得到極大的提高。本文引入圖元以及圖形控件的概念,使用OpenGL標(biāo)準(zhǔn)作為編程接口,搭建了變電站仿真系統(tǒng)中的三維顯示平臺(tái)。由于在OpenGL中難以建立復(fù)雜的三維模型,所以采用3DSMAX專業(yè)繪圖軟件建立仿真系統(tǒng)所需圖元,包括變電站的場(chǎng)景模
2、型、室內(nèi)景觀模型、電氣設(shè)備模型,并按照一定原則對(duì)模型進(jìn)行優(yōu)化??紤]到3DSMAX建造的模型不具備交互性,所以本文根據(jù)3DSMAX軟件所制作模型的結(jié)構(gòu)特點(diǎn),將表現(xiàn)模型所需的信息加以提取,并且保存到相應(yīng)的結(jié)構(gòu)文件中,方便了在OpenGL接口下的調(diào)用。在系統(tǒng)的交互性方面,由于在三維坐標(biāo)系下,鼠標(biāo)點(diǎn)選要考慮物體遠(yuǎn)近的問題,所以本文在二維選擇的基礎(chǔ)上,對(duì)被選擇物體的坐標(biāo)深度進(jìn)行判斷,從而實(shí)現(xiàn)了鼠標(biāo)的正確點(diǎn)選。選用Sokect通訊協(xié)議,規(guī)定了傳輸命令遵循的規(guī)則,以實(shí)現(xiàn)三維顯示平臺(tái)與其他平臺(tái)之間的通訊,進(jìn)而將三維顯
3、示平臺(tái)整合到了現(xiàn)有的仿真系統(tǒng)中。依據(jù)本文提出的思想,在吉林八家子變電站仿真系統(tǒng)中加入了三維顯示平臺(tái)。實(shí)踐證明該系統(tǒng)整體效果逼真,具有很高的真實(shí)感,能讓培訓(xùn)人員具有很高的沉浸度,是一款具有開發(fā)價(jià)值和實(shí)用價(jià)值的虛擬現(xiàn)實(shí)仿真培訓(xùn)系統(tǒng)。關(guān)鍵詞:變電站;仿真器;虛擬電氣設(shè)備:OpenGL標(biāo)準(zhǔn):Socket通信協(xié)議ABSTRACTAsaforelandofthesubjectofcomputergraphicsandtheotherinterrelatedfields,thedevelopmentofvirtua
4、lrealitytechniquemadepeopleputforwardanewneedtosubstationtrainingsystem.Therepresentationoftraditionaltwo-dimensionalCallnolongermeettheneeds.Alongwiththeincreasingperformanceofcomputer,thefeasibilityofsettingupintuitionisticthree-dimensionalsubstmiontr
5、ainingsystemusingvirtualrealitytechniquebecametrue.Itenhancegthefeelingofrealityalot.Inthispaper,theconceptofmetafileandgraphcontrolisintroduced.Athree-dimensionaldisplayinterfaceisbuiltbyusingtheOpenGLstandard.3DSMAXisusedtosetupthemodelincludingthesce
6、nemodelsandtheelectricalequipmentmodelswhichisneedinthetrainingsystemandbecauseitishardtobuildthismodelintheOpenGL.Considering3DSMAXisshortofinteraction,theinformationwhichisusedtorepresentthemodelispick·upandsavestothestructuralfile.Before—mentionedwor
7、kisbasedoncharacteristicofthe3DSMAXfileandmakestheeasyusingintheOpenGL.Atthepointofinteraction,thedeepoftheselectedobjectisjudgedonthebaseoftwo-dimensionalselectionbecausethedistanceoftheobjectmusttobeconsideredinthethree-dimensionalreferenceframeSOtOre
8、alizethecorrectclickbymouse.Realizethecommunicationamongthethree-dimensionalsystemandtheothercomputerbyusingtheprotocolofSocketandsequentiallyintegratedthethree-dimensionalsystemintothesubstationtrainingsystem.Accordingtothemetho