Wind pressure simulation method and device, electronic equipment and computer readable storage medium

By determining wind direction areas and mountain peaks in a two-dimensional topographic map, and calculating wind pressure values ​​to drive the virtual model to swing, the problem of high computational resource consumption or lack of dynamic changes in the wind effect simulation in existing technologies is solved, and a fast and accurate wind-driven effect is achieved.

CN121661270APending Publication Date: 2026-03-13GUANGZHOU BOGUAN TELECOMM TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-04
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing methods for simulating wind effects in real-time 3D rendering suffer from high computational resource consumption or a lack of dynamic changes in the results, and cannot effectively simulate the turbulence or attenuation phenomena caused by wind encountering obstacles.

Method used

By determining the target wind direction area from the two-dimensional topographic map, obtaining the topographic elevation and wind shadow path of the mountain peak, calculating the wind pressure value of each target point, and driving the swing effect of the virtual model based on the wind pressure value, the wind pressure calculation method based on the two-dimensional topographic map is adopted to reduce the amount of calculation and improve the accuracy of the wind-driven effect.

Benefits of technology

It achieves fast calculation speed, calculation results that match the real situation, more accurate and realistic wind-driven effects, is suitable for precise movement of various virtual models, has low computational load and the results can be reused.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121661270A_ABST
    Figure CN121661270A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a wind pressure simulation method and device, electronic equipment and a computer readable storage medium, and belongs to the technical field of computers.The method comprises the steps that a target wind direction area is determined from a two-dimensional topographic map according to a preset wind direction; acquiring a peak point of the target wind direction area according to the plurality of target points; according to the current wind speed of the peak point and the terrain elevation, obtaining the maximum wind shadow path of the wind speed influenced by the peak point, and determining the wind shadow height corresponding to each target point according to the maximum wind shadow path; acquiring a wind pressure value of each target point according to the wind shadow height, the terrain elevation, the first acceleration and the current wind speed of each target point; and performing wind driving processing on the virtual model according to the wind pressure value of each target point so as to simulate the wind swing effect of the virtual model. Through the provided wind pressure simulation scheme, the maximum shadow path is calculated based on the preset wind direction, so that the wind pressure value of the topographic point can be accurately determined based on the maximum shadow path, the calculation amount is reduced, and the accuracy of the wind driving effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a wind pressure simulation method, apparatus, electronic device, and computer-readable storage medium. Background Technology

[0002] In the field of 3D real-time rendering, simulating natural phenomena such as wind or wind-like effects is an important means of improving the realism of virtual environments. Current mainstream game engines and 3D visualization systems typically employ two basic methods to simulate wind effects: one is to set a global static wind vector, which applies a constant wind force of uniform direction and magnitude to interactive objects in the virtual scene, a simple method with extremely low computational overhead; the other is to construct physical equations based on fluid dynamics principles, simulating the interaction between wind and obstacles by solving complex models, a method that can produce highly realistic effects such as falling leaves and fluttering flags. However, while the former saves computational resources, it results in a lack of dynamic changes in wind effects, failing to represent turbulence or attenuation phenomena caused by wind encountering obstacles; the latter, when solving complex models, demands extremely high computational power. This contradiction between computational accuracy and performance consumption restricts the widespread application of wind effect simulation in 3D real-time environments. Summary of the Invention

[0003] To address the aforementioned technical problems, embodiments of this application provide a wind pressure simulation method, apparatus, electronic device, and computer-readable storage medium.

[0004] In a first aspect, embodiments of this application provide a wind pressure simulation method, the method comprising: Based on the preset wind direction, a target wind direction area is determined from a two-dimensional topographic map, and the target wind direction area includes multiple target points; Based on multiple target points, obtain the mountain peaks in the target wind direction area, where the terrain elevation of the mountain peaks is greater than the terrain elevation of the two adjacent target points. Based on the current wind speed and terrain elevation of the mountain peak, obtain the maximum wind shadow path that affects the wind speed of the mountain peak, and determine the wind shadow height corresponding to each of the target points based on the maximum wind shadow path. The wind pressure value of each target point is obtained based on the wind shadow height, terrain elevation, first acceleration and current wind speed of each target point; The virtual model is subjected to wind-driven processing based on the wind pressure value of each target point to simulate the wind-induced swaying effect of the virtual model.

[0005] Secondly, embodiments of this application provide a wind pressure simulation device, the wind pressure simulation device comprising: The first determining module is used to determine the target wind direction area from a two-dimensional topographic map according to a preset wind direction, wherein the target wind direction area includes multiple target points; The first acquisition module is used to acquire the mountain peaks of the target wind direction area based on the multiple target points, wherein the terrain elevation of the mountain peaks is greater than the terrain elevation of the two adjacent target points. The second determining module is used to obtain the maximum wind shadow path that affects the wind speed of the mountain peak point based on the current wind speed and terrain elevation of the mountain peak point, and to determine the wind shadow height corresponding to each of the target points based on the maximum wind shadow path. The second acquisition module is used to acquire the wind pressure value of each target point based on the wind shadow height, terrain elevation, first acceleration and current wind speed of each target point; The processing module is used to perform wind-driven processing on the virtual model based on the wind pressure value of each target point, so as to simulate the wind-induced swaying effect of the virtual model.

[0006] Thirdly, embodiments of this application provide an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the computer program executes the wind pressure simulation method provided in the first aspect when the processor is running.

[0007] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on a processor, executes the wind pressure simulation method provided in the first aspect.

