基于OpenGL与Perlin噪声的3D地形仿真
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

基金项目:


3D Terrain Simulation Based on OpenGL and Perlin Noise
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 增强出版
  • |
  • 文章评论
    摘要:

    随着互联网技术的革新与进步,3D仿真技术在游戏、动漫中的应用愈发显得重要.针对随机中点位移法生成的山体缺乏较好的细节性以及失真性问题,本文提出一种基于OpenGL与Perlin噪声算法生成仿真3D地形环境的方法.传统Perlin噪声算法生成的高程图较为平缓,因此采用分形及湍流算法对高程图进行优化,可以产生明显冲突,更符合山峰的特征.针对地形图像贴图过程中出现的过渡断层现象,采用分层采样策略,使图像呈现更加自然.在光照添加的过程中,提出了多次二分平均算法计算平面法线向量,在山体光线的呈现上有更加圆滑的效果.实验结果表明,该方法可以很好地创建3D地形的三维网格,同时能够表现出良好的仿真效果.

    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

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2021-03-18
  • 最后修改日期:2021-04-16
  • 录用日期:
  • 在线发布日期: 2021-12-17
  • 出版日期:
您是第位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号