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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
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)
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)
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)
Fiorini, P., Shillert, Z.: Motion planning in dynamic environments using velocity obstacles. International Journal of Robotics Research 17, 760–772 (1998)
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)
Harris, M., Sengupta, S., Owens, J.D.: Parallel prefix sum (scan) with CUDA. In: GPU Gems 3, pp. 851–876. Addison-Wesley Professional (2007)
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)
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)
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)
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)
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)
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)
Treuille, A., Cooper, S., Popović, Z.: Continuum crowds. In: SIGGRAPH 2006: ACM SIGGRAPH 2006 Papers, pp. 1160–1168. ACM, New York (2006)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights 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)