针对计算机图形学中大规模水域雨场景绘制的难题,提出了-种适合大规模水域雨场景实时绘制的方法。将改进的波动方程引入雨天湖面波动以及雨滴与湖面的交互效果模拟中,结合快速傅里叶变换的风力趋向性以及周期性,建立了雨天水面交互波动的数学模型,根据数学模型构建了雨天水面交互高度图,通过光照渲染,实现了湖面反射效果和雨线绘制。为了提高模拟效率,整个过程在GPU中实现,并采用基于四叉树的多细节层次技术进行加速。在1 440*900的 图像分辨率下,帧速达到了98 fps,满足了实时交互模拟的需求。
The rendering of large-scale water area rain scene is one of the most challenging problems in computer graphics, and a method of rendering large-scale water area rain scene was proposed. By introducing the improved wave equation into the fuctuation of water surface and the interaction of water and raindrop, and incorporating the periodicity and wind tendency of FFT, an interactive fluctuation of water mathematical model in rainy days was established, based on which an interactive height map was rendered. Through the lighting rendering, the reflection effect and rain streaks were simulated. In order to enhance the efficiency, the level-of- detail techniques based on quad-tree were applied and the newest GPU acceleration was applied in order to take its full advantages. The method is efficient and achieves qualified refreshing frequency in real time scene rendering.
[1] Niniane Wang, Bretton Wade.Rendering Falling Rain and Snow[C]// ACM SIGGRAPH. USA: ACM, 2004: 14-15.
[2] Sarh Tariq.Rain[J]// NVIDIA White Paper, 2007.
[3] Kshitiz Garg, Shree K Nayar.Photorealistic rendering of rain streaks[C]// SIGGRAPH '06: ACM SIGGRAPH 2006 Papers ISBN 1-59593-364-6. New York, NY, USA:ACM, 2006: 996-1002.
[4] Anna Puig Centelles, Oscar Ripolles, Miguel Chover,Creation and control of rain in virtual environments[J], Vis. Comput.(S0178-2789), 2009, 25(11): 1037-1052.
[5] Marcos Slomp, Matthew W Johnson, Toru Tamaki, et al,Photorealistic realtime rendering of spherical raindrops with hierarchical reflective and refractive maps[J].Computer Animation and Virtual Worlds (S1546 427X),2011, 22(4): 393-404.
[6] Marcos Slomp, Matthew W Johnson, Toru Tamaki, et al, Photorealistic real- time rendering of spherical raindrops with hierarchical reflective and refractive maps[J]. Computer Animation and Virtual Worlds (S1546-427X), 2011, 22(4): 393 404.
[7] Lifeng Wang, Zhouchen Lin, Tian Fang, et al.Real-time rendering of realistic rain[C]// SIGGRAPH '06: ACM SIGGRAPH 2006 Sketches ISBN 1-59593- 364-6. New York, NY, USA: ACM, 2006: 156.
[8] Garg K, Krishnan G Nayar S K. Material based splashing of water drops[C]// Proceedings of the 18th Eurographics Conference on Rendering Techniques.Eurographics Association, 2007: 171-182
[9] Natalya Tatarchuk.Artist- directable real-time rain rendering in city environments[C]// SIGGRAPH'06:ACM SIGGRAPH 2006 Courses, ISBN 1- 59593-364-6.New York, NY, USA: ACM, 2006: 23-64.
[10] Tessendorf J.Simulating ocean water[C]// PP Computer Graphics Proceedings, Annual Conference Series, ACM SIGGRAPH, Los Angeles, USA. USA: ACM, 2001:1-18
[11] Mitchell J L.Real-time synthesis and rendering of ocean water [R]. Marlborough, USA: Array Technology Industry, Technologies Inc, 2005: 12-17.
[12] Johanson C.Real-time water rendering: introducing the projected grid concept [D]. Lund, Sweden: Lund University, 2004: 12-19.
[13] Kryachko Y.Using vertex texture displacement for realistic water rendering[M]// PP Pharr M, GPU Gems 2, Bost on. USA: Addison -Wesley, 2005: 283-294.
[14] Isidoro J, Vlachos A, Brennan C.Rendering ocean water [M]// PPEngel W F. ShaderX: Vertex and Pixel Shader Tips and Tricks. Minnesota, USA: Wordware Publishing, 2002: 347-356.
[15] Finch M.Effective water simulation from physical models[M]// PP Fermando R. GPU Gems, Bost on. USA: Addison-Wesley, 2004: 1-16.
[16] Zalsnack Jeremy.Vertex Texture Fetch Water[J] NVIDIA SDK White Paper. 2004, 10.
[17] Frank Luna.Interactive fluid dynamics and rendering on the GPU. Game Programming Gems 6[M]. New York, USA: Charles River Media, 2005: 473-476.
[18] H Vistnes.GPU Terrain Rendering. Game Programming Gems 7[M]. New York, USA: Charles River Media, 2006: 461-471.