摘要
本研究针对传统Perlin噪声算法在海浪三维仿真中存在的细节表现不足、海浪顶峰易失真等问题,提出一种利用Perlin噪声为海面高度场动态变化的激励源,并结合Unity3D进行海浪三维建模,使用高阶平滑插值函数对生成的噪声进行平滑处理、Shader Graph对海浪进行光照渲染。首先设置海面网格,生成无动态变化的海面。然后计算各顶点的噪声值,使用插值函数对生成的噪声进行平滑处理,从而生成自然平滑的海浪。最后使用可编程渲染管线对海浪模型进行光照渲染和偏移设置,得到真实形态的海浪。试验结果表明,该方法可方便快速地实现三维海浪的仿真,且海浪细节特征明显。
In this study, aiming at the problems of insufficient detail performance and easy distortion of wave crest in the traditional Perlin noise algorithm in the three-dimensional simulation of ocean waves, a Perlin noise is proposed as an excitation source for the dynamic change of the sea surface height field,and the Unity 3D is used for three-dimensional modeling of ocean waves. The high-order smoothing interpolation function is used to smooth the generated noise, and the Shader Graph is used to render the ocean waves. Firstly, the sea surface mesh is set to generate a sea surface without dynamic changes. Then the noise value of each vertex is calculated, and the generated noise is smoothed by interpolation function to generate natural smooth waves. Finally, the programmable rendering pipeline is used to render and offset the wave model to obtain the real wave shape. The experimental results show that the method can easily and quickly realize the simulation of three-dimensional ocean waves, and the wave details are obvious.
作者
张国栋
王波
朱长德
熊桂芳
郭澍
ZHANG Guodong;WANG Bo;ZHU Changde;XIONG Guifang;GUO Shu(Nanjing University of Information Science and Technology,School of Remote Sensing and Geomatics Engineering,Nanjing 210044,China;Visiontek(Nanjing)Co.,Ltd.,Nanjing 210046,China)
出处
《河南科技》
2022年第24期11-17,共7页
Henan Science and Technology