###
计算机系统应用英文版:2022,31(1):182-189
本文二维码信息
码上扫一扫!
基于OpenGL与Perlin噪声的3D地形仿真
(1.浙江理工大学 信息学院, 杭州 310018;2.浙江理工大学科技与艺术学院, 绍兴 312369)
3D Terrain Simulation Based on OpenGL and Perlin Noise
(1.School of Information Science and Technology, Zhejiang Sci-Tech University, Hangzhou 310018, China;2.Keyi College of Zhejiang Sci-Tech University, Shaoxing 312369, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 653次   下载 1061
Received:March 18, 2021    Revised:April 16, 2021
中文摘要: 随着互联网技术的革新与进步,3D仿真技术在游戏、动漫中的应用愈发显得重要.针对随机中点位移法生成的山体缺乏较好的细节性以及失真性问题,本文提出一种基于OpenGL与Perlin噪声算法生成仿真3D地形环境的方法.传统Perlin噪声算法生成的高程图较为平缓,因此采用分形及湍流算法对高程图进行优化,可以产生明显冲突,更符合山峰的特征.针对地形图像贴图过程中出现的过渡断层现象,采用分层采样策略,使图像呈现更加自然.在光照添加的过程中,提出了多次二分平均算法计算平面法线向量,在山体光线的呈现上有更加圆滑的效果.实验结果表明,该方法可以很好地创建3D地形的三维网格,同时能够表现出良好的仿真效果.
中文关键词: OpenGL  Perlin噪声  地形仿真
Abstract:With the innovation and progress of Internet technologies, the application of three-dimensional (3D) simulation technologies in games and animations has become increasingly important. In response to the lack of detail and the distortion of the mountains generated by the random midpoint displacement method, this paper proposes a method of generating simulated 3D terrain environments based on the OpenGL technology and the Perlin noise algorithm. The elevation maps generated by the traditional Perlin noise algorithm are relatively flat. Therefore, they are optimized with the fractal and turbulence algorithms, which produce obvious conflicts that are more in line with the characteristics of the mountains. For the transitional fault phenomena in the process of terrain image mapping, a layered sampling strategy is adopted to make the image more natural. In the case of added light, the plane normal vector is obtained through the multiple binary averaging algorithm, which delivers a smoother mountain light representation. The experimental results show that the method not only realizes the 3D grid construction of 3D terrain but also shows a favorable simulation effect.
文章编号:     中图分类号:    文献标志码:
基金项目:
引用文本:
黄泽华,铁治欣,陈强.基于OpenGL与Perlin噪声的3D地形仿真.计算机系统应用,2022,31(1):182-189
HUANG Ze-Hua,TIE Zhi-Xin,CHEN Qiang.3D Terrain Simulation Based on OpenGL and Perlin Noise.COMPUTER SYSTEMS APPLICATIONS,2022,31(1):182-189