基于GPU的大規(guī)模深海海浪泡沫的實(shí)時(shí)模擬研究
本文關(guān)鍵詞: 深海模擬 泡沫模擬 GPU CUDA 出處:《燕山大學(xué)》2014年碩士論文 論文類型:學(xué)位論文
【摘要】:海浪泡沫是海洋中一種常見(jiàn)的自然現(xiàn)象,在虛擬現(xiàn)實(shí)應(yīng)用、計(jì)算機(jī)游戲以及電影特效中,泡沫效果極大地影響著用戶的真實(shí)感體驗(yàn)。近年來(lái),隨著計(jì)算機(jī)硬件設(shè)備的不斷更新和相關(guān)技術(shù)的快速發(fā)展,大規(guī)模海洋場(chǎng)景的繪制越來(lái)越受到計(jì)算機(jī)圖形學(xué)研究者的關(guān)注。泡沫作為海浪最生動(dòng)的體現(xiàn),,其逼真度對(duì)海洋模擬起到很重要的作用。本文針對(duì)海浪泡沫不真實(shí)和不完善的問(wèn)題,提出一種改進(jìn)海浪泡沫模擬的新方法。 首先,為了構(gòu)建動(dòng)態(tài)海浪,利用Phillips頻譜計(jì)算海浪頻域的振幅值,通過(guò)快速傅立葉逆變換(IFFT)將頻域的振幅值轉(zhuǎn)換到空間域的高度值,從而構(gòu)建海面高度場(chǎng)。由于Phillips頻譜是從真實(shí)海洋中得到的統(tǒng)計(jì)數(shù)據(jù),從而能夠模擬出高真實(shí)感的深海海浪。 其次,在快速傅立葉變換反演海浪譜計(jì)算生成高度場(chǎng)的基礎(chǔ)上,使用CUDA對(duì)頻域振幅值進(jìn)行多線程并行運(yùn)算,節(jié)省FFT算法的計(jì)算時(shí)間。對(duì)構(gòu)建好的海面網(wǎng)格進(jìn)行GPU渲染,計(jì)算每個(gè)像素的顏色值,得到不同光照環(huán)境下海洋場(chǎng)景的模擬。 再次,為了降低波濤洶涌的海浪上泡沫的重復(fù)性,生成真實(shí)感較強(qiáng)的海洋效果,提出一種修正函數(shù)得到基于全局坐標(biāo)的動(dòng)態(tài)閾值條件來(lái)控制泡沫生成,并降低其周期重復(fù)性的方法。在海洋模擬中使用平鋪的小補(bǔ)丁構(gòu)造深海海洋表面能夠減少計(jì)算量。但是這種方法導(dǎo)致海洋表面的泡沫有明顯的重復(fù)性,嚴(yán)重影響了模擬效果的逼真度和真實(shí)感。針對(duì)這一問(wèn)題,設(shè)計(jì)了一個(gè)動(dòng)態(tài)閾值條件用于決定是否在海面的某像素點(diǎn)上顯示泡沫從而減少泡沫的重復(fù)性。 最后,利用OSG開(kāi)源圖形庫(kù)、圖形架構(gòu)CUDA和OpenGL高級(jí)著色語(yǔ)言GLSL設(shè)計(jì)實(shí)現(xiàn)了深海海浪及泡沫的仿真系統(tǒng)。
[Abstract]:Wave foam is a common natural phenomenon in the ocean. In the application of virtual reality, computer games and movie special effects, the bubble effect greatly affects the user's real experience in recent years. With the continuous updating of computer hardware and the rapid development of related technology, large-scale ocean scene rendering has been paid more and more attention by computer graphics researchers. Foam is the most vivid embodiment of ocean waves. The fidelity plays an important role in ocean simulation. In this paper, a new method to improve the simulation of ocean wave foam is proposed to solve the problem of unreality and imperfection of ocean wave foam. Firstly, in order to construct dynamic wave, the amplitude value of frequency domain is calculated by using Phillips spectrum, and the amplitude value of frequency domain is converted to the height value of space domain by inverse Fourier transform (FFT). Because the Phillips spectrum is the statistical data obtained from the real ocean, it can simulate the deep-sea waves with a high sense of reality. Secondly, on the basis of fast Fourier transform (FFT) inversion of wave spectrum to generate height field, CUDA is used to perform multithreading parallel computation of amplitude in frequency domain. The computation time of FFT algorithm is saved, and the constructed sea surface mesh is rendered by GPU, the color value of each pixel is calculated, and the simulation of ocean scene under different illumination environment is obtained. Thirdly, in order to reduce the repeatability of the foam on the rough waves and to produce a realistic ocean effect, a modified function is proposed to obtain the dynamic threshold condition based on the global coordinates to control the foam generation. The method of reducing its cycle repeatability. The use of small patches in ocean simulation to construct deep ocean surface can reduce the computational burden. But this method leads to the foam of ocean surface has obvious reproducibility. In order to solve this problem, a dynamic threshold condition is designed to determine whether to display the foam at a pixel point on the sea surface to reduce the foam repeatability. Finally, the simulation system of deep sea wave and foam is designed and implemented by using OSG open source graphics library, graphic architecture CUDA and OpenGL advanced coloring language GLSL.
【學(xué)位授予單位】:燕山大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類號(hào)】:P731.2;TP391.41
【相似文獻(xiàn)】
相關(guān)期刊論文 前10條
1 頭重腳輕;;GPU的華麗變身 通用計(jì)算帶來(lái)更大方便[J];電腦迷;2009年20期
2 劉曉平;王啟駿;陳皓;張乃釗;;基于距離的點(diǎn)光源軟陰影GPU生成方法[J];合肥工業(yè)大學(xué)學(xué)報(bào)(自然科學(xué)版);2011年12期
3 郭云;康濤;徐涵;;基于優(yōu)化存儲(chǔ)的嵌入式GPU的字符顯示[J];計(jì)算機(jī)系統(tǒng)應(yīng)用;2012年10期
4 本刊編輯部;;加州大學(xué)圣地亞哥分校使用GPU超級(jí)計(jì)算機(jī)實(shí)現(xiàn)千萬(wàn)億次級(jí)地震模擬[J];科研信息化技術(shù)與應(yīng)用;2013年02期
5 許建;林泳;秦勇;黃翰;;基于GPU的并行協(xié)同過(guò)濾算法[J];計(jì)算機(jī)應(yīng)用研究;2013年09期
6 技術(shù)宅;;GPU通用計(jì)算解密[J];電腦愛(ài)好者;2014年02期
7 陸筱霞;段光明;李思昆;;基于GPU的遙感紋理壓縮解壓算法[J];系統(tǒng)仿真學(xué)報(bào);2009年S1期
8 詹總謙;盧亮;;基于GPU并行處理技術(shù)的影像畸變差修正[J];測(cè)繪信息與工程;2011年02期
9 張浩;李利軍;林嵐;;GPU的通用計(jì)算應(yīng)用研究[J];計(jì)算機(jī)與數(shù)字工程;2005年12期
10 謝洪濤;高科;張勇東;李錦濤;劉毅志;;基于GPU的快速圖像拷貝檢測(cè)[J];計(jì)算機(jī)輔助設(shè)計(jì)與圖形學(xué)學(xué)報(bào);2010年09期
相關(guān)會(huì)議論文 前4條
1 夏青;岳利群;;基于GPU編程的海浪仿真技術(shù)研究[A];2007系統(tǒng)仿真技術(shù)及其應(yīng)用學(xué)術(shù)會(huì)議論文集[C];2007年
2 劉小虎;胡耀國(guó);符偉;;大規(guī)模有限元系統(tǒng)的GPU加速計(jì)算研究[A];中國(guó)計(jì)算力學(xué)大會(huì)'2010(CCCM2010)暨第八屆南方計(jì)算力學(xué)學(xué)術(shù)會(huì)議(SCCM8)論文集[C];2010年
3 張迪;黃偉;羅琦;王侃;;波形板干燥器內(nèi)液滴數(shù)值模擬的GPU并行加速[A];第十六屆全國(guó)流體力學(xué)數(shù)值方法研討會(huì)2013論文集[C];2013年
4 李慧;付志一;;基于GPU計(jì)算的有限元總剛組成方法探索[A];北京力學(xué)會(huì)第17屆學(xué)術(shù)年會(huì)論文集[C];2011年
相關(guān)重要報(bào)紙文章 前7條
1 本報(bào)記者 劉燕;GPU加速是手機(jī)瀏覽器方向[N];科技日?qǐng)?bào);2012年
2 ;GPU,智能手機(jī)好推手[N];電腦報(bào);2013年
3 諸玲珍;NVIDIA推0.13微米GPU[N];中國(guó)電子報(bào);2002年
4 網(wǎng)絡(luò)世界記者 周源;曙光三款GPU服務(wù)器問(wèn)世[N];網(wǎng)絡(luò)世界;2013年
5 ;GPU市場(chǎng)Q2創(chuàng)八年最大增幅[N];計(jì)算機(jī)世界;2009年
6 小溪 編譯;NVIDIA唱響GPU統(tǒng)一架構(gòu)時(shí)代序曲[N];計(jì)算機(jī)世界;2006年
7 沈陽(yáng) 劉鏑;GPU:給顯卡一顆驛動(dòng)的“芯”[N];電腦報(bào);2001年
相關(guān)博士學(xué)位論文 前4條
1 陳鋼;眾核GPU體系結(jié)構(gòu)相關(guān)技術(shù)研究[D];復(fù)旦大學(xué);2011年
2 白洪濤;基于GPU的高性能并行算法研究[D];吉林大學(xué);2010年
3 劉華海;節(jié)點(diǎn)內(nèi)多CPU多GPU協(xié)同并行繪制關(guān)鍵技術(shù)研究[D];國(guó)防科學(xué)技術(shù)大學(xué);2012年
4 林一松;面向GPU的低功耗軟件優(yōu)化關(guān)鍵技術(shù)研究[D];國(guó)防科學(xué)技術(shù)大學(xué);2012年
相關(guān)碩士學(xué)位論文 前10條
1 韋婷;基于GPU的自然場(chǎng)景渲染優(yōu)化技術(shù)研究[D];廣西大學(xué);2013年
2 梅世冬;實(shí)時(shí)陰影繪制方法研究及GPU加速[D];華中師范大學(xué);2010年
3 李軍;基于GPU的大規(guī)模場(chǎng)景實(shí)時(shí)陰影繪制[D];湖南大學(xué);2011年
4 晏福興;基于GPU的軟陰影技術(shù)的研究[D];杭州電子科技大學(xué);2009年
5 明星;基于GPU的醫(yī)學(xué)圖像三維重建算法及其應(yīng)用[D];華中科技大學(xué);2009年
6 馬鳴飛;基于GPU加速的三維超聲成像系統(tǒng)[D];哈爾濱工業(yè)大學(xué);2011年
7 蘇金洲;基于粒子濾波的檢測(cè)前跟蹤算法研究及在GPU平臺(tái)上的實(shí)現(xiàn)[D];電子科技大學(xué);2013年
8 范希賢;基于GPU的并行排序?qū)W習(xí)算法研究[D];哈爾濱工業(yè)大學(xué);2012年
9 彭紹鑫;基于GPU的硬件加速方法及其在積分方程數(shù)值解中的應(yīng)用[D];電子科技大學(xué);2008年
10 劉偉;基于圖譜配準(zhǔn)的肝臟CT三維自動(dòng)分割研究及GPU加速平臺(tái)實(shí)現(xiàn)[D];南京郵電大學(xué);2011年
本文編號(hào):1490259
本文鏈接:http://sikaile.net/kejilunwen/haiyang/1490259.html