APP下载

基于OPENGL的三维地形的生成实现

2014-11-07马蕾龚戈淬

科技资讯 2014年11期

马蕾 龚戈淬

摘 要:随着计算机图形学的发展,其在科学、工程、医学、娱乐、广告、图形艺术等众多领域得到了普遍应用。我们可以通过图形应用程序来虚拟现实,以及GIS领域方面的遥感图像信息系统的应用。为了逐步实现以上目标的应用,本文将以一个基于OPENGL的,使用高度图(Heightmap)进行地形(Terraain)生成及在此基础上的应用为实例,对系统的需求、算法、优化进行了详细的介绍,并给出了可行的解决方法。

关键词:计算机图形学 HeightMap OPENGL Terrain

中图分类号:G64 文献标识码:A 文章编号:1672-3791(2014)04(b)-0005-02

Abstract:With Computer Graphics is that figures study developments, its at science, numerous fieldses last general application at art, etc.s figures advertisements amusements medical sciences projects. We come virtual reality, and GIS the remote sensing picture the applications of information systems of field through figure application program. At application that realize the goal of the above progressively, this text at one a piece of one that is because of OPENGLs, The topography( Terraain) is produced and the application on the basis of this is the instance to use and highly pursue( Heightmap) to carry on , Demand, algorithm, optimize and introduce detailed one in system, besides, Have carried on brief analysis to some technological questions that are met in the course of developping, Give and publish feasible solution is from realizing angle explain figure the development and use the prospects of application program.

Key Words:Computer Graphics;HeightMap;OPENGL;Terrain

今天,对许多人而言,计算机和计算机图形学已经成为日常生活不可分割的一部分。计算机图形学在科学、工程、医学、娱乐、广告、图形艺术、商业、教育和培训等众多领域得到了普遍的应用。开发高性能的图形应用程序,就不可避免的使用到计算机图形学知识。计算机图形学是一门复杂而又多样化的技术。要想了解这项技术,必须把它分成几个易于操作的部分:如何在计算机中表示图形、如何准备图形的数据、如何显示已准备好的图形、如何实现人与图形的交互。这里,图形是一个广义的概念,凡是可以在图形设备上输出的点、线和文本等的集合都可以称为图形。

尽管许多算法以多边形或边作为图形的数据输入,但多边形或边最终都可以用点来表示。因此,点才是图形的基本组成元素。而曲线通常是通过段直线逼近来实现。至于材料纹理的表示子相当复杂,在许多情况下要使用曲线和点阵。……

登录APP查看全文