Abstract
In this paper, we present an adaptive particle shape setting method in Lagrangian-approach based screen space splatting algorithm in real-time fluid rendering. The particle radius will be adjusted according to its Weber number and local density in the rendering process so that a large radius of peaceful fluid particle can help to eliminate a bumpy surface artifact, and a small radius can prevent the obviously spherical shape of particles in splash. The shape of fluid particle will be controlled adaptively on the basis of Weber number too, so that fast moving particles could have an ellipsoidal appearance which describes the splash particle shape in turbulent flow persuasively. We also propose an adaptive normal calculation method to avoid the numerical calculation errors in the normal computation process. The sampling interval will be set in accordance with the viewing distance from camera to the fluid so that fuzzy edges or double image effect in a fixed sampling interval normal computation process could be prevented. Both of the two approaches introduced in this paper take only small amount of computing time and will have little impact on the time consuming property of a real-time fluid rendering application.
Similar content being viewed by others
References
Bagar F, Scherzer D, Wimmer M (2010) A layered particle-based fluid model for real-time rendering of water. Comput Graph Forum 29(4):1383–1389
Bridson R (2008) Fluid simulation for computer graphics. A K Peters
Cords H, Staadt O (2008) Instant liquids. In: Poster proceedings of ACM Siggraph/Eurographics symposium on computer animation
Cristini V, Guido S, Alfani A, Bławzdziewicz J, Loewenberg M (2003) Drop breakup and fragment size distribution in shear flow. J Rheol 47(5):1283–1298
Desbrun M, Gascuel M-P (1996) Smoothed particles: a new paradigm for animating highly deformable bodies. In: Boulic R, Hegron G, (eds) Eurographics Workshop on Computer Animation and Simulation (EGCAS). Springer, pp 61–76
Elia B, Van Puyvelde P, Moldenaers P (2010) Single droplet break-up in controlled mixed flows. ACS Appl Mater Interf 2(7):2140–2146
Mihalef V, Metaxas D, Sussman M (2009) Simulation of two-phase flow with sub-scale droplet and bubble effects. Comput Graph Forum 28(2):229–238
Müller M, Charypar D, Gross M (2003) Particle-based fluid simulation for interactive applications. In: SCA ’03: proceedings of the 2003 ACM SIGGRAPH/Eurographics symposium on computer animation. New York, NY, USA, pp 154–159
Müller M, Schirm S, Duthaler S (2008) Screen space meshes. In: SCA ’07: proceedings of the 2007 ACM SIGGRAPH/Eurographics symposium on computer animation, 2007. Eurographics Association, pp 9–15
Rosado G, Rainbow Studios (2007) Motion blur as a post-processing effect. GPU Gems 3, Chapter 27, pp 575–581
Van Der Laan WJ, Green S, Sainz M 2009 Screen space fluid rendering with curvature flow. In: Proceedings of I3D 2009: the 2009 ACM SIGGRAPH symposium on interactive 3D graphics and games. Boston, MA, USA, pp 91–98
Weast R, Lide D, Astle M, Beyerl W (1990) CRC handbook of chemistry and physics, 70th edn. CRC Press
Williams BW (2008) Fluid surface reconstruction from particles. Master’s thesis, The University Of British Columbia
Xu T-C, Wu E-H, Chen M, Xie M (2011) Real-time motion effect enhancement based on fluid dynamics in figure animation. In: Proceedings of VRCAI 2011: ACM SIGGRAPH conference on virtual-reality continuum and its applications to industry, pp 307–314
Zhang Y, Solenthaler B, Pajarola R (2008) Adaptive sampling and rendering of fluids on the gpu. In: Proc. of symposium on point-based graphics, pp 137–146
Acknowledgements
This research is supported by NSFC (No. 60825203, U0935004, 61170104) and Beijing Municipal Natural Science Foundation (4112008).
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Wang, P., Kong, D., Zhang, Y. et al. Adaptive particle shape setting and normal calculation methods in fluid rendering. Multimed Tools Appl 71, 517–532 (2014). https://doi.org/10.1007/s11042-013-1525-6
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11042-013-1525-6