Skip to main content

Hybrid Path Planning for Massive Crowd Simulation on the GPU

  • Conference paper
Motion in Games (MIG 2011)

Part of the book series: Lecture Notes in Computer Science ((LNIP,volume 7060))

Included in the following conference series:

Abstract

In modern day games, it is often desirable to have many agents navigating intelligently through detailed environments. However, intelligent navigation remains a computationally expensive and complicated problem. In the past, the continuum crowds algorithm demonstrated the value of using a dynamic potential field to guide many agents to a common goal location. However this algorithm is prohibitively resource intensive for real time applications using large and detailed virtual worlds. In this paper, we propose a novel hybrid system that first uses a coarse A* path finding step. This helps to eliminate unnecessary work during the potential field generation by excluding areas of the world from the potential field calculation. Additionally, we show how an optimized potential field solver can be implemented on the GPU using the concepts of persistent threads and inter-block communication. Results show that our system achieves considerable speedups compared to existing path planning systems and that up to 100,000 agents can be simulated and rendered in real time on a mainstream GPU.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Aila, T., Laine, S.: Understanding the efficiency of ray traversal on GPUs. In: Proceedings of the Conference on High Performance Graphics, HPG 2009, pp. 145–149. ACM, New York (2009)

    Google Scholar 

  2. Bleiweiss, A.: GPU accelerated pathfinding. In: Proceedings of the 23rd ACM SIGGRAPH/EUROGRAPHICS Symposium on Graphics Hardware, GH 2008, pp. 65–74. Eurographics Association, Aire-la-Ville (2008)

    Google Scholar 

  3. Feng, W., Xiao, S.: To GPU synchronize or not GPU synchronize? In: Proceedings of 2010 IEEE International Symposium on Circuits and Systems (ISCAS), May 30 - June 2, pp. 3801–3804 (2010)

    Google Scholar 

  4. Fiorini, P., Shillert, Z.: Motion planning in dynamic environments using velocity obstacles. International Journal of Robotics Research 17, 760–772 (1998)

    Article  Google Scholar 

  5. Geraerts, R., Overmars, M.H.: The corridor map method: a general framework for real-time high-quality path planning: Research articles. Comput. Animat. Virtual Worlds 18, 107–119 (2007)

    Article  Google Scholar 

  6. Harris, M., Sengupta, S., Owens, J.D.: Parallel prefix sum (scan) with CUDA. In: GPU Gems 3, pp. 851–876. Addison-Wesley Professional (2007)

    Google Scholar 

  7. Hollemeersch, C.F., Pieters, B., Lambert, P., Van de Walle, R.: Accelerating virtual texturing using CUDA. In: GPU Pro: Advanced Rendering Techniques, vol. 1, pp. 623–641. AK Peters (2010)

    Google Scholar 

  8. Jeong, W., Whitaker, R.T.: A fast eikonal equation solver for parallel systems. In: SIAM Conference on Computational Science and Engineering 2007, Technical Sketches (2007)

    Google Scholar 

  9. Karamouzas, I., Geraerts, R., Overmars, M.: Indicative routes for path planning and crowd simulation. In: Proceedings of the 4th International Conference on Foundations of Digital Games, FDG 2009, pp. 113–120. ACM, New York (2009)

    Google Scholar 

  10. Morini, F., Yersin, B., Maym, J., Thalmann, D.: Real-time scalable motion planning for crowds. In: Proceedings of the 2007 International Conference on Cyberworlds, pp. 144–151. IEEE Computer Society, Washington, DC (2007)

    Chapter  Google Scholar 

  11. Pettré, J., Ciechomski, P.d.H., Maïm, J., Yersin, B., Laumond, J.P., Thalmann, D.: Real-time navigating crowds: scalable simulation and rendering: Research articles. Comput. Animat. Virtual Worlds 17, 445–455 (2006)

    Article  Google Scholar 

  12. Shopf, J., Barczak, J., Oat, C., Tatarchuk, N.: March of the froblins: simulation and rendering massive crowds of intelligent and detailed creatures on GPU. In: ACM SIGGRAPH 2008 Classes, SIGGRAPH 2008, pp. 52–101. ACM, New York (2008)

    Google Scholar 

  13. Treuille, A., Cooper, S., Popović, Z.: Continuum crowds. In: SIGGRAPH 2006: ACM SIGGRAPH 2006 Papers, pp. 1160–1168. ACM, New York (2006)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Demeulemeester, A., Hollemeersch, CF., Mees, P., Pieters, B., Lambert, P., Van de Walle, R. (2011). Hybrid Path Planning for Massive Crowd Simulation on the GPU. In: Allbeck, J.M., Faloutsos, P. (eds) Motion in Games. MIG 2011. Lecture Notes in Computer Science, vol 7060. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-25090-3_26

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-25090-3_26

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-25089-7

  • Online ISBN: 978-3-642-25090-3

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics