摘要
提出了基于Perlin噪声的动态水面实时渲染方法。采用开源场景图形系统(OpenSceneGraph)技术对水面大小以及水面周围的场景进行绘制。采用可编程管线技术,用OpenGL着色语言(GLSL)产生随机数通过余弦插值法生成不同频率的纹理再叠加生成Perlin噪声纹理。对生成的Perlin噪声纹理进行采样,得到水面的扰动情况。把水面扰动与水面反射结合起来,生成更加逼真并且实时的水面,在满足实时性的条件下大幅提高了三维场景中水面的逼真性。
A method based on Perlin noise is proposed. First, OpenSceneZ3raph graphic system technique is used to draw the size of water surface and environment around the water. Then, the Perlin noise texture with OpenGL shading language is produced by cosine inter polation after getting random number. After that, the Perlin noise texture is sampled and disturbance of the water surface is obtained. Finally, the disturbance is combined with water surface reflection and more real and effective water surface is generated, and the reality of water surface effects is sharply increased in the application of 3D scene under the condition of real-time rendering.
出处
《计算机工程与设计》
CSCD
北大核心
2013年第11期3966-3970,共5页
Computer Engineering and Design
基金
国家自然科学基金项目(60903118
60832011)