| Underground roadway is one of the important infrastructures in urban development and mine excavation.Three-dimensional visual simulation of fluid in underground roadway can not only show the movement rule of fluid in roadway,but also play an important guiding role in disaster prevention training and emergency evacuation.In the realization of three-dimensional visual simulation of fluid in underground roadway,due to the narrow path of the roadway and the complex topological structure,fluid three-dimensional modeling in roadway is usually time-consuming,making real-time visual simulation difficult.In this thesis,a three-dimensional visualization simulation method of fluid in underground tunnels is proposed by studying the modeling and rendering methods of underground roadway scenes and fluids.The fluid surface mesh construction algorithm based on traversal intersection algorithm is designed for the characteristics of underground roadway scene.By using this algorithm,only need to build the fluid surface in the underground roadway once,and combined with the real-time elevation information of the fluid,the closed surface model of fluid can be constructed in real time in the underground roadway,which greatly improves the efficiency of fluid three-dimensional modeling in the underground roadway.Bump texture rendering or color gradient rendering is carried out on the fluid three-dimensional model to realize three-dimensional visual simulation of fluid in underground roadway.In virtual roaming,texture rendering efficiency is improved by searching adjacent paths,and fluid flow details in roadway are displayed.In the global presentation,color gradient rendering is used to show the distribution and spread process of fluid in the roadway.On the basis of the method research,the three-dimensional visual simulation system of fluid in the underground roadway is designed and implemented,which mainly includes the underground roadway scene construction,fluid surface construction,fluid three-dimensional modeling,visual rendering,virtual roaming and other functions.Based on the application background of mine roadway water inrush accident,the system is tested with the fluid elevation information obtained by numerical simulation.The experimental results show that the method can accurately construct a fluid closed surface model in real time in underground roadway.Using bump texture rendering in virtual roaming,it can effectively display the fluid flow details in the roadway,basically meeting the real-time requirements.In the global presentation,the distribution and spreading process of fluid in the roadway can be displayed in real time by using the method of color gradient rendering,which has good timeliness and practicality and provides scientific basis for disaster relief and safe escape. |