[0008] The wind pressure simulation method provided in this application, based on a preset wind direction, determines a target wind direction region from a two-dimensional topographic map. This target wind direction region includes multiple target points. Based on these target points, it obtains the peak points within the target wind direction region, where the terrain elevation of each peak point is greater than the terrain elevation of any two adjacent target points. Based on the current wind speed and terrain elevation of each peak point, it obtains the maximum wind shadow path affecting the wind speed of that peak point, and determines the wind shadow height corresponding to each target point based on the maximum wind shadow path. Based on the wind shadow height, terrain elevation, first acceleration, and current wind speed of each target point, it obtains the wind pressure value of each target point. Based on the wind pressure values ​​of each target point, it performs wind-driven processing on the virtual model to simulate the wind-induced swaying effect of the virtual model. By calculating the wind shadow values ​​of each target point based on a two-dimensional topographic map, the computational load is small, the calculation speed is fast, the calculation results can be reused, the impact on rendering speed is negligible, and the calculated wind pressure values ​​of the corresponding terrain points are more consistent with reality. Based on the calculated wind pressure values, various virtual models are driven to perform precise movements, resulting in a more accurate and realistic wind-driven effect. Attached Figure Description

[0009] To more clearly illustrate the technical solutions of this application, the accompanying drawings used in the embodiments will be briefly described below. It should be understood that the following drawings only show some embodiments of this application and should not be considered as a limitation on the scope of protection of this application. In the various drawings, similar components are numbered similarly.

[0010] Figure 1 A flowchart of the wind pressure simulation method provided in an embodiment of this application is shown; Figure 2 A flowchart illustrating step S110 of the wind pressure simulation method provided in this application embodiment is shown. Figure 3 An example diagram of the terrain coordinate system provided in an embodiment of this application is shown; Figure 4 A schematic diagram of the starting grid provided in an embodiment of this application is shown; Figure 5 A schematic diagram of the target wind path provided in an embodiment of this application is shown; Figure 6 A schematic diagram of the wind shadow area provided in an embodiment of this application is shown; Figure 7 A flowchart illustrating step S130 of the wind pressure simulation method provided in this application embodiment is shown. Figure 8 This illustration shows a schematic diagram of the wind shadow area rendering effect provided in an embodiment of this application; Figure 9 This illustration shows a schematic diagram of the high-voltage and low-voltage points provided in an embodiment of this application. Figure 10 A schematic diagram illustrating the arrangement of the second straight line provided in an embodiment of this application is shown; Figure 11 A rendered schematic diagram of the air pressure value provided in an embodiment of this application is shown; Figure 12 A flowchart illustrating step S140 of the wind pressure simulation method provided in this application embodiment is shown. Figure 13 A schematic diagram of the wind pressure simulation device provided in an embodiment of this application is shown; Figure 14 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation

[0011] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0012] This application provides a wind pressure simulation method, apparatus, storage medium, and electronic device. Specifically, the wind pressure simulation method of this application can be executed by an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, touch screen, game console, personal computer (PC), personal digital assistant (PDA), or other terminal device. The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0013] For example, when this wind pressure simulation method is run on a terminal device, the terminal device stores a game application that simulates the swaying of a virtual model in the wind and uses it to present a virtual scene that appears during the simulated swaying of the virtual model in the wind, as well as to simulate the wind-driven effect of the virtual model's swaying or wind-like swaying. The terminal device is used to interact with the user through a graphical user interface, such as by downloading, installing, and running the game application. The terminal device can provide the graphical user interface to the user in various ways, such as rendering it on the terminal device's display screen or presenting the graphical user interface through holographic projection.

[0014] For example, when this wind pressure simulation method runs on a server, it can be applied to cloud gaming. Cloud gaming refers to a gaming method based on cloud computing. In the cloud gaming operating mode, the game application and the game screen presentation are separate. The storage and execution of the wind pressure simulation method are completed on the cloud gaming server. The game screen presentation is completed on the cloud gaming client. The cloud gaming client is mainly used for receiving and sending game data and presenting the game scene. For example, the cloud gaming client can be a display device with data transmission capabilities close to the user, but the terminal device for processing game data is the cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send operation commands to the cloud gaming server. The cloud gaming server runs the game according to the operation commands, encodes and compresses the game scene and other data, returns it to the cloud gaming client through the network, and finally, the cloud gaming client decodes and outputs the game scene.

[0015] The following will provide a detailed description of the wind pressure simulation method, apparatus, storage medium, and electronic device provided in the embodiments of this application. It should be noted that the sequence numbers of the following embodiments are not intended to limit the preferred order of the embodiments.

[0016] The virtual model applied by the wind pressure simulation method in this application embodiment can refer to various plants, particles, etc. in a game scene. When the virtual model is a virtual plant, it can be grass, shrubs, trees, etc. When simulating the display of virtual plants swaying in the wind, the corresponding virtual plant can refer to a single plant or multiple plants. The simulated display effect of multiple plants swaying in the wind is shown, such as the overall swaying effect of grass or shrubs. When the virtual model is a particle, particle motion can be simulated.

[0017] Example 1 Figure 1 This is a flowchart illustrating the wind pressure simulation method provided in this application embodiment. The wind pressure simulation method is executed by an electronic device and includes: Step S110: Determine the target wind direction area from the two-dimensional topographic map according to the preset wind direction. The target wind direction area includes multiple target points. Step S120: Based on multiple target points, obtain the peak points in the target wind direction area. The terrain elevation of the peak points is greater than the terrain elevation of the two adjacent target points. Step S130: Based on the current wind speed and terrain elevation of the mountain peak, obtain the maximum wind shadow path that affects the wind speed of the mountain peak, and determine the wind shadow height corresponding to each target point based on the maximum wind shadow path. Step S140: Obtain the wind pressure value of each target point based on the wind shadow height, terrain elevation, first acceleration and current wind speed of each target point; Step S150: Perform wind-driven processing on the virtual model based on the wind pressure value of each target point to simulate the wind-induced swaying effect of the virtual model.

[0018] The wind pressure simulation method provided in this embodiment calculates the maximum wind shadow path based on a preset wind direction, thereby accurately determining the wind pressure value of a terrain point based on the maximum wind shadow path and improving the accuracy of the wind-driven effect.

[0019] The exemplary steps of each embodiment of this application are described below: Step S110: Determine the target wind direction area from the two-dimensional topographic map according to the preset wind direction. The target wind direction area includes multiple target points.

