| The frequent occurrence of fires threatens people’s lives and property safety,and the root cause of fires is that people’s firefighting knowledge is weak and they do not know how to respond to fires.Therefore,this paper takes the safety of a college campus as a research background and applies virtual reality to the background Campus fire drill,developed a campus fire drill system.This paper develops a reusable campus fire protection system based on collision detection,particle system,automatic route finding,global illumination and other related technologies,combined with Unity3 D engine.The system mainly includes the following functions: random fire occurrence,fire protection and rescue,personnel evacuation,scene roaming and human-computer interaction.The random fire function uses the particle system to implement the flame and smoke particle algorithm,and simulates the actual state,including the generation,diffusion,and end of flame and smoke.The fire-fighting and rescue function firstly enables firefighters to take the fire extinguisher through collision detection technology,and secondly uses the particle system to make water mist to achieve the method of water mist particle collision to reduce the life value of flame particles to achieve fire extinguishment.The function of personnel evacuation is to use a static route finding method to complete this function.The road is first baked,and then the Nav Mesh triangle mesh is used to complete the automatic route finding algorithm,and finally the effect of personnel evacuation is achieved.The scene roaming function can carry out all-round autonomous roaming of virtual scenes,first modeling and building virtual scenes,and then using collision detection technology to avoid penetration phenomena.Human-computer interaction is the binding of UI interface and script to realize interactive response.The realization of the system solves the problem of waste of resources in traditional fire drills,reduces the losses caused by campus fire accidents,and presents the campus fire drills through virtual reality with a higher sense of reality and broad prospects. |