1 雨天绘制技术
1.1 帧动画纹理贴图
1.2 粒子系统
1.3 Transform Feedback技术
2 粒子的生成
2.1 定义粒子
2.2 粒子算法实现
a=(x,y,-h)-0.15R
b=(x,y,-h)+0.15R
c=(x,y,-h+2.0)-0.15R
d=(x,y,-h+2.0)+0.15R
2.3 雨滴着色
2.4 水花与涟漪
3 雨珠在透明玻璃表面成形效果
3.1 雨滴的分布状态
3.2 运动部分
3.3 尾迹现象
4 积水场景的渲染

|
刘剑超(1982—),男,河北唐山人,硕士,工程师,研究方向为飞行仿真、舰载机理论。 |
|
林亚军(1970—),男,博士,高级工程师。 |
Copy editor: 张培培
收稿日期: 2020-04-30
要求修回日期: 2020-06-30
网络出版日期: 2022-05-07
基金资助
* 国家自然基金重点项目(61632003)
国家自然基金与新加坡国家基金会合作项目(61661146002)
版权
Method of Rainy 3D Scene Real-time Based on Particle System
Received date: 2020-04-30
Request revised date: 2020-06-30
Online published: 2022-05-07
Copyright
为了解决传统雨天三维场景绘制速度慢、效率低、效果差等实际工程应用问题,基于粒子系统,从雨滴的生成、运动到雨滴落地的整个过程,提出了一种大规模雨天环境的渲染方法。该方法采用Transform Feedback技术对雨滴的运动进行绘制,实现了雨滴着色、飞溅水花、动态涟漪等渲染效果,利用OpenGL的离屏渲染特性,采用程序化的方法,根据一张纹理,持续地生成一张新的、有动画圆圈的、代表涟漪的法向量纹理,实现了动态涟漪的算法流程。通过雨滴的分布状态、雨滴的运动和雨滴的尾迹现象三方面的分析,实现了雨滴在透明玻璃表面的形成效果。最后,使用一张路面纹理mask,高度限制在[0,1],实现了路面积水渲染效果,并给出了着色算法。
刘剑超 , 林亚军 , 王述运 , 董斐 . 基于粒子系统的雨天实时仿真方法*[J]. 指挥控制与仿真, 2020 , 42(5) : 70 -75 . DOI: 10.3969/j.issn.1673-3819.2020.05.014
In order to solve the practical engineering application problems such as slow rendering speed, low efficiency and poor effect of traditional 3D scene in rainy day, this paper proposes a method of rendering large-scale rainy day environment about the generation and movement of raindrops to simulate the whole process of raindrops landing. Based on the particle system, this paper presents a rendering method of large-scale rainy environment, from the generation and movement of raindrops to the whole process of raindrops landing. This method uses transform feedback technology to draw the movement of raindrops, realizes the rendering effects of raindrop coloring, splashing water, dynamic ripples and so on. Using the off-screen rendering characteristics of OpenGL and the programmed method, according to a texture, continuously generates a new normal vector texture representing ripples with animation circles, and realizes the algorithm flow of dynamic ripples. Through the analysis of the distribution, movement and wake of raindrops, the formation effect of raindrops on the surface of transparent glass is realized. Finally, this paper uses a pavement texture mask, the height is limited to [0,1], and realizes the water rendering effect of the road area, and gives the coloring algorithm.
Key words: raindrops; particles; coloring algorithm; texture
a=(x,y,-h)-0.15R
b=(x,y,-h)+0.15R
c=(x,y,-h+2.0)-0.15R
d=(x,y,-h+2.0)+0.15R

| [1] |
王康. 动态三维合成视景及其视景仿真研究[D]. 西安: 西安电子科技大学, 2014.
|
| [2] |
|
| [3] |
徐泽骅, 李胜. 面向大规模户外场景的实时绘制系统[D]. 北京: 北京大学, 2017.
|
| [4] |
|
| [5] |
赵圆圆. 雨场景中的雨滴与多种物体交互模拟[D]. 秦皇岛: 燕山大学, 2016.
|
| [6] |
薛松, 翁冬冬, 刘越, 等. 增强现实游戏交互模式对比[J]. 计算机辅助设计与图形学学报, 2015, 27(12):2402-2409.
|
| [7] |
陈华杰, 余小清, 唐经洲, 等. 基于粒子系统与 LOD 技术的实时雨雪效果模拟[J]. 计算机仿真, 2008, 25(4):194-197.
|
| [8] |
王长波, 杨志亮, 张鑫. 虚拟雨景中路面湿润效果的实时建模与绘制[J]. 计算机辅助设计与图形学学报, 2008, 20(6):713-717.
|
| [9] |
唐玉蕾, 袁赞, 吴志红 . 基于 GPU 雨场景的实时模拟[J]. 计算机工程与设计, 2014, 35(6):2188-2191.
|
| [10] |
董鸿鹏, 王春财, 张波. 飞行模拟器视景系统的设计与实现[J]. 计算机应用, 2018, 38(S1):228-231, 235.
|
| [11] |
|
/
| 〈 |
|
〉 |