[0020] In this embodiment, the preset wind direction can be a wind direction determined by the developers based on actual conditions, or it can be the prevailing wind direction in the natural environment. Alternatively, it can be determined by high-pressure and low-pressure information set by the developers, which will not be elaborated upon here. In one embodiment, the method further includes: determining the preset wind direction based on high-pressure and low-pressure points. The wind direction starting point can be determined on a two-dimensional topographic map according to the preset wind direction. Based on the wind direction starting point and the preset wind direction, a target wind direction path is determined, and the topographic points traversed by the target wind direction path are identified as target points.

[0021] See Figure 2 Step S110 includes: Step S111: Discretize the two-dimensional topographic map to obtain a two-dimensional grid. The two-dimensional grid includes multiple grids, and each grid corresponds to a topographic point. Step S112: Determine the target wind direction area based on the two-dimensional grid and the preset wind direction; Step S113: From multiple terrain points in the two-dimensional grid, determine multiple target points corresponding to the target wind direction area.

[0022] It is understandable that gridding a two-dimensional topographic map involves calculations performed in two-dimensional space, and gridding calculations are fast.

[0023] See Figure 3 , Figure 3 The image shown is an example of a terrain coordinate system. Figure 3 The system includes a two-dimensional grid map and coordinate direction indicators. The coordinate direction indicators include the x-axis, y-axis, and z-axis. The y-axis is vertically upward, while the x-axis and z-axis are perpendicular to each other on the horizontal plane. The two-dimensional grid map is obtained by discretizing a two-dimensional topographic map. The two-dimensional grid map consists of multiple grids, each corresponding to a topographic point. For example, a topographic point is represented by coordinates (x, y, z).

[0024] In one embodiment, step S112 includes: The starting grid is determined from the two-dimensional grid according to the preset wind direction. The target wind direction path is determined along the preset wind direction and according to the preset forward distance, starting from the vertex of the starting grid. Determine the target wind direction area based on the target wind direction path.

[0025] It's understandable that the initial grid has four vertices, and any one of these four vertices can be used as the starting point; there are no restrictions here. See also Figure 4 , Figure 4 The image shows a schematic diagram of the initial grid. Figure 4 The gray grid in the image represents the starting grid, and the arrows indicate the preset wind direction. For example, the grid in the first row and the first column are used as the starting grid. Figure 4 Starting from the bottom right vertex of the first row and first column of the raster, the target wind path is determined along a preset wind direction and at a preset forward distance. This target wind path is a rasterized straight line. See also Figure 5 , Figure 5 The diagram shows the target wind path.

[0026] In this embodiment, the preset forward distance can be calculated based on the slope of the preset wind direction and the spacing between the vertices of the grid. For example, the product of the slope of the preset wind direction and the spacing between the vertices of the grid can be used as the preset forward distance. Please refer again. Figure 5 Starting from the starting point, the corresponding grid is determined according to the preset wind direction and the preset forward distance. The target wind direction path is obtained based on all the determined grids. The terrain points corresponding to each grid on the target wind direction path are determined as target points. The target wind direction area is determined based on the determined terrain points (i.e. target points).

[0027] It should be noted that if the preset wind direction is the prevailing wind direction, then the target wind path can be called the prevailing wind path, and the target wind area can be called the prevailing wind area. In one embodiment, step S113 includes: Candidate grids are determined from multiple grids based on the target wind direction path; The terrain points corresponding to the candidate grids are identified as the target points.

[0028] Please see again Figure 5 The gray grid corresponding to the arrow is the determined candidate grid. The terrain point of the candidate grid, that is, the coordinates (x, y, z) corresponding to the candidate point, is taken as the target point.

[0029] Step S120: Based on multiple target points, obtain the peak points in the target wind direction area. The terrain elevation of the peak points is greater than the terrain elevation of the two adjacent target points.

[0030] In this embodiment, all target points in each target wind direction region are iteratively calculated. For multiple target points in each target wind direction region, the peak points of each target wind direction region are determined. A peak point is characterized by having a terrain elevation lower than the terrain elevation of the preceding and following target points. Terrain elevation is the height above the horizontal plane. The number of peak points corresponding to each target wind direction region may be one or more, depending on the actual traversal results, and is not limited here. After obtaining the peak points, they are recorded in a peak list for subsequent retrieval, improving retrieval efficiency.

[0031] Step S130: Based on the current wind speed and terrain elevation of the mountain peak, obtain the maximum wind shadow path that affects the wind speed of the mountain peak, and determine the wind shadow height corresponding to each target point based on the maximum wind shadow path.

[0032] In this embodiment, the wind shadow zone refers to a terrain area where the wind is blocked by a mountain peak. Within the wind shadow zone, the wind speed at a terrain point depends on the wind shadow height and the terrain elevation of that point. See also Figure 6 , Figure 6 This is a schematic diagram of the wind-scarred area. Figure 6 In the diagram, the wind shadow area corresponding to the maximum wind shadow path L1 at peak point A includes wind shadow area Q1. Figure 6 The terrain elevation y of the target point C, and the corresponding wind shadow height y s .

[0033] In this embodiment, if there is only one mountain peak corresponding to the target risk area, the maximum wind shadow path of the mountain peak is determined based on the current wind speed and terrain elevation of the mountain peak. The initial wind shadow height of each target point is determined based on the maximum wind shadow path of the mountain peak, and the initial wind shadow height of each target point is determined as the wind shadow height of the target point.

[0034] As an example, the maximum wind shadow path of the mountain peak can be calculated using the following formula (1): (1) Where, d s is the maximum wind shadow path of the mountain peak, h is the terrain elevation of the mountain peak, v is the current wind speed of the mountain peak, and a is an adjustment parameter, which can be determined based on empirical values. For example, a can be set to 0.2.

