基于位图的三维地形速绘算法及其OpenGL编程  被引量:5

Realization of Programming for Fast Drawing of 3D Bitmap Based Terrain

在线阅读下载全文

作  者:宋利[1] 何明一[1] 

机构地区:[1]西北工业大学电子信息学院,陕西西安710072

出  处:《计算机仿真》2009年第2期236-239,共4页Computer Simulation

摘  要:三维真实感地形是虚拟场景中的基础部分,其绘制的速度与质量是构建三维虚拟场景成败的关键。利用Visual C++环境下的MFC机制,以通用的标准三维图形函数库OpenGL为工具,通过在位图的灰度值与地形高程数据之间建立相应的映射关系,建立标准的地形高程数据组,并依托OpenGL平台快速生成了三维网格地形。为增强地形的真实逼真性,对地形网格的法向量作出多重处理,应用OpenGL的光照和纹理映射技术来生成地形的阴暗效果,最后对三维地形的整个场景进行综合编程,实现了三维地形场景的实时、快速绘制。Realistic 3 - D terrain is the foundation of a virtual scene and whose rendering speed and quality are the key to the construction of virtual scene. By building a correspondence between the gray value of Bitmap and the height of terrain to create the data array of the Digital Elevation Model, the system was used to draw the 3D mesh terrain based on MFC of Visual C + + and OpenGL. In order to rendering the realistic terrain, the normal vector of the 3D mesh terrain was processed repeatedly and the shading effect was rendered by the lighting and texture mapping. Finally, the whole 3D terrain in the visual scene was drawn rapidly by programming with OpenGL.

关 键 词:三维地形生成 基于位图 法向量处理 实时绘制 

分 类 号:TP391.72[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象