Skip to main content
Log in

A completely parallel surface reconstruction method for particle-based fluids

  • Original article
  • Published:
The Visual Computer Aims and scope Submit manuscript

Abstract

We present a novel surface reconstruction pipeline that significantly improves reconstructing efficiency while preserves high-quality details for particle-based liquid simulation. Our surface reconstruction algorithm is a sort of completely parallel narrow band method. At the beginning of reconstruction, we develop a spatial hashing grid-based strategy to identify surface particles, which is much more precise and simpler than the smoothed color field. Consequently, those precise surface particles ensure accurate extraction of scalar field in the narrow band around surface without any redundancy, which brings great performance improvement for subsequent reconstruction stages. Furthermore, in order to obtain a better computation performance, we carefully analyze the potential race conditions and conditional branches of each reconstruction step between parallel threads and come up with a completely parallel reconstruction method combined with the exclusive prefix sum algorithm. Our method is pretty straightforward to implement. Experimental results demonstrate that our method runs up to dozen times faster than the state-of-the-art of narrow band-based fluid surface reconstruction, especially for large-scale particle-based fluid.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

References

  1. Adams, B., Pauly, M., Keiser, R., Guibas, L.J.: Adaptively sampled particle fluids. ACM Trans. Graph. (TOG) 26, 48 (2007)

    Article  Google Scholar 

  2. Akinci, G., Akinci, N., Ihmsen, M., Teschner, M.: An efficient surface reconstruction pipeline for particle-based fluids. In: Bender, J., Kuijper, A., Dieter, W.F., Guerin, E. (eds.) 9th Workshop on Virtual Reality Interactions and Physical Simulations, pp. 61–68. Eurographics Association, Darmstadt, Germany (2012). https://doi.org/10.2312/PE/vriphys/vriphys12/061-068

  3. Akinci, G., Akinci, N., Oswald, E., Teschner, M.: Adaptive surface reconstruction for SPH using 3-level uniform grids. In: Oliveira, M.M., Skala, V. (eds.) 21st International Conference in central europe on computer graphics, visualization and computer vision in co operation with association, pp. 195–204. Plzen, Czech Republic. http://wscg.zcu.cz/WSCG2013/!_2013-WSCG-Fullproceedings.pdf (2013)

  4. Akinci, G., Ihmsen, M., Akinci, N., Teschner, M.: Parallel surface reconstruction for particle-based fluids. In: Computer Graphics Forum, vol. 31, pp. 1797–1809. Wiley Online Library (2012)

  5. Bhattacharya, H., Gao, Y., Bargteil, A.W.: A level-set method for skinning animated particle data. IEEE Trans. Vis. Comput. Graph. 21(3), 315–327 (2014)

    Article  Google Scholar 

  6. Blinn, J.F.: A generalization of algebraic surface drawing. ACM Trans. Graph. (TOG) 1(3), 235–256 (1982)

    Article  Google Scholar 

  7. Bridson, R.E., Fedkiw, R.: Computational aspects of dynamic surfaces. Ph.D. thesis, Stanford University Stanford, California (2003)

  8. Canezin, F., Guennebaud, G., Barthe, L.: Topology-aware neighborhoods for point-based simulation and reconstruction. In: Solenthaler, B., Teschner, M., Kavan, L., Wojtan, C. (eds.) Proceedings of the ACM Siggraph/eurographics symposium on computer animation, pp. 37–47. Zurich, Switzerland. http://dl.acm.org/citation.cfm?id=2982825 (2016)

  9. Gao*, M., Wang*, X., Wu*, K., Pradhana, A., Sifakis, E., Yuksel, C., Jiang, C.: Gpu optimization of material point methods. ACM Trans. Graph. (Proceedings of SIGGRAPH ASIA 2018) 37(6) (2018) (*Joint First Authors)

  10. Hadi, N.: Big data simulation for surface reconstruction on CPU-GPU platform. J. Phys. Conf. Ser. 1192, 012006 (2019)

    Article  Google Scholar 

  11. Hadi, N.A., Alias, N.: 3-dimensional human head reconstruction using cubic spline surface on CPU-GPU platform. In: Proceedings of the 2019 4th International Conference on Intelligent Information Technology, pp. 16–20. ACM (2019)

  12. Houston, B., Wiebe, M., Batty, C.: Rle sparse level sets. In: ACM SIGGRAPH 2004 Sketches, p. 137. Citeseer (2004)

  13. Ju, T., Udeshi, T.: Intersection-free contouring on an octree grid. In: Proceedings of the 14th Pacific Conference on Computer Graphics and Applications, vol. 3. Citeseer (2006)

  14. Koren, Y., Carmel, L.: Visualization of labeled data using linear transformations. In: IEEE Symposium on Information Visualization 2003 (IEEE Cat. No. 03TH8714), pp. 121–128. IEEE (2003)

  15. Lee, H., Yang, H.S.: Real-time marching-cube-based LOD surface modeling of 3D objects. In: 14th International Conference on Artificial Reality and Telexistence, ICAT 2004 (2004)

  16. Lee, W., Hasan, S., Shamsuddin, S., Lopes, N.: Gpumlib: deep learning SOM library for surface reconstruction. International Journal of Advances in Soft Computing and its Applications (IJASCA), vol. 9, no. 2, University of Technology Malaysia (2017)

  17. Loop, C.T.: Sparse GPU voxelization for 3D surface reconstruction. US Patent 9,984,498 (2018)

  18. Lorensen, W.E., Cline, H.E.: Marching cubes: a high resolution 3D surface construction algorithm. In: ACM Siggraph Computer Graphics, vol. 21, pp. 163–169. ACM (1987)

  19. Manson, J., Schaefer, S.: Isosurfaces over simplicial partitions of multiresolution grids. In: Computer Graphics Forum, vol. 29, pp. 377–385. Wiley Online Library (2010)

  20. McAdams, A., Selle, A., Tamstorf, R., Teran, J., Sifakis, E.: Computing the singular value decomposition of \(3\times 3\) matrices with minimal branching and elementary floating point operations. University of Wisconsin-Madison Department of Computer Sciences, Tech. rep. (2011)

  21. Müller, M., Charypar, D., Gross, M.: Particle-based fluid simulation for interactive applications. In: Proceedings of the 2003 ACM SIGGRAPH/Eurographics symposium on Computer animation, pp. 154–159. Eurographics Association (2003)

  22. Nielsen, M.B., Museth, K.: Dynamic tubular grid: an efficient data structure and algorithms for high resolution level sets. J. Sci. Comput. 26(3), 261–299 (2006)

    Article  MathSciNet  Google Scholar 

  23. Nielsen, M.B., Nilsson, O., Söderström, A., Museth, K.: Out-of-core and compressed level set methods. ACM Trans. Graph. (TOG) 26(4), 16 (2007)

    Article  Google Scholar 

  24. Onderik, J., Chládek, M., Durikovič, R.: SPH with small scale details and improved surface reconstruction. In: Proceedings of the 27th Spring Conference on Computer Graphics, pp. 29–36 (2011)

  25. Solenthaler, B., Pajarola, R.: Predictive-corrective incompressible SPH. ACM Trans. Graph. (TOG) 28, 40 (2009)

    Article  Google Scholar 

  26. Solenthaler, B., Schläfli, J., Pajarola, R.: A unified particle model for fluid–solid interactions. Comput. Anim. Virtual Worlds 18(1), 69–82 (2007)

    Article  Google Scholar 

  27. Velasco, F., Torres, J.C.: Cell octrees: a new data structure for volume modeling and visualization. VMV 1, 151–158 (2001)

    Google Scholar 

  28. Wang, X., Ban, X., Zhang, Y., Pan, Z., Liu, S.: Anisotropic surface reconstruction for multiphase fluids. In: 2017 International Conference on Cyberworlds (CW), pp. 118–125. IEEE (2017)

  29. Wiemann, T., Mitschke, I., Mock, A., Hertzberg, J.: Surface reconstruction from arbitrarily large point clouds. In: 2018 Second IEEE International Conference on Robotic Computing (IRC), pp. 278–281. IEEE (2018)

  30. Williams, B.W.: Fluid surface reconstruction from particles. Ph.D. thesis, University of British Columbia (2008)

  31. Wu, W., Li, H., Su, T., Liu, H., Lv, Z.: GPU-accelerated SPH fluids surface reconstruction using two-level spatial uniform grids. Visual Comput. 33(11), 1429–1442 (2017)

    Article  Google Scholar 

  32. Yu, J., Turk, G.: Reconstructing surfaces of particle-based fluids using anisotropic kernels. ACM Trans. Graph. (TOG) 32(1), 5 (2013)

    Article  Google Scholar 

  33. Zhou, K., Gong, M., Huang, X., Guo, B.: Data-parallel octrees for surface reconstruction. IEEE Trans. Vis. Comput. Graph. 17(5), 669–681 (2011)

    Article  Google Scholar 

  34. Zhu, Y., Bridson, R.: Animating sand as a fluid. ACM Trans. Graph. (TOG) 24(3), 965–972 (2005)

    Article  Google Scholar 

Download references

Acknowledgements

This work was supported by the Natural Science Foundation of Guangdong Province, China (Grant No. 2019A1515011075).

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Chengying Gao.

Ethics declarations

Conflict of interest

We declare that we have no conflict of interest.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Yang, W., Gao, C. A completely parallel surface reconstruction method for particle-based fluids. Vis Comput 36, 2313–2325 (2020). https://doi.org/10.1007/s00371-020-01898-2

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00371-020-01898-2

Keywords

Navigation