J4

• 研究论文 • 上一篇    下一篇

一种面向虚拟环境的真实感地形生成算法

李广鑫;吴自力;丁振国;周利华   

  1. (西安电子科技大学 多媒体技术研究所, 陕西 西安 710071)

  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2004-10-20 发布日期:2004-10-20

A modeling algorithm for generating terrain in virtual environment

LI Guang-xin;WU Zi-li;DING Zhen-guo;ZHOU Li-hua

  

  1. (Research Inst. of Multimedia Technology, Xidian Univ., Xi'an 710071, China)
  • Received:1900-01-01 Revised:1900-01-01 Online:2004-10-20 Published:2004-10-20

摘要: 给出了一种面向虚拟环境的地形生成算法模型.引入Perlin噪声作为地形高度生成器的基本模型,通过控制噪声的幅度和频率以及噪声叠加,可以生成形态各异的地形.在渲染过程中,使用了3D纹理映射技术,可以模拟随海拔高度而各异的生态景象.给出了一种地形描述脚本语言,能够以数据驱动的方式快速而方便地生成地形.实践证明,用该算法模型在普通PC平台上能够生成真实感较强的地形,并能方便地应用到虚拟现实系统中,满足实时模拟的需要.

关键词: 地形生成, Perlin噪声, 3D纹理, 虚拟环境

Abstract: The paper presents a modeling algorithm for generating terrain in virtual environment. Perlin noise is introduced as the generator of terrain height, which results in a 3D terrain height field of a given 2D terrain area. The terrain is continuous to some degree in virtue of the smoothness characteristic of the noise. By controlling the frequency and amplitude of Perlin noise and superposing more noise value, we can get diversified terrain with the complex work of manual geometry modeling avoided. 3D texture technology is used to map different textures on part of terrain with different heights to simulate diverse environment. A script language is designed to describe the terrain. The script can act as driving data to construct terrain quickly and conveniently in virtual environment application. It turns out that the terrain generated is realistic and that our algorithm satisfies the requirements of real time virtual environment system based on the general PC platform.

Key words: terrain generation, Perlin noise, 3D texture mapping, virtual environment

中图分类号: 

  • TP391