Position-Based Multi-Agent Dynamics for Real-Time Crowd Simulation (MiG paper)

Tomer Weiss, Alan Litteneker, Chenfanfu Jiang, Demetri TerzopoulosarXiv 2018

Abstract

Simulating large-scale crowds in real-time requires a balance between individual agent fidelity and numerical stability. This paper introduces a framework based on Position-Based Dynamics (PBD) that treats agents as particles with positional constraints. This approach ensures unconditional stability, allowing for the simulation of over 100,000 agents at interactive rates. By integrating long-range collision avoidance with tangential sliding and frictional contact, the model successfully captures complex emergent phenomena such as lane formation and arching in both sparse and high-density scenarios.

Introduction

Crowd simulation typically follows one of two paths: discrete agent-based models or continuum fluid-like models. Discrete models, such as social force or power-law models, are effective for sparse groups but often suffer from numerical instability or high computational costs in dense environments. Conversely, continuum models handle massive crowds efficiently but sacrifice individual-level interactions. This research proposes a unified Lagrangian framework using Position-Based Dynamics (PBD) to bridge this gap, offering a robust, stable, and artistically controllable method suitable for high-pressure interactive environments like video games.

Methodology

The core of the proposed system is the adaptation of PBD—traditionally used for cloth and fluid simulation—to multi-agent dynamics. Unlike force-based methods that compute accelerations, PBD directly modifies agent positions to satisfy a set of constraints.

Key Constraints and Dynamics

  1. Velocity Blending: To maintain agent "inertia," the system blends a preferred velocity from a high-level path planner with the agent's current state.
  2. Frictional Contact: Agents are modeled as granular particles. When in close proximity, contact constraints prevent overlaps while simulating realistic friction.
  3. Long-Range Collision Avoidance: The system predicts time-to-collision ($\tau$) and applies predictive constraints. A critical innovation is the Avoidance Model, which prioritizes tangential sliding over normal push-back. This prevents jitter and encourages agents to sidestep naturally.
  4. Group Cohesion: XSPH viscosity is employed to encourage velocity matching among nearby agents, facilitating squad or flocking behavior.
Overview of the PBD collision avoidance mechanism, showing the decomposition of corrections to preserve tangential motion.

Experimental Results

The framework was evaluated using synthetic benchmarks designed to test density, scale, and emergent behavior.

Performance and Scalability

Implemented using CUDA, the system demonstrates exceptional performance. On a mid-range mobile GPU (NVIDIA GeForce GT 750M), it simulates over 100,000 agents at approximately 43ms per frame. Smaller simulations of 1,600 agents run at 11ms per frame, well within the requirements for real-time applications.

Emergent Phenomena

The model naturally produces realistic crowd behaviors without explicit programming. In passing scenarios, agents organize into streams, a phenomenon known as lane formation. In bottleneck tests, the system accurately simulates "jamming" and "arching" as agents navigate narrow passages.

Emergent lane formation in a simulation of two opposing groups passing through each other.

Conclusion and Future Work

The PBD-based crowd simulation framework provides an unconditionally stable solution for massive, heterogeneous crowds. While the model excels at physical interactions and performance, it currently lacks psychological depth, such as social hierarchy or complex decision-making. Future work aims to integrate these dynamics with advanced locomotion synthesis and refine turning constraints to further enhance visual realism.

Summary updated

BibTeX
@misc{weiss2018position,
  author = {Tomer Weiss and Alan Litteneker and Chenfanfu Jiang and Demetri Terzopoulos},
  title = {{Position-Based Multi-Agent Dynamics for Real-Time Crowd Simulation (MiG paper)}},
  year = {2018},
  eprint = {1802.02673},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1802.02673},
}
Figure