Hierarchical crowd simulation method and system used for complex scene

The invention discloses a hierarchical crowd simulation method and system used for a complex scene. The method comprises the steps that regional division is carried out on the complex scene, and a topological structure diagram of the complex scene is obtained; global path planning is carried out on the complex scene, and a global path which comprises a scene entrance and a scene exit and a specific interest region is calculated, wherein the scene entrance, the scene exit and the specific interest region are in the complex scene; crowd grouping information and position information of individuals, of the crowd, in the complex scene are confirmed, a potential field of the individuals is established in the complex scene, and according to the potential field of the individuals, acting force exerted on the individuals in the complex scene is calculated; real-time velocities of the individuals during the crowd simulation process are calculated, and by using a traffic flow model, the real-time velocities of the individuals during the crowd simulation process are corrected in real time, so that the crowd simulation is achieved. According to the technical scheme, a velocity control mechanism in a potential field method crowd simulation is improved, and the problem that the velocity variation is unnatural is solved, so that the velocity variation is more conformed to the crowd moving rule, and the actual requirement of the crowd simulation is met.