[0035] In this embodiment, the initial wind shadow height of the mountain peak on each target point on the path of maximum influence can be calculated based on the proportional relationship of the right-angled sides of the triangle.

[0036] As an example, the wind shadow height of the peak point relative to the target point on the path of maximum influence is calculated according to the following formula (2); (2) Among them, y s The wind shadow height of the target point on the path of maximum influence is represented by h, where h is the terrain elevation of the mountain peak, and d is the wind shadow height of the target point on the path of maximum influence. s Let be the maximum wind shadow path of the mountain peak, and d be the distance from the target point to the mountain peak along the path of maximum influence. It should be noted that if the wind shadow height of the target point is the same as the terrain elevation of the target point, then the target point is completely exposed to the wind, and the wind speed will not decrease. If the wind shadow height of the target point is greater than the terrain elevation of the target point, the wind speed will decrease at the target point.

[0037] To further clarify, when there are multiple peaks corresponding to the target risk area, it is necessary to calculate the maximum wind shadow path for each peak, calculate the wind shadow height of each maximum wind shadow path at each target point, and determine the maximum wind shadow height among all wind shadow heights corresponding to each target point as the initial wind shadow height of each target point. See Figure 7 Step S130 includes the following steps: Step S131: When there are at least two mountain peaks, determine the maximum wind shadow path of each mountain peak based on the current wind speed and terrain elevation of each mountain peak, and determine the initial wind shadow height of each target point based on the maximum wind shadow path of each mountain peak. Step S132: Determine the wind shadow height of each target point based on the initial wind shadow height corresponding to each target point.

[0038] As an example, when there are at least two peak points, for each peak point, the maximum wind shadow path of each peak point is calculated using the above formula (1), and the initial wind shadow height of each peak point relative to the target point on its maximum influence path is calculated using the above formula (2). In this way, each target point has multiple initial wind shadow heights, and the initial wind shadow height of the maximum influence path of each peak point relative to the same target point may be the same or different.

[0039] In one embodiment, step S132 includes: The maximum wind shadow height among the multiple initial wind shadow heights for each target point is determined as the wind shadow height for each target point.

[0040] It is understandable that when each target point has multiple initial wind shadow heights, the maximum wind shadow height among these multiple initial wind shadow heights will result in the greatest deceleration effect. Therefore, the maximum wind shadow height among the multiple initial wind shadow heights of a target point can be used as its wind shadow height.

[0041] In one embodiment, the method further includes: Determine the wind shadow area that affects wind speed at the mountain peak based on the maximum wind shadow path; Determine key rendering parameters based on the wind shadow height of the target point; The wind shadow area is rendered based on key rendering parameters. The higher the wind shadow height of the target point, the larger the key rendering parameters.

[0042] Please see again Figure 6 The wind shadow area corresponding to the maximum wind shadow path L2 corresponding to the peak point B includes wind shadow area Q2 and wind shadow area Q3. The number of wind shadow areas corresponding to the maximum wind shadow path corresponding to the peak point is determined according to the actual traversal results and is not limited here.

[0043] See Figure 8 , Figure 8 The image shows a rendering effect of the wind shadow area. The key rendering parameters can be RGB color values ​​or brightness values. The higher the wind shadow height of the target point, the greater the RGB color value or brightness value. For example, a color parameter from red to white can be used for rendering. The redder the area, the lower the corresponding wind shadow height, and the whiter the area, the higher the corresponding wind shadow height. The wind speed will be significantly reduced. In this way, through visualization rendering, the influence of the wind shadow area on wind speed can be better displayed.

[0044] Step S140: Obtain the wind pressure value of each target point based on the wind shadow height, terrain elevation, first acceleration, and current wind speed.

[0045] It is understandable that wind is generated as a result of spatial differences in atmospheric pressure. In this embodiment, the first acceleration is determined by comprehensively considering the air pressure value of each target point and the collision situation of the wind at the target point. Then, by combining the wind shadow height, terrain elevation, first acceleration and current wind speed of each target point, the wind pressure value of each target point is more accurate.

[0046] In this embodiment, to calculate the air pressure value at each target point, two locations can be pre-selected on a two-dimensional topographic map, one of which is designated as a high-pressure point and the other as a low-pressure point. The high-pressure point P is then set. H The coordinates are (x h , z h High voltage point P H The air pressure value is the high pressure value f. H Set low-pressure point P L The coordinates are (x l , z l Low pressure point P L The air pressure value is the low pressure value f. L Based on high voltage point P H High pressure value f H Low pressure point P L Low pressure value f LIt can calculate the air pressure value of each topographic point on a two-dimensional topographic map. In this embodiment, the target point is the topographic point corresponding to the target wind direction area; therefore, based on the high-pressure point P... H High pressure value f H Low pressure point P L Low pressure value f L It can calculate the air pressure value at each target point.

[0047] In this embodiment, the method further includes: Based on the high-pressure and low-pressure information of the two-dimensional topographic map, the air pressure values ​​of each target point are obtained. The high-pressure information includes high-pressure points and high-pressure values, and the low-pressure information includes low-pressure points and low-pressure values.

[0048] Please see again Figure 9 Based on user input, high-pressure and low-pressure information is set on the two-dimensional topographic map. The high-pressure information includes high-pressure point P. H and high pressure value f H The low-pressure information includes low-pressure point P. L Low pressure value f L At high voltage point P H and low pressure point P L Establish the first straight line between them, starting from the high-pressure point P. H Pointing to low pressure point P L The arrow represents the direction of the pressure gradient. The air pressure values ​​at various terrain points on a two-dimensional topographic map can be calculated using this first straight line. Figure 8 In this diagram, the grayscale color represents the air pressure value at each topographic point. It should be noted that in this embodiment, multiple target points corresponding to the target wind direction area are determined from multiple topographic points in a two-dimensional grid. These target points are essentially all or some of the topographic points in the two-dimensional grid. Therefore, the low-pressure point P can be used as a reference. L Low pressure value f L High voltage point P H and low pressure point P L Calculate the air pressure value at each target point.

[0049] In this embodiment, the air pressure values ​​of each target point are obtained based on the high-pressure and low-pressure information of the two-dimensional topographic map, including: Determine the first straight line between the high-pressure point and the low-pressure point; The target point located on the first straight line is designated as the first target point; The air pressure value at the first target point is determined based on the high pressure value, low pressure value, and interpolation algorithm. Determine the intersection point of the second line and the first line. The second line is a line that passes through the second target point and is perpendicular to the first line. The second target point is a target point other than the first target point among multiple target points. The air pressure value of the second target point is determined based on the high pressure value, low pressure value, intersection point, high pressure point and low pressure point.

[0050] It should be noted that the interpolation algorithm can be a linear interpolation algorithm; various linear interpolation algorithms can be used without restriction. In this embodiment, the user can specify the location and intensity of the high-pressure and low-pressure systems, improving the flexibility of the settings.

[0051] The process of calculating the air pressure value at the first target point is explained in detail below.

[0052] Please see Figure 9 At high voltage point P H and low pressure point P L Establish a first straight line between the two points, and determine the target point located on this first straight line as the first target point. Use an interpolation algorithm based on the low pressure value f. L Low pressure point P L Determine the air pressure value of the first target point located on the first straight line.

[0053] In this embodiment, other target points that do not fall on the first straight line are the second target points. The determination of the air pressure value of the second target point may include the following steps: draw a second straight line perpendicular to the first straight line through the second target point, determine the intersection of the first straight line and the second straight line, and determine the air pressure value of the second target point by combining the position of the intersection point on the first straight line and the air pressure value corresponding to the intersection point.

[0054] In one embodiment, determining the air pressure value of the second target point based on the high pressure value, low pressure value, intersection point, high pressure point, and low pressure point includes: The interpolation compensation coefficients are determined based on the distance between the intersection point and the low-pressure point, and the distance between the high-pressure point and the low-pressure point. The air pressure value of the second target point is determined based on the interpolation compensation coefficient, the high pressure value, and the low pressure value.

[0055] See Figure 10 High voltage point P H and low pressure point P L Establish the first straight line P between them. H P L Passing through the second target point P j Draw a line perpendicular to the first line P H P L The second straight line P j P i Determine the first straight line P H P L Second line P j P i intersection point P i The second target point P is discussed below. jThe calculation process for the air pressure value will be explained.

[0056] The first straight line P is calculated using the following formula (3). H P L The slope m1.

[0057] (3) Among them, (x) h , z h To set the high-voltage point P H The coordinates (x) l , z l (P is the low-pressure point) L The coordinates.

[0058] The second line P is calculated using the following formula. j P i The slope is m2.

[0059]

[0060] Assume the second target point P j coordinates (x) j , z j Find the intersection point P. i coordinates (x) i , z i The formulas for ) include the following formulas: (5) (6) (7)

[0061] In this embodiment, the intersection point P can be calculated according to formulas (5)-(8). i coordinates (x) i , z i According to the second target point P) j coordinates (x) j , z j ) and intersection point P i coordinates (x) i , z i The second target point P can be calculated. j to the first straight line P H P L The distance to the intersection point P i and low pressure point P L The distance between them is denoted as d. l , put high voltage point P H and low pressure point P LLet the distance between them be d, then the interpolation compensation coefficient is d. l / d, calculate the second target point P using the following formula. j The air pressure value.

[0062] (9) in, Indicates the second target point P j air pressure value, Indicates the high voltage value. This indicates a low pressure value.

[0063] See Figure 11 , Figure 11 This is a rendering of air pressure values. Darker colored points correspond to higher air pressure values, while lighter colored points correspond to lower air pressure values. The rendering color can be a gradient from red to white, where red represents high pressure, white represents low pressure, and the red-to-white gradient represents intermediate values ​​between high and low pressure.

[0064] It's understandable that to calculate the acceleration of a target point, you first need to calculate the air pressure at that point. The higher the air pressure, the greater the wind acceleration. Additionally, acceleration is also affected by the wind shadow zone and the rebound effect.

[0065] In this embodiment, obtaining the first acceleration includes: The resultant acceleration of each target point is determined based on the air pressure values ​​at each target point and the air pressure values ​​at adjacent points. Determine the rebound acceleration formed after the preset wind vector collides with each target point; The difference between the combined acceleration and the rebound acceleration is determined as the first acceleration.

[0066] In one embodiment, the resultant acceleration of each target point is determined based on the air pressure value of each target point and the air pressure values ​​of adjacent points, including: Based on air density, straight-line distance between each target point and its adjacent points, first distance of each target point and its adjacent points in the first direction, and second distance in the second direction, calculate the first pressure difference in the first direction and the second pressure difference in the second direction for each target point and its adjacent points. The combined acceleration of each target point is determined based on the first pressure difference in the first direction and the second pressure difference in the second direction between each target point and its adjacent points.

[0067] It's understandable that, since the terrain is 2.5D, we only need to calculate the air pressure along the X-axis and Z-axis. For example, the first direction is the X-axis, and the second direction is the Z-axis. Correspondingly, the air pressure at adjacent points... and points The first pressure difference in the first direction and the first pressure difference in the second direction are calculated using the following formula: (10) (11) Among them, F x This represents the air pressure difference along the X-axis. Point The X-axis coordinate value, Indicates low pressure point The X-axis coordinate value, F z This represents the air pressure difference along the Z-axis. Point Z-axis coordinate value, Point The Z-axis coordinate value, where D represents air density and d represents the adjacent point. and points The distance between them.

[0068] The resultant acceleration is determined using the following formula: (12) F represents the resultant acceleration. x F represents the air pressure difference along the X-axis. z This represents the air pressure difference along the Z-axis.

[0069] In this embodiment, the acceleration formed by the collision and rebound of the wind with the preset wind direction at the current point is also fully considered. The rebound acceleration can be calculated using the preset wind direction and the normal vector of the terrain point according to the reflection vector calculation method.

[0070] In one embodiment, determining the rebound acceleration formed after a preset wind vector collides with each target point includes: Determine the normal vector of each target point, and determine the rebound acceleration vector based on the preset wind vector and normal vector.

[0071] As an example, the following companies can be used to calculate the rebound acceleration vector.

[0072] (13) in, This represents the rebound acceleration vector. For the preset wind vector, Let be the normal vector of the target point.

[0073] See Figure 12 Step S140 includes: Step S141: Determine the wind shadow influence factor for each target point based on the wind shadow height and terrain elevation of each target point. Step S142: Determine the second acceleration of each target point based on the wind shadow influence factor and the first acceleration; Step S143: Determine the wind pressure value of each target point based on the second acceleration of each target point and the current wind speed.

[0074] In this embodiment, the wind shadow height of each target point is denoted as y. s Let y be the terrain elevation of each target point. The wind shadow influence factor for each target point was determined.

[0075] The second acceleration is determined according to the following formula; (14) in, Indicates the second acceleration. It is a constant. Indicates the resultant acceleration. Rebound acceleration vector + This indicates the first acceleration.

[0076] In one embodiment, step S143 includes: Based on the second acceleration and the current wind speed at each target point, determine the next wind speed at each target point; The product of the next wind speed at each target point and the preset conversion factor is used to determine the wind pressure value at each target point.

[0077] In this embodiment, the wind pressure value is calculated using the following formula: (15) in, Indicates wind speed. 0.6 represents wind pressure, and 0.6 represents a constant derived from the air density and average relative humidity at 20°C.

[0078] In this embodiment, the wind pressure at corresponding terrain points is calculated based on a two-dimensional topographic map. Users can obtain the wind pressure value at their current location on the topographic map. This wind pressure value can be used as an acceleration to drive the precise movement of various virtual models. For example, it provides a very realistic visual effect for particle movement, leaf swaying, etc. Compared with static wind vectors, this embodiment can bring a more vivid wind-driven effect.

[0079] It should be noted that after the various acceleration calculations for each terrain point are completed, they can be compared with the terrain data. Figure 1Block storage. Facilitates the retrieval of terrain acceleration data at any time to simulate various real-time effects, improving wind effect processing efficiency.

[0080] Step S150: Perform wind-driven processing on the virtual model based on the wind pressure value of each target point to simulate the wind-induced swaying effect of the virtual model.

[0081] In this embodiment, the effect of plants swaying on the terrain, the effect of hay being blown by the wind on the ground, and particle motion can be simulated, which will not be elaborated here.

[0082] In this embodiment, no realistic physical simulation is required. The processing based on a 2D topographic map results in low computational load, fast calculation speed, and reusable results. The impact on rendering speed is negligible. Developers are allowed to specify the locations and pressure values ​​of high and low pressure systems driving the wind, increasing controllability. The calculated wind pressure values ​​at corresponding terrain points more closely resemble real-world conditions. Based on these calculated wind pressure values, various virtual models are driven to move precisely, resulting in a more accurate and realistic wind-driven effect.

[0083] Example 2: Corresponding to Embodiment 2 of the above method, this application provides a wind pressure simulation device, such as... Figure 13 As shown, the device 130 includes: The first determining module 131 is used to determine a target wind direction area from a two-dimensional topographic map according to a preset wind direction, wherein the target wind direction area includes multiple target points; The first acquisition module 132 is used to acquire the mountain peaks of the target wind direction area based on the multiple target points, wherein the terrain elevation of the mountain peaks is greater than the terrain elevation of the two adjacent target points. The second determining module 133 is used to obtain the maximum wind shadow path that affects the wind speed of the mountain peak point based on the current wind speed and terrain elevation of the mountain peak point, and to determine the wind shadow height corresponding to each of the target points based on the maximum wind shadow path. The second acquisition module 134 is used to acquire the wind pressure value of each target point based on the wind shadow height, terrain elevation, first acceleration and current wind speed of each target point; The processing module 135 is used to perform wind-driven processing on the virtual model according to the wind pressure value of each target point, so as to simulate the wind-induced swaying effect of the virtual model.

[0084] In one embodiment, the second determining module 133 is further configured to, when the number of mountain peaks is at least two, determine the maximum wind shadow path of each mountain peak based on the current wind speed and terrain elevation of each mountain peak, and determine the initial wind shadow height corresponding to each target point based on the maximum wind shadow path of each mountain peak. The wind shadow height of each target point is determined based on the initial wind shadow height corresponding to each target point.

[0085] In one embodiment, the second determining module 133 is further configured to determine the maximum wind shadow height among the plurality of initial wind shadow heights of each target point as the wind shadow height of each target point.

[0086] In one embodiment, the first determining module 131 is further configured to discretize the two-dimensional topographic map to obtain a two-dimensional grid, the two-dimensional grid comprising multiple grids, each grid corresponding to a topographic point; The target wind direction area is determined based on the two-dimensional grid and the preset wind direction. From the multiple terrain points of the two-dimensional grid, determine multiple target points corresponding to the target wind direction area.

[0087] In one embodiment, the first determining module 131 is further configured to determine a starting grid from the two-dimensional grid according to the preset wind direction, and determine the target wind direction path along the preset wind direction according to the preset forward distance, with the vertex of the starting grid as the starting point; The target wind direction area is determined based on the target wind direction path.

[0088] In one embodiment, the first determining module 131 is further configured to determine candidate grids from the plurality of grids based on the target wind direction path; The terrain point corresponding to the candidate grid is determined as the target point.

[0089] In one embodiment, the device 130 further includes: The rendering module is used to determine the wind shadow area that affects the wind speed of the mountain peak point based on the maximum wind shadow path. Determine key rendering parameters based on the wind shadow height of the target point; The wind shadow area is rendered according to the key rendering parameters. The higher the wind shadow height of the target point, the larger the key rendering parameters.

[0090] In one embodiment, the second acquisition module 134 is further configured to determine the wind shadow influence factor of each target point based on the wind shadow height and terrain elevation of each target point; The second acceleration of each target point is determined based on the wind shadow influence factor of each target point and the first acceleration. The wind pressure value of each target point is determined based on the second acceleration of each target point and the current wind speed.

[0091] In one embodiment, the second acquisition module 134 is further configured to determine the next wind speed of each target point based on the second acceleration of each target point and the current wind speed; The product of the next wind speed at each target point and the preset conversion factor is determined as the wind pressure value at each target point.

[0092] In one embodiment, the device 130 further includes: The third acquisition module is used to acquire the air pressure value of each target point based on the high pressure information and low pressure information of the two-dimensional topographic map. The high pressure information includes high pressure points and high pressure values, and the low pressure information includes low pressure points and low pressure values. The fourth acquisition module is used to determine the composite acceleration of each target point based on the air pressure value of each target point and the air pressure value of adjacent points; Determine the rebound acceleration formed after the preset wind vector collides with each of the target points; The acceleration difference between the synthetic acceleration and the rebound acceleration is determined as the first acceleration.

[0093] In one embodiment, the fourth acquisition module is further configured to calculate, based on air density, the straight-line distance between each target point and its adjacent points, the first distance between each target point and its adjacent points in the first direction, and the second distance in the second direction, respectively, the first pressure difference in the first direction and the second pressure difference in the second direction between each target point and its adjacent points; The combined acceleration of each target point is determined based on the first pressure difference in the first direction and the second pressure difference in the second direction between each target point and its adjacent points.

[0094] In one embodiment, the fourth acquisition module is further configured to determine the normal vector of each of the target points, and determine the rebound acceleration vector based on the preset wind vector and the normal vector.

[0095] In one embodiment, the device 130 further includes: The third determining module is used to determine the preset wind direction based on the high-pressure point and the low-pressure point.

[0096] In one embodiment, the fourth acquisition module is further configured to determine a first straight line between the high-pressure point and the low-pressure point; The target point located on the first straight line is defined as the first target point; The air pressure value at the first target point is determined based on the high pressure value, the low pressure value, and the interpolation algorithm. Determine the intersection point of the second line and the first line, wherein the second line is a line that passes through the second target point and is perpendicular to the first line, and the second target point is a target point other than the first target point among the plurality of target points; The air pressure value of the second target point is determined based on the high pressure value, the low pressure value, the intersection point, the high pressure point, and the low pressure point.

[0097] In one embodiment, the fourth acquisition module is further configured to determine the interpolation compensation coefficient based on the distance between the intersection point and the low-pressure point, and the distance between the high-pressure point and the low-pressure point; The air pressure value of the second target point is determined based on the interpolation compensation coefficient, the high pressure value, and the low pressure value.

[0098] The methods have the same technical features, so they can solve the same technical problems and achieve the same technical effects, which will not be elaborated here.

[0099] This invention also provides an electronic device for running the above-described wind pressure simulation method; see [link to previous document]. Figure 14 The diagram shows the structure of an electronic device 140. The electronic device 140 includes a processor 141, a memory 142, and a bus 143. The memory 142 stores machine-readable instructions executable by the processor 141. When the electronic device 140 is running, the processor 141 communicates with the memory 142 via the bus 143. The processor 141 executes the machine-readable instructions to perform actions such as... Figure 1 The steps of the wind pressure simulation method are shown.

[0100] The memory 142 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface (wired or wireless), which can use the Internet, wide area network, local area network, metropolitan area network, etc. The bus 143 may be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc.

[0101] Processor 141 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 141 or by instructions in software form. Processor 141 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory 142, and processor 141 reads the information in memory 142 and, in conjunction with its hardware, completes the steps of the method described in the foregoing embodiments.

[0102] This invention also provides a computer-readable storage medium storing a computer program, which is executed by a processor as follows: Figure 1 The steps of the wind pressure simulation method are shown.

[0103] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the system and / or device described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0104] Furthermore, in the description of the embodiments of the present invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in the present invention based on the specific circumstances.

[0105] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, electronic device, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0106] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0107] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A wind pressure simulation method, characterized in that, The method includes: Based on the preset wind direction, a target wind direction area is determined from a two-dimensional topographic map, and the target wind direction area includes multiple target points; Based on multiple target points, obtain the mountain peaks in the target wind direction area, where the terrain elevation of the mountain peaks is greater than the terrain elevation of the two adjacent target points. Based on the current wind speed and terrain elevation of the mountain peak, obtain the maximum wind shadow path that affects the wind speed of the mountain peak, and determine the wind shadow height corresponding to each of the target points based on the maximum wind shadow path. The wind pressure value of each target point is obtained based on the wind shadow height, terrain elevation, first acceleration and current wind speed of each target point; The virtual model is subjected to wind-driven processing based on the wind pressure value of each target point to simulate the wind-induced swaying effect of the virtual model.

2. The method according to claim 1, characterized in that, The step of obtaining the maximum wind shadow path affecting the wind speed of the mountain peak based on the current wind speed and terrain elevation, and determining the wind shadow height corresponding to each of the target points based on the maximum wind shadow path, includes: When there are at least two mountain peaks, the maximum wind shadow path of each mountain peak is determined based on the current wind speed and terrain elevation of each mountain peak, and the initial wind shadow height corresponding to each target point is determined based on the maximum wind shadow path of each mountain peak. The wind shadow height of each target point is determined based on the initial wind shadow height corresponding to each target point.

3. The method according to claim 2, characterized in that, The step of determining the wind shadow height of each target point based on multiple initial wind shadow heights of each target point includes: The maximum wind shadow height among the multiple initial wind shadow heights of each target point is determined as the wind shadow height of each target point.

4. The method according to claim 1, characterized in that, The step of determining the target wind direction area from a two-dimensional topographic map based on a preset wind direction includes: The two-dimensional topographic map is discretized to obtain a two-dimensional grid, which includes multiple grids, each grid corresponding to a topographic point. The target wind direction area is determined based on the two-dimensional grid and the preset wind direction. From the multiple terrain points of the two-dimensional grid, determine multiple target points corresponding to the target wind direction area.

5. The method according to claim 4, characterized in that, Determining the target wind direction area based on the two-dimensional grid and the preset wind direction includes: According to the preset wind direction, a starting grid is determined from the two-dimensional grid. Taking the vertex of the starting grid as the starting point, the target wind direction path is determined along the preset wind direction and according to the preset forward distance. The target wind direction area is determined based on the target wind direction path.

6. The method according to claim 5, characterized in that, The step of determining multiple target points corresponding to the target wind direction region from multiple terrain points in the two-dimensional grid includes: Candidate grids are determined from the plurality of grids based on the target wind direction path; The terrain point corresponding to the candidate grid is determined as the target point.

7. The method according to claim 1, characterized in that, The method further includes: The wind shadow area affecting the wind speed at the mountain peak point is determined based on the maximum wind shadow path. Determine key rendering parameters based on the wind shadow height of the target point; The wind shadow area is rendered according to the key rendering parameters. The higher the wind shadow height of the target point, the larger the key rendering parameters.

8. The method according to claim 1, characterized in that, The step of obtaining the wind pressure value of each target point based on the wind shadow height, terrain elevation, first acceleration, and current wind speed includes: The wind shadow influence factor for each target point is determined based on the wind shadow height and terrain elevation of each target point. The second acceleration of each target point is determined based on the wind shadow influence factor of each target point and the first acceleration. The wind pressure value of each target point is determined based on the second acceleration of each target point and the current wind speed.

9. The method according to claim 8, characterized in that, The step of determining the wind pressure value of each target point based on the second acceleration and the current wind speed includes: Based on the second acceleration of each target point and the current wind speed, determine the next wind speed for each target point; The product of the next wind speed at each target point and the preset conversion factor is determined as the wind pressure value at each target point.

10. The method according to claim 1, characterized in that, The method further includes: Based on the high-pressure and low-pressure information of the two-dimensional topographic map, the air pressure value of each target point is obtained. The high-pressure information includes high-pressure points and high-pressure values, and the low-pressure information includes low-pressure points and low-pressure values. Obtaining the first acceleration includes: The resultant acceleration of each target point is determined based on the air pressure value of each target point and the air pressure value of adjacent points; Determine the rebound acceleration formed after the preset wind vector collides with each of the target points; The acceleration difference between the synthetic acceleration and the rebound acceleration is determined as the first acceleration.

11. The method according to claim 10, characterized in that, The step of determining the resultant acceleration of each target point based on the air pressure value of each target point and the air pressure values ​​of adjacent points includes: Based on the air density, the straight-line distance between each target point and its adjacent points, the first distance between each target point and its adjacent points in the first direction, and the second distance in the second direction, calculate the first pressure difference in the first direction and the second pressure difference in the second direction for each target point and its adjacent points. The combined acceleration of each target point is determined based on the first pressure difference in the first direction and the second pressure difference in the second direction between each target point and its adjacent points.

12. The method according to claim 10, characterized in that, The determination of the rebound acceleration formed after the preset wind vector collides with each of the target points includes: Determine the normal vector of each target point, and determine the rebound acceleration vector based on the preset wind vector and the normal vector.

13. The method according to claim 10, characterized in that, The method further includes: The preset wind direction is determined based on the high-pressure point and the low-pressure point.

14. The method according to claim 10, characterized in that, The step of obtaining the air pressure value of each target point based on the high-pressure and low-pressure information of the two-dimensional topographic map includes: Determine a first straight line between the high-pressure point and the low-pressure point; The target point located on the first straight line is defined as the first target point; The air pressure value at the first target point is determined based on the high pressure value, the low pressure value, and the interpolation algorithm. Determine the intersection point of the second line and the first line, wherein the second line is a line that passes through the second target point and is perpendicular to the first line, and the second target point is a target point other than the first target point among the plurality of target points; The air pressure value of the second target point is determined based on the high pressure value, the low pressure value, the intersection point, the high pressure point, and the low pressure point.

15. The method according to claim 14, characterized in that, The step of determining the air pressure value of the second target point based on the high pressure value, the low pressure value, the intersection point, the high pressure point, and the low pressure point includes: The interpolation compensation coefficient is determined based on the distance between the intersection point and the low-pressure point, and the distance between the high-pressure point and the low-pressure point; The air pressure value of the second target point is determined based on the interpolation compensation coefficient, the high pressure value, and the low pressure value.

16. A wind pressure simulation device, characterized in that, The device includes: The first determining module is used to determine the target wind direction area from a two-dimensional topographic map according to a preset wind direction, wherein the target wind direction area includes multiple target points; The first acquisition module is used to acquire the mountain peaks of the target wind direction area based on the multiple target points, wherein the terrain elevation of the mountain peaks is greater than the terrain elevation of the two adjacent target points. The second determining module is used to obtain the maximum wind shadow path that affects the wind speed of the mountain peak point based on the current wind speed and terrain elevation of the mountain peak point, and to determine the wind shadow height corresponding to each of the target points based on the maximum wind shadow path. The second acquisition module is used to acquire the wind pressure value of each target point based on the wind shadow height, terrain elevation, first acceleration and current wind speed of each target point; The processing module is used to perform wind-driven processing on the virtual model based on the wind pressure value of each target point, so as to simulate the wind-induced swaying effect of the virtual model.

17. An electronic device, characterized in that, It includes a memory and a processor, the memory storing a computer program that executes the wind pressure simulation method according to any one of claims 1 to 15 when the processor is running.

18. A computer-readable storage medium, characterized in that, It stores a computer program that, when run on a processor, executes the wind pressure simulation method according to any one of claims 1 to 15.