海浪表面泡沫_Realflow2013_RealWave方法:系列其中一篇。http://qqww2334.blog.163.com/blog/static/1203658220137218493960/ RealWave 创建泡沫预览:ParameterDescriptionEncoded in备注Color Threshold (颜色阈值)决定会产生多少粒子GRAPHS.FramesPost.CreateParticlesForWC.ColorThresholdJittering Positions (随机位移)随机位移变量GRAPHS.FramesPost.CreateParticlesForWC.JitteringRadiusOfParticlesFoam-Texture (泡沫贴图)灰度图像控制粒子生成GRAPHS.SimPre.Init.LoadFoam.StringAdditional Particles (添加粒子)不是随机粒子,是把随机添加到创建出的粒子周围…(?)GRAPHS.FramesPost.MoveParticlesFromContainerTempToCAndM.ParticleMultiplierAdditional Particles Jittering Radius (添加粒子抖动半径)生成粒子的位移变量的默认半径GRAPHS.SimPre.Init.Radius Neighbor Threshold (相邻粒子阈值)移动粒子,小于Y相邻粒子GRAPHS.FramesPost.RemoveParticleLowerAgeAndNeighbors.NoOfNeighbors 1. Algorithm(算法思路)a. Use WhiteCaps-Image of StatisticalSpectrum (使用统计波的WhiteCaps-Image)b. Multiply with Foam Map (乘上泡沫贴图)c. If (colorthreshold) - Create Particles (如果颜色值大于阈值-生成粒子)d. Place Particles on Surface (把粒子放置到浪面上)e. Animate Particles horizontally, according to choppy wave movement(根据海浪起伏变化决定粒子水平方向的动态) 2. Color-Thresholda. Define amount of Foam (定义泡沫粒子数量)b."GRAPHS.FramesPost.CreateParticlesForWC. ColorThreshold" (在结点图中设置参数) 3. Jittering Positions (随机粒子位移)a. Randomize particle positions (随机粒子位移)b.GRAPHS.FramesPost.CreateParticlesForWC. JitteringRadiusOfParticles(在结点图中设置参数) 4. Additional Particles (生成粒子)a. Define Foam-Density(定义泡沫密度)b.GRAPHS.FramesPost.MoveParticlesFromContainerTempToCAndM. ParticleMultiplier(在结点图设置粒子数量)c.Set radius in GRAPHS.SimPre.Init.Radius(在结点图中设置半径) 5. Neighbor Threshold (相邻粒子阈值)a.Remove small foam-areas (移除小的泡沫区域)b.GRAPHS.FramesPost.RemoveParticleLowerAgeAndNeighbors.NoOfNeighbors(在结点图设置设置) 6. Foam Texture (泡沫贴图)a. Set foam-image in GRAPHS.SimPre.Init.LoadFoam.String(设置泡沫图片,在…)b. Used for Particle Creation (用于创建生成粒子)c.Enhance realism by introducing ?realistic? pattern(使用realistic图形增加真实性)d. Foam is only created for white pixels (泡沫只是创建出来的白色像素)e.Number of created particles depends on image-resolution (set in Image & Statist.Spec:GRAPHS.SimPre.ImageScaleANDGRAPHS.FramesPost. CreateParticlesForW.ImageScale(创建粒子数量根据图片分辨率)(在Image&Statist.Spec设置) 最终效果: