随着虚拟现实的发展,对动态水流的效果要求也越来越高,为了进一步减小动态水流算法的复杂度和计算量,文中提出了一种利用柏林噪声扰动纹理和OpenGL的Shader语言联合产生动态水流的方法,该方法原理简单,效果非常接近于真实水流。通过柏林噪声扰动静态水面纹理来构造动态波面。再利用OpenGL Shader渲染语言进行水面渲染,同时利用OSG实现水面反射等效果,实验证明该方法可以实时模拟真实水流。%With the development of virtual reality,there are more and more requirements for higher quality flowing water,in order to further reduce the complexity and the calculation quantity of the algorithm,A new method using Perlin noise and opengl shader language to create flowing is put forward,the principle of the method is simple,and its effect is very close to the real water.The process is to disturbance static water texture by the perlin noise to structure dynamic wanter surface.,then render the surface by opengl shader language,and achieve reflection effects by OSG.the experiment results show that the method can simulate real flowing real-timely.
展开▼