摘要
该文依据FFT(快速傅立叶变换)方法创建水面三角网格,通过加载三角网格数据的计算水下光线,利用OpenGL在屏幕上绘制出水下海洋环境中的光照模拟效果,再使用GPU并行算法对计算过程进行优化加速,最后通过使用OpenGL的VBO(顶点缓冲区对象)和VAO(顶点数组对象)两种方式来实现两者的交互。通过优化数据结构及存储器分配,有效缓解了模拟方法在GPU架构上的性能瓶颈。实验结果表明,该方法能够实时逼真地模拟水下光照,与已有的方法相比处理速度有显著的提升。
In this paper, according to the FFT(Fast Fourier Transform) method to create the surface triangular grid, by loading triangular grid data to calculate the underwater light, using OpenGL on the screen to draw the underwater marine environment in the light simulation effect, and then use the GPU parallel algorithm pair The process of optimization to accelerate, and finally through the use of OpenGL VBO(vertex buffer object) and VAO(vertex array object) in two ways to achieve the interaction between the two. By optimizing the data structure and memory allocation, effectively alleviate the performance bottleneck of the simulation method on the GPU architecture. The experimental results show that the method can simulate the underwater lighting in real time, and the processing speed is significantly improved compared with the existing methods.
出处
《电脑知识与技术》
2018年第1Z期271-275,共5页
Computer Knowledge and Technology