当前位置>主页 > 期刊在线 > 信息技术 >

信息技术2020年21期

基于FFT 的海面模拟渲染方法
张军鹏
(青岛大学,山东 青岛 266071)

摘  要:使用快速傅里叶变换来计算深海海浪的网格与法线信息,添加风力的影响构建深海海面的波形并计算法线信息;然后对Gerstner 波形进行挤压,构建靠近岸边的海水波形,计算水体的法线。添加光照模型,丰富海面的纹理。借用Unity 的着色器进行渲染,实时的展现出海面的波浪效果。在增加海面的采样点的情况下,依然可以保持较好的时效性。提升了海平面的 细节,增强了视觉效果。


关键词:快速傅里叶变换;海面;法线;渲染



中图分类号:TP391.9;P731.22         文献标识码:A         文章编号:2096-4706(2020)21-0024-04


Sea Surface Simulation Rendering Method Based on FFT

ZHANG Junpeng

(Qingdao University,Qingdao 266071,China)

Abstract:FFT(fast Fourier transform)is used to calculate the grid and normal line information of deep sea waves,and the influence of wind is added to construct the waveform of deep sea surface and calculate the normal line information;then Gerstner waveform is extruded to construct the seawater waveform near the shore and calculate the normal of water body. Add a lighting model to enrich the texture of the sea. Using Unity’s shaders to render,real-time show the wave effect of the sea. In the case of increasing the sea surface sampling points,it can still maintain good timeliness. Promote the details of the sea level,enhance the visual effect.

Keywords:fast Fourier transform;sea surface;normal line;rendering


参考文献:

[1] FOURNIER A,REEVES W T.A simple model of ocean waves [J].ACM SIGGRAPH Computer Graphics,1986,20(4):75-84.

[2] TESSENDORF J.Simulating ocean water [J].Simulatingnature:realistic and interactive techniques,2001,1(2):5.

[3] 童若锋,汪国昭. 用于动画的水波造型 [J]. 计算机学报,1996(8):594-599+642.

[4] 徐迎庆,苏成,李华,等. 基于物理模型的流水及波浪模拟 [J]. 计算机辅助设计与图形学学报,1997(2):96-97.

[5] 唐勇,范福鼎,李颖. 近岛海洋场景海水色彩真实感实时绘制 [J]. 小型微型计算机系统,2016,37(4):847-850.

[6] JESCHKE S,SKŘIVAN T,MÜLLER-FISCHER M.Watersurface wavelets [J].ACM Transactions on Graphics,2018,37(4):742-755.


作者简介:张军鹏(1994—),男,汉族,河南新乡人,硕士研究生在读,研究方向:计算机视觉。