Method of realtime hill-shading in digital earth system
-
摘要: 通过使用法线贴图的模式,不增加地面网格数的前提下,在三维数字地球仿真系统中实现了对全球地形的高精度实时晕眩效果的地形浏览.首先通过对高程数据进行分层分块处理,制作级地块法线贴图,再通过绘图芯片用可程序化像素着色器流程计算法线贴图的光照效果,最后将纹理贴到对应的分层三维地形网格上.根据光源的入射方向、色调、饱和度及亮度,计算中考虑了顶点的环境光、漫反射光、镜面反射光,在低地形网格数的前提下,实现了如高精度地形网格般的明显光影变化.Abstract: Hill-shading terrain effects, which are high precision and real-time dynamic, were achieved on global terrain in the digital earth simulation system developed. It was realized by using the normal map mode without increasing the number of terrain grid. The elevation data was processed to level of detail chunked and create normal map of all levels by calculating normal. Lighting effects of normal map were calculated by pixel shader and the texture was pasted onto corresponding layered terrain meshes. By the direction of incidence of the light source's incidence direction, hue, saturation and brightness, the vertex's ambient light, diffuse light and specular light was calculated. At low-precision terrain grid, obvious changes effect of light and shadow as high-precision terrain grid was reached.
-
Key words:
- hill-shading /
- digital earth /
- realtime render /
- digital elevation model /
- normal map /
- pixel shader
-
[1] 郭庆胜,王晓延.地貌晕渲中光源使用方法与用色规则的研究[J].武汉大学学报:信息科学版,2004,29(1):20-22 Guo Qingsheng,Wang Xiaoyan. Study on light direction and color in hill-shading[J]. Geomatics and Information Science of Wuhan University,2004,29(1):20-22(in Chinese) [2] 彭国伦.3D绘图程序设计:使用Direct3D IO/9和OpenGL 2.0[M]. 北京:科学出版社,2009:539-541 Peng Guolun. Design of 3D graphic procedure:use Direct3D IO/9 and OpenGL 2.0[M]. Beijing:Science Press, 2009:539-541(in Chinese) [3] 淮永建,郝重阳.基于LOD实时图形绘制和加速技术[J].中国图象图形学报A辑,2002,7(1):97-102 Huai Yongjian,Hao Chongyang. Real-time rendering and acceleration based on LOD[J]. Journal of Image and Graphics A,2002,7(1):97-102(in Chinese) [4] Luebke D,Reddy M,Cohen J D,et al. Level of detail for 3D graphics[M]. San Francisco:Morgan Kaufmann Publishers,2002 [5] 张立强.构建三维数字地球的关键技术研究 .北京:中国科学院研究生院,2004 Zhang Liqiang. Key technologies for 3D digital earth development . Beijing:Graduate University of Chinese Academy of Sciences,2004(in Chinese) [6] 杜莹.全球多分辨率虚拟地形环境关键技术的研究 .郑州:解放军信息工程大学测绘学院,2005 Du Ying. A research on key technologies for global multi-resolution virtual terrain environment . Zhengzhou:Institute of Surveying and Mapping,The PLA Information Engineering University,2005(in Chinese) [7] 杜剑侠,李凤霞,战守义.面向数字地球的海量地形技术研究[J].中北大学学报:自然科学版,2007,28(2):121-124 Du Jianxia,Li Fengxia,Zhan Shouyi. Research on massire terrain in oriented to digital-earth[J]. Journal of North University of China:Natural Science Edition,2007,28(2):121-124(in Chinese) [8] Ronfard R,Rossignac J. Full-range approximation of triangulated Polyhedral //Computer Graphics Forum Proceedings of Eurographics. Oxford:Blackwell Scientific Publishers,1996:67-76 [9] Lindstrom P,Koller D,Ribarsky W,et al. Real-time,continuous level of detail rendering of height fields //International Conference on Computer Graphics and Interactive Techniques 96. New York:ACM,1996:109-118
点击查看大图
计量
- 文章访问数: 2409
- HTML全文浏览量: 209
- PDF下载量: 827
- 被引次数: 0