A transient three-dimensional wind field real-time rendering method and related device
By using four-channel 3D texture packaging, GPGPU architecture, and ring buffer technology, the real-time and multi-moment switching issues of 3D wind field rendering on the browser side were resolved, achieving realism and efficient rendering of transient 3D wind fields.
Patent Information
- Application Number
- CN202611403905.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-10
- Publication Date
- 2026-11-24
AI Technical Summary
Existing 3D wind field visualization technologies cannot achieve real-time rendering on the browser side, cannot balance smooth switching across multiple time points and frame rate adaptation, and cannot effectively express the transient characteristics of urban 3D wind fields.
The system uses a four-channel 3D texture to package multi-moment wind field data, combines a height lookup table to correct the vertical coordinates, utilizes the GPGPU architecture to generate instantaneous velocity, draws a fading trail through a circular buffer, and reuses the 3D rendering pipeline to adapt to 2D slices and terrain fitting, achieving frame rate adaptation.
It enables real-time rendering of transient 3D wind fields that fit the terrain on the browser, while taking into account smooth switching between multiple time points and device adaptation, thus improving the realism, interactivity and operating efficiency of 3D wind field visualization.
Smart Images

Figure CN123160749A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of three-dimensional wind field visualization technology, and particularly relates to a method and related apparatus for real-time rendering of transient three-dimensional wind fields. Background Technology
[0002] 3D wind field visualization is a crucial technical support for fields such as urban meteorology, low-altitude flight, UAV flight path planning, wind farm assessment, and emergency command. With the continuous upgrading of application demands, users not only need to grasp the overall wind field trend but also need to interactively observe the spatial structure and temporal evolution of the wind field at a specified area, altitude, and time on a browser-based system. Furthermore, the visualization must refresh in real time as the viewpoint zooms, drags over time, and the area is switched. In recent years, deep learning methods have been applied to the rapid solution of urban-scale wind fields, capable of outputting regional 3D wind field results in seconds, replacing the traditional, time-consuming computational fluid dynamics numerical simulation. The output of this type of deep learning model naturally includes two types of data: first, the average wind vector at each grid point, covering eastward, northward, and vertical components; and second, statistics related to turbulent fluctuations, such as turbulent kinetic energy, providing a new data foundation for higher-fidelity wind field visualization.
[0003] Existing wind field visualization technologies still have many obvious shortcomings in practical applications. First, two-dimensional wind field particle and streamline visualization solutions, represented by surface wind particle animation, mostly present the flow effect of GPU particles following the wind on a single horizontal plane. They only process wind vectors in a two-dimensional plane and cannot express the three-dimensional wind field structure between urban buildings that changes drastically with height. Moreover, the particles do not move in the vertical direction and are difficult to conform to the terrain undulations, making them unsuitable for scenarios that require three-dimensional spatial wind field information, such as low-altitude flight and building bypass. Second, systems that adopt a back-end rendering and front-end image retrieval architecture need to render the three-dimensional wind field as an image or video on the server side before pushing it to the front end. This results in high rendering latency and poor interactivity. Every time the user zooms in or out, changes the height, or drags the timeline, the server needs to re-render the image, making real-time interaction on the browser side impossible. At the same time, the computing power cost of server-side rendering increases linearly with the number of concurrent users. Furthermore, most existing 3D wind field visualizations only render the average wind field, presenting a smooth, steady-state laminar flow effect. This differs significantly from the visual experience of real atmospheric instantaneous wind fields, which are full of turbulent pulses and gusts. This makes it difficult to meet the observation requirements of transient wind fields in scenarios such as flight safety assessments and gust warnings. A few solutions that attempt to overlay pulse effects require calculating the instantaneous wind field frame by frame on the server before transmitting the data, resulting in a huge amount of data that cannot meet real-time requirements. In addition, 3D wind fields are volumetric data that varies with longitude, latitude, and altitude, resulting in a large overall data scale. Existing technologies either calculate point by point using the CPU or treat each altitude layer as a separate 2D texture and manually implement inter-layer interpolation in the shader. This generally suffers from low sampling efficiency and complex shader logic. In particular, urban wind fields have a non-uniform layering characteristic with dense near-surface altitude layers and sparse upper-air altitude layers. Directly using regular 3D texture sampling will result in mis-sampling of layers in the altitude direction, causing severe distortion of the wind field in the vertical direction. Finally, existing methods struggle to balance wind field switching across multiple moments with frame rate. When switching wind fields, the entire particle system often needs to be rebuilt, which can cause particle position jumps and screen flickering. At the same time, using high particle density to maintain consistent image quality can lead to a sharp drop in frame rate on low-end devices or in large-area scenes, making it impossible to adaptively balance image quality and smoothness on different performance devices.
[0004] Therefore, existing technologies cannot achieve a 3D wind field visualization solution that can run in real time on the browser, directly utilize the average wind field and pulsating statistical field output by deep learning, fuse and render a transient 3D wind field that fits the terrain on the client GPU, and smoothly transition between multiple moments and adapt to the frame rate. Summary of the Invention
[0005] This invention provides a method and related apparatus for real-time rendering of transient 3D wind fields. This method can run in real time on the browser, directly utilize the average wind field and pulsating statistical field output by deep learning, fuse and render a transient 3D wind field that fits the terrain on the client GPU, and achieve smooth transition and frame rate adaptation between multiple time points.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: A method for real-time rendering of transient 3D wind fields includes: Acquire regional 3D wind field data at multiple time points, package the regional 3D wind field data at each time point into four-channel 3D textures and upload them to the GPU; A height lookup table corresponding to the non-uniform vertical stratification of the wind field is constructed. The four-channel three-dimensional textures of two adjacent time points are selected according to the current time cursor and the interpolation coefficients are calculated. Based on the height lookup table, the texture depth coordinates of the physical height of the sampling point are corrected to obtain the corrected texture depth coordinates. The four-channel three-dimensional textures of the two time points are trilinearly sampled using the corrected texture depth coordinates, and the sampling results are linearly mixed according to the interpolation coefficients to obtain the average wind vector and pulsation amplitude corresponding to the sampling point. Based on the GPGPU architecture, the current position information of all particles is stored in the particle state texture. In each frame, the particle state is updated sequentially through the velocity calculation channel, the position update channel, and the particle rebirth channel to obtain the updated particle position texture. Among them, the velocity calculation channel combines the average wind vector obtained by sampling and the disturbance component modulated point by point by the pulsation amplitude to generate the instantaneous velocity of the particles. The advection step is completed by numerical integration based on the instantaneous velocity. A circular buffer is constructed based on a fixed number of historical particle position textures. The historical particle position textures are reused in each frame to store the historical position information of particles. Line segments with width are drawn according to the positions of adjacent historical particles to generate a particle trail trajectory that fades with the age of the trajectory. The 3D rendering pipeline that reuses particle trail trajectories performs 2D slice rendering adaptation, terrain-fitting rendering adaptation, and frame rate adaptive adjustment to output the final transient 3D wind field rendering.
[0007] Furthermore, the width of the four-channel 3D texture corresponds to the number of grids in the longitude direction of the wind field, the height corresponds to the number of grids in the latitude direction of the wind field, and the depth corresponds to the number of vertical height layers of the wind field. The four channels of each texel store the eastward wind component U, the northward wind component V, the vertical wind component W, and the pulsation statistics K, respectively. The texture adopts floating-point data format and trilinear interpolation filtering. The wind field data packaging process is completed in the background working thread, which arranges the wind field grids in the order of longitude-latitude-height layers into a continuous buffer, and transfers them to the main thread for zero-copy upload to the GPU in a transferable object manner. For invalid wind field values, the integer pixels are set to zero, and the corresponding channels are filled with zeros when the pulsation statistics are missing.
[0008] Furthermore, the height lookup table is a one-dimensional lookup table texture, with uniformly distributed sampling positions as indexes. Each index position stores the normalized texture depth coordinates obtained by reverse lookup of the corresponding uniform position through a non-uniform height layer. When performing texture depth coordinate correction, the physical height of the sampling point is first linearly normalized to obtain uniform coordinates. The corrected texture depth coordinates are obtained by querying the height lookup table. Then, trilinear sampling is performed on the four-channel three-dimensional texture.
[0009] Furthermore, each texel of the particle state texture corresponds to one particle, and the four channels store the particle's longitude, latitude, altitude above ground, and rebirth flag, respectively; the particle state is updated using a ping-pong method of alternating reading and writing of two sets of particle state textures. In the velocity calculation channel, the amplitude of the disturbance component is modulated point by point by the pulsation amplitude, and the direction of the disturbance is provided by the pre-generated three-dimensional random texture. The second-order Runge-Kutta numerical integration is used to perform advection stepping on the particle position along the instantaneous velocity, and the wind speed is converted from physical units to coordinate increments according to the local latitude and longitude arc length and then written into the velocity texture. In the position update channel, the coordinate increment of the velocity texture is accumulated to the current position of the particle to obtain the new position of the particle; In the particle rebirth channel, the particle is detected to see if it has crossed the area boundary or height range based on its new position, or a reset is triggered according to the adaptive rebirth probability. The reborn particles are randomly re-spread within the area and height range and a rebirth flag is set.
[0010] Furthermore, when constructing the circular buffer, each frame cyclically shifts the references of each historical particle position texture one position to the right, and reclaims the oldest historical particle position texture as the output target for the current frame. When drawing a line segment with width, the vertex shader extracts two historical positions of the particles from two adjacent historical particle position textures, converts them into three-dimensional coordinates, and then extrudes them in screen space along the line width direction to form a strip-shaped line segment; the line width and transparency of the line segment decrease with the age of the line segment, and when any endpoint of the line segment has a rebirth mark, the line segment is extruded outside the screen to break the trajectory. Instantaneous velocity is equal to the sum of the mean wind vector and the disturbance component.
[0011] Furthermore, the interpolation coefficients are calculated based on the ratio of the time cursor between two adjacent time points; when switching time points, only the four-channel 3D texture and interpolation coefficients referenced by the shader are updated; In real-time rendering mode, single-frame wind field data is used. Dual-frame interpolation is only enabled in history playback mode, and each layer uses the true interpolation coefficient after the second frame is ready.
[0012] Furthermore, during 2D slice rendering adaptation, the rebirth height of particles is narrowed to the vicinity of the target slice, the vertical motion amplitude of the particles is set to zero, and the fragment shader smoothly fades out particles that deviate from the slice according to distance, so as to enable the reuse of the 3D rendering pipeline to achieve horizontal slice wind field rendering. When adapting to terrain-fitting rendering, the ground elevation of the particle's location is obtained by sampling the digital elevation texture of the terrain in the vertex shader, and the particle's height above the ground is superimposed to obtain the particle's absolute height, so that the particle moves close to the ground with the undulation of the terrain. When the frame rate is adaptively adjusted, the actual rendering frame rate is periodically sampled and adjusted up and down between preset particle scale levels. When the frame rate is higher than the upper threshold, the level is increased to improve image quality, and when it is lower than the lower threshold, the level is decreased to ensure smoothness. A cooldown time is also set to avoid frequent fluctuations in the level.
[0013] A real-time rendering system for transient 3D wind fields includes: The acquisition module is used to acquire regional 3D wind field data at multiple time points, package the regional 3D wind field data at each time point into a four-channel 3D texture and upload it to the GPU. The module is used to construct a height lookup table for the corresponding non-uniform vertical stratification of the wind field. It selects the four-channel three-dimensional textures of two adjacent time points based on the current time cursor and calculates the interpolation coefficients. Based on the height lookup table, the physical height of the sampling point is corrected for the texture depth coordinates to obtain the corrected texture depth coordinates. The corrected texture depth coordinates are used to perform trilinear sampling on the four-channel three-dimensional textures of the two time points respectively, and the sampling results are linearly mixed according to the interpolation coefficients to obtain the average wind vector and fluctuation amplitude corresponding to the sampling point. The storage module is used to store the current position information of all particles in particle state texture based on the GPGPU architecture. Each frame, the particle state is updated sequentially through the velocity calculation channel, the position update channel and the particle rebirth channel to obtain the updated particle position texture. Among them, the velocity calculation channel combines the average wind vector obtained by sampling and the disturbance component modulated point by point by the pulsation amplitude to generate the instantaneous velocity of the particles. The advection step is completed by numerical integration based on the instantaneous velocity. The generation module is used to construct a ring-shaped buffer based on a fixed number of historical particle position textures. The historical particle position textures are reused in a loop to store the historical position information of particles in each frame. Line segments with width are drawn according to the positions of adjacent historical particles to generate a particle trail trajectory that fades with the trajectory age. The output module reuses the 3D rendering pipeline of particle trail images, performs 2D slice rendering adaptation, terrain fitting rendering adaptation, and frame rate adaptive adjustment, and outputs the final transient 3D wind field rendering image.
[0014] A transient 3D wind field real-time rendering device, comprising: Memory, used to store computer programs; A processor is used to implement the above-described real-time rendering method for transient three-dimensional wind fields when executing the computer program.
[0015] A computer-readable storage medium storing a computer program, which, when executed by a processor, is used to implement the above-described transient three-dimensional wind field real-time rendering method.
[0016] Compared with the prior art, the present invention has the following beneficial effects: This invention provides a real-time rendering method for transient 3D wind fields. It packages multi-moment wind field data using a four-channel 3D texture and uploads it to the GPU. A height lookup table is used to correct vertical coordinates, achieving accurate sampling under non-uniform layering. Utilizing a GPGPU architecture, instantaneous velocity is generated from the average wind vector and pulsation amplitude modulation perturbation. Particle advection stepping is achieved through numerical integration, and a fading trail trajectory is drawn by reusing historical positions through a circular buffer. Finally, the 3D rendering pipeline is reused to adapt 2D slicing, terrain fitting, and frame rate adaptation. The height lookup table maps physical height to the correct texture layer, avoiding vertical distortion, and interpolation between adjacent moments achieves smooth temporal transitions. Point-by-point modulation perturbation of pulsation amplitude makes particle motion appear as turbulent pulsations, restoring the transient wind field. The circular buffer avoids particle system reconstruction, eliminating position jumps and flickering. A fixed number of particles combined with frame rate adaptation dynamically balances image quality and smoothness. This method achieves real-time rendering on the browser side, balancing smooth switching between multiple moments and device adaptation, effectively improving the realism, interactivity, and operational efficiency of transient 3D wind field visualization. Attached Figure Description
[0017] Figure 1 This is a diagram illustrating the overall architecture of the real-time rendering method for transient three-dimensional wind fields provided in this embodiment of the invention. Figure 2 This is a schematic diagram of four-channel volumetric texture packaging and data layout provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of non-uniform vertical layered texture coordinate correction provided in an embodiment of the present invention; Figure 4 A flowchart of GPGPU three-channel particle advection and transient perturbation injection provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of particle trailing ring buffer and line segment rendering provided in an embodiment of the present invention; Figure 6 This is a schematic diagram of multi-time dual-frame interpolation and in-situ frame swapping provided in an embodiment of the present invention; Figure 7 This is a schematic diagram of two-dimensional slicing, terrain fitting, and frame rate adaptation provided in an embodiment of the present invention; Figure 8 A flowchart of a transient three-dimensional wind field real-time rendering method provided in an embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of a transient three-dimensional wind field real-time rendering system provided in an embodiment of the present invention. Detailed Implementation
[0018] To further understand the content of this invention, the invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the embodiments are merely illustrative and not limiting of the invention.
[0019] As described in the background section, existing 3D wind field visualization techniques have the following problems: First, 2D visualization cannot represent 3D wind field structure: Existing wind particle methods mostly involve advection in a single plane, with particles having no vertical movement and not conforming to the terrain, thus failing to represent urban 3D wind fields. Second, there are issues with reliance on backend rendering and poor interactivity: server-side image / video output methods suffer from high latency, poor interactivity, and computational power increases with concurrency. Third, the image lacks transient pulses and suffers from visual distortion: rendering only the average wind field to obtain a steady-state laminar flow effect, or calculating the instantaneous wind field frame by frame on the server, results in excessive data volume, making real-time processing impossible. Fourth, non-uniform layered volumetric data sampling distortion: urban wind field height layers are non-uniform (dense near the ground, sparse at high altitudes), and uniform sampling along the height direction of regular 3D textures will result in incorrect layer sampling. Fifth, flickering during multi-moment switching and non-adaptive frame rate: rebuilding the particle system at switching moments causes jump flickering; fixed particle density cannot balance image quality and smoothness.
[0020] To address the aforementioned issues, this embodiment provides a real-time rendering method for transient 3D wind fields. This method uses the average wind field and pulsating statistical field output by a deep learning model as input data. Through processes such as volume texture packaging, non-uniform layer correction, GPGPU particle advection and transient perturbation injection, particle trail rendering, multi-time interpolation, and frame rate adaptation, it fuses and renders a transient 3D wind field that fits the terrain in real time on the browser's GPU.
[0021] For example, such as Figure 8As shown, this embodiment provides a method for real-time rendering of transient three-dimensional wind fields, including: Acquire regional 3D wind field data at multiple time points, package the regional 3D wind field data at each time point into four-channel 3D textures and upload them to the GPU; A height lookup table corresponding to the non-uniform vertical stratification of the wind field is constructed. The four-channel three-dimensional textures of two adjacent time points are selected according to the current time cursor and the interpolation coefficients are calculated. Based on the height lookup table, the texture depth coordinates of the physical height of the sampling point are corrected to obtain the corrected texture depth coordinates. The four-channel three-dimensional textures of the two time points are trilinearly sampled using the corrected texture depth coordinates, and the sampling results are linearly mixed according to the interpolation coefficients to obtain the average wind vector and pulsation amplitude corresponding to the sampling point. Based on the GPGPU architecture, the current position information of all particles is stored in the particle state texture. In each frame, the particle state is updated sequentially through the velocity calculation channel, the position update channel, and the particle rebirth channel to obtain the updated particle position texture. Among them, the velocity calculation channel combines the average wind vector obtained by sampling and the disturbance component modulated point by point by the pulsation amplitude to generate the instantaneous velocity of the particles. The advection step is completed by numerical integration based on the instantaneous velocity. A circular buffer is constructed based on a fixed number of historical particle position textures. The historical particle position textures are reused in each frame to store the historical position information of particles. Line segments with width are drawn according to the positions of adjacent historical particles to generate a particle trail trajectory that fades with the age of the trajectory. The 3D rendering pipeline that reuses particle trail trajectories performs 2D slice rendering adaptation, terrain-fitting rendering adaptation, and frame rate adaptive adjustment to output the final transient 3D wind field rendering.
[0022] The transient 3D wind field real-time rendering method provided in this embodiment will be further explained below with reference to the accompanying drawings: like Figure 1 As shown, this embodiment provides a real-time rendering method for transient 3D wind fields, including: deep learning wind field data access and four-channel volumetric texture packaging process, non-uniform vertical layering texture coordinate correction process, GPGPU particle advection and transient perturbation injection rendering process, particle tail ring buffer and line segment rendering process, multi-time wind field dual-frame interpolation and in-situ frame swapping rendering process and 2D slice rendering, terrain fitting and frame rate adaptive rendering process. In this embodiment, the real-time rendering method for transient 3D wind fields is described in terms of data stream input and output, as follows: First, the process of deep learning wind field data access and four-channel volumetric texture packaging: This step is used to obtain the regional 3D wind field data output by the deep learning model, package it into a four-channel 3D texture and upload it to the GPU, so that subsequent rendering can obtain the average wind vector and pulsation amplitude information in a single texture sampling.
[0023] Functions and roles: This invention acquires regional three-dimensional wind field data output by a deep learning model, packages it into a four-channel three-dimensional texture, and uploads it to the GPU, so that subsequent rendering can simultaneously obtain the average wind vector and pulsation amplitude information in a single texture sampling.
[0024] enter: The regional 3D wind field output by the deep learning model includes the eastward wind component U, the northward wind component V, the vertical wind component W, and the pulsation statistics K (e.g., turbulent kinetic energy) for each grid point; the longitude dimension, latitude dimension, and number of height layers of the wind field grid.
[0025] Processing procedure: This step packages the aforementioned 3D wind field data into a single 3D texture (volume texture). The texture width corresponds to the number of grid cells in the longitude direction, the height corresponds to the number of grid cells in the latitude direction, and the depth corresponds to the number of vertical height layers. Each texel uses four channels (RGBA), with three channels storing the eastward, northward, and vertical components of the mean wind, respectively, and the fourth channel storing the pulsation statistics K. That is: texels(x, y, lev).RGBA = (U, V, W, K) In one implementation, the texture uses floating-point data format (32 bits per channel) and trilinear interpolation filtering, allowing the graphics hardware to automatically perform interpolation in the longitude, latitude, and altitude directions during rendering sampling, eliminating the need for manual inter-layer interpolation in the shader. The packaging process can be completed in a separate background worker thread (Web Worker), arranging the wind field mesh in a staggered "longitude-latitude-altitude layer" order as a continuous buffer (U0, V0, W0, K0, U1, V1, W1, K1, …), and transferring it to the main thread for upload using a transferable object with zero copy, avoiding packaging from occupying the main rendering thread. Invalid values (missing measurements, abnormally large values) are zeroed out for integer pixels; missing pulsation statistics fill the corresponding channels with zeros.
[0026] The key to this step is to combine the average wind field and the pulsation statistics into the same four-channel volumetric texture, so that the subsequent shader only needs to perform a hardware trilinear interpolation sampling once for each spatial point to obtain the average wind vector and pulsation amplitude at that point.
[0027] Output: A four-channel 3D wind field texture has been uploaded to the GPU for sampling in subsequent particle advection, perturbation injection, and other rendering stages. The specific packaging and data layout of the four-channel volumetric texture are as follows: Figure 2 As shown.
[0028] Second, the process of correcting texture coordinates for non-uniform vertical layering: like Figure 3 As shown, the vertical height layers of a city's 3D wind field are typically non-uniformly distributed (dense near the ground and sparse at higher altitudes). This step establishes a lookup table for physical height to texture depth coordinates, allowing the shader to correct the physical height to the correct texture layer coordinates before sampling the volume texture, thus eliminating vertical sampling distortion.
[0029] enter: The actual height sequence of the vertical height layer of the wind field (such as non-uniform height values such as 0, 3, 9, 21, ..., 500 meters); the physical height of the sampling point.
[0030] Processing procedure: Since the depth coordinates of the volume texture are uniformly distributed (0 to 1 linearly corresponds to the 0th layer to the last layer), while the actual height layers are not uniform, if the "physical height is linearly normalized according to the maximum height" is directly used as the depth coordinate for sampling, a certain physical height will be sampled to the wrong height layer (for example, 100 meters will be sampled to the actual layer of about 21 meters).
[0031] Therefore, this embodiment pre-constructs a one-dimensional lookup table texture (such as a 256×1 single-channel floating-point texture). The lookup table uses uniformly distributed sampling positions as indices, and each index position stores the correct texture depth coordinates, normalized to [0,1], corresponding to the uniform position after reverse lookup through a non-uniform height layer. During rendering, the shader first linearly normalizes the physical height of the point to be sampled to obtain a uniform coordinate, uses this coordinate to look up the lookup table to obtain the corrected texture depth coordinates, and then uses these corrected coordinates to perform trilinear sampling on the four-channel volumetric texture: altFrac = Physical height linearly normalized to [0,1] texcoord.z = lookup table(altFrac) / / Non-uniform → Uniform correction Wind field value RGBA = trilinear sampling (volume texture, (lon, lat, texcoord.z)) The lookup table only needs to be built once during the entire rendering process and remains resident in video memory.
[0032] Output: The volume texture sampling results after height correction are the physically correct average wind vector and pulsation amplitude at the sampling point.
[0033] Third, the GPGPU particle advection and transient perturbation injection rendering process: like Figure 4As shown, this embodiment drives a large number of particles to move with the wind in a three-dimensional wind field using general-purpose computing (GPGPU) on the client GPU. At each step, transient perturbations modulated point by point by the pulsating statistical field are superimposed on the particles, so that the particle trajectory presents a turbulent appearance that jitters with time while flowing with the average wind.
[0034] enter: Four-channel volumetric texture, height lookup table; particle state texture (stores the current position of all particles); frame time.
[0035] Processing procedure: This step stores the state of all particles in a floating-point texture, with one texel corresponding to one particle. Its four channels store the particle's longitude, latitude, altitude above ground, and respawn flag. In each rendering frame, the particle state is updated through several general-purpose computational channels (implemented using a full-screen quadrilateral fragment shader, employing a ping-pong method of alternating read and write of two state textures). In one implementation, this is divided into three channels: (1) Velocity Calculation Channel. For each particle, sample the four-channel volumetric texture at its current position (after height correction of the texture coordinates for non-uniform vertical layering) to obtain the average wind vector and fluctuation amplitude at that point; then, fuse the average wind and transient disturbance into the instantaneous velocity of the particle using the following formula: Instantaneous velocity = mean wind vector + disturbance component The amplitude of the disturbance component is modulated point-by-point by the pulsation statistics obtained from sampling (the larger the pulsation statistics, the stronger the disturbance; the disturbance approaches zero in calm winds). The direction of the disturbance is provided by a pre-generated three-dimensional random texture and evolves with the transport of the average wind and the passage of time. After obtaining the instantaneous velocity, a second-order numerical integral (such as a second-order Runge-Kutta) is used to perform advection stepping on the particle position along the instantaneous velocity, and the wind speed is converted from physical units (meters / second) to coordinate increments according to the local latitude and longitude arc length before being written into the velocity texture.
[0036] (2) Position update channel. The displacement increment of the velocity texture is added to the current position of the particle to obtain the new position.
[0037] (3) Particle rebirth channel. Detect whether particles have exceeded the area boundary or height range, or trigger a reset according to a certain rebirth probability (in one implementation, the rebirth probability is adaptive with particle speed, the lower the speed, the easier it is to rebirth, to avoid particles from clustering in weak wind areas); the reborn particles are randomly re-spread within the area and height range, and a rebirth flag is set so that the trajectory is broken during trail rendering.
[0038] The three channels are executed sequentially frame by frame, actively requesting redrawing, thereby realizing continuous advection animation of particles in a three-dimensional transient wind field.
[0039] Output: Updated particle position textures, and particle velocities for trailing rendering (used for ribbon mapping).
[0040] Fourth, the particle trailing ring buffer and line segment rendering process is as follows: like Figure 5 As shown, in order to present the motion trajectory (tail) of particles without generating additional memory copy overhead, this embodiment uses a set of historical position textures to form a ring buffer, and connects adjacent historical positions into line segments with width to form a tail that fades with the age of the trajectory.
[0041] enter: Particle position textures output per frame; a fixed number of historical position textures (e.g., 8).
[0042] Processing procedure: This invention maintains a fixed number (e.g., 8) of historical particle position textures to form a circular buffer. In each frame, the references of each historical texture are cyclically shifted one position to the right (the latest frame first, the oldest frame last), and the oldest texture is recycled as the output target for the calculation of this frame, thereby realizing the rolling preservation of historical trajectories without copying textures frame by frame.
[0043] During rendering, for each particle, several (e.g., 7) wide line segments are drawn along its historical location texture. The vertex shader extracts the two historical locations of the particle from two adjacent historical textures, converts them from latitude, longitude, and altitude to geocentric and geofixed three-dimensional coordinates (fitting the Earth's ellipsoid), and then extrudes them in screen space along the line width direction to form a strip-shaped line segment. The line width and transparency decrease with the age of the line segment, making the trail naturally thin and fade from beginning to end. When either end of a segment has a rebirth marker, the segment is extruded off-screen to break the trajectory and prevent reborn particles from pulling long lines across regions. The fragment shader shades the color band texture according to the particle velocity and highlights the head of the trail, using transparent blending and turning off depth writing to achieve a continuous flowing visual effect.
[0044] Output: The image shows the trailing trajectory of particles on the screen.
[0045] Fifth, the process of multi-moment wind field two-frame interpolation and in-situ frame swapping rendering: like Figure 6 As shown, the wind field changes continuously over time and needs to support historical playback. In this embodiment, the volume texture is interpolated within the shader for transition between two adjacent time points, and only the texture reference is replaced without rebuilding the particle system when switching time points, achieving a smooth temporal transition without jumps or flickering.
[0046] enter: Four-channel volumetric textures at two adjacent time points (denoted as frame A and frame B); temporal cursor.
[0047] Processing procedure: This invention provides a rendering layer that simultaneously holds volume texture frames A and B from two adjacent time points, along with an interpolation coefficient between 0 and 1. When sampling the wind field, the shader linearly mixes the sampling results of frames A and B using the interpolation coefficient. Wind field value = Mixed(sample(frame A), sample(frame B), interpolation coefficients) The time cursor can come from explicit playback / drag or from a real-time wall clock. It selects two adjacent frames that exactly encompass the cursor's time and calculates interpolation coefficients based on the cursor's position between the two frames (ease can be added). When switching times, only the volume texture frames referenced by the shader and the interpolation coefficients are updated; the particle system is not rebuilt or reset, resulting in continuous particle positions and no screen jumps.
[0048] In one implementation, to avoid the wind direction from splitting instantaneously due to the inconsistent second-frame readiness times of different layers (such as particle layers and cloud layers) at a certain moment, a single frame is forcibly used in real-time mode (the second frame is equal to the first frame and the interpolation coefficient is 0), and double-frame interpolation is only enabled during explicit playback; and each layer is assigned a real interpolation coefficient only after its second frame is indeed ready, otherwise it is locked to 0.
[0049] Output: The wind field rendering provides a smooth transition between multiple moments without any jumps or flickering, and supports real-time tracking and historical playback.
[0050] Sixth, the process of 2D tile rendering, terrain fitting, and frame rate adaptive rendering: like Figure 7 As shown, this step provides three enhancements related to rendering and performance: 2D slicing mode reuses the same 3D pipeline to observe the wind field on a plane at a specified height; terrain fitting makes particles undulate with the ground; and frame rate adaptation dynamically adjusts particle size based on the measured frame rate to balance image quality and smoothness on different devices.
[0051] enter: Volume textures, particle systems, and rendering pipelines; terrain digital elevation data; specified slice heights; measured frame rates.
[0052] Processing procedure: (1) Two-dimensional slice rendering. To observe the wind field on a certain horizontal plane, this embodiment does not build a separate pipeline, but reuses the three-dimensional particle pipeline: only the "rebirth height band" of the particles is narrowed to a very narrow range near the target cut surface (such as ±6 meters), and the vertical motion amplitude of the particles is set to zero, so that the particles move in a single plane; at the same time, the height mapping range of the volume texture remains unchanged, that is, the wind field is still sampled according to the corresponding height layer. The fragment shader smoothly fades out particles that deviate from the cut surface according to the distance (those that exceed the fade-out range are discarded), resulting in a clear wind field slice that fits the specified height. The slice mode can use a higher particle density level than the three-dimensional mode.
[0053] (2) Terrain Fitting. The absolute height of the particle is obtained by adding the ground elevation and the height above the ground. During rendering, the digital elevation texture of the terrain is sampled in the vertex shader (each texel stores the corresponding ground elevation) to obtain the ground elevation of the particle's location, and then the height above the ground of the particle is superimposed, so that the particle moves close to the ground with the terrain undulations, rather than floating on a uniform horizontal plane.
[0054] (3) Adaptive Frame Rate. In this embodiment, the actual rendering frame rate is periodically sampled, and the particle size (reflected in the side length of the particle state texture, which in turn determines the total number of particles) is adjusted between several preset levels: when the frame rate is higher than the upper threshold, the level is increased to improve image quality, and when it is lower than the lower threshold, the level is decreased to restore smoothness. A cooling time is set to avoid frequent fluctuations in the level. Thus, image quality and frame rate can be adaptively balanced on both high-end and low-end devices, as well as on both large and small areas.
[0055] Output: The rendering features include 2D wind field slices at specified heights, 3D particle effects that fit the terrain's undulations, and a stable frame rate that adapts to device performance.
[0056] In summary, the core technical points of the transient 3D wind field real-time rendering method provided in this embodiment are as follows: First, a wind field data organization and sampling mechanism is provided that packages the average wind field and fluctuation statistics into a single four-channel 3D texture. This mechanism places the three average wind components (eastward, northward, and vertical) and fluctuation statistics output by deep learning into the four channels of the 3D texture texel, so that the average wind vector and fluctuation amplitude can be obtained simultaneously for any spatial point with only one hardware trilinear interpolation sampling during rendering.
[0057] Second, a texture coordinate correction mechanism for non-uniform vertically stratified wind fields is provided. This mechanism maps physical height to the correct depth coordinates in the volume texture through a pre-built height lookup table before sampling, eliminating sampling distortion caused by non-uniform stratification with denser near-ground and sparser upper-air layers in the vertical direction.
[0058] Third, a rendering mechanism is provided that integrates mean wind with transient perturbations modulated point-by-point by pulsation statistics on the client GPU in real time and drives particle advection. This mechanism uses a general-purpose multi-channel computing approach to superimpose perturbation components modulated point-by-point by pulsation statistics and whose direction is taken from a pre-generated 3D random texture onto the mean wind obtained by sampling particles at each step, to obtain instantaneous velocity and numerically integrate the advection. The transient 3D wind field is then presented in real time on the browser, and the server does not participate in frame-by-frame calculations.
[0059] Fourth, a zero-copy rendering mechanism for particle trails based on a circular buffer of historical position textures is provided. This mechanism uses a fixed number of historical position textures to cyclically reuse and save the trajectory, recycles the oldest texture for the current frame output, and connects adjacent historical positions into a wide line segment that fades with age and has a rebirth marker.
[0060] Fifth, a multi-moment smooth transition rendering mechanism is provided, which interpolates between adjacent volume texture shaders and does not reconstruct particles when switching frames. This mechanism performs linear interpolation between volume textures at adjacent moments using a time cursor. When switching moments, it only replaces texture references and interpolation coefficients without reconstructing or resetting particles, thus achieving seamless temporal transitions and historical playback.
[0061] Sixth, a mechanism for reusing 3D pipelines for 2D slice rendering, terrain fitting, and frame rate adaptation is provided. 2D slicing reuses 3D pipelines by narrowing the particle regeneration height band and setting zero vertical motion while maintaining the height mapping; terrain fitting is achieved by sampling terrain digital elevation and superimposing the height above the ground; frame rate adaptation is achieved by adjusting particle size in stages based on measured frame rate and setting a cooldown time.
[0062] As can be seen, the aforementioned core technologies together constitute the main technical means of the real-time rendering method for transient 3D wind fields. It should be noted that the average wind field and pulsation statistical field, which serve as rendering inputs, are directly provided by the deep learning model. The generation method within the model and the specific synthesis algorithm for pulsation perturbations are not within the scope of this invention. Specific engineering parameters such as texture resolution, particle count, number of historical texture lines, time step, perturbation scale, and frame rate can be used as configuration parameters in different implementation methods.
[0063] For example, such as Figure 9 As shown, this embodiment also provides a real-time rendering system for transient three-dimensional wind fields, including: The acquisition module is used to acquire regional 3D wind field data at multiple time points, package the regional 3D wind field data at each time point into a four-channel 3D texture and upload it to the GPU. The module is used to construct a height lookup table for the corresponding non-uniform vertical stratification of the wind field. It selects the four-channel three-dimensional textures of two adjacent time points based on the current time cursor and calculates the interpolation coefficients. Based on the height lookup table, the physical height of the sampling point is corrected for the texture depth coordinates to obtain the corrected texture depth coordinates. The corrected texture depth coordinates are used to perform trilinear sampling on the four-channel three-dimensional textures of the two time points respectively, and the sampling results are linearly mixed according to the interpolation coefficients to obtain the average wind vector and fluctuation amplitude corresponding to the sampling point. The storage module is used to store the current position information of all particles in particle state texture based on the GPGPU architecture. Each frame, the particle state is updated sequentially through the velocity calculation channel, the position update channel and the particle rebirth channel to obtain the updated particle position texture. Among them, the velocity calculation channel combines the average wind vector obtained by sampling and the disturbance component modulated point by point by the pulsation amplitude to generate the instantaneous velocity of the particles. The advection step is completed by numerical integration based on the instantaneous velocity. The generation module is used to construct a ring-shaped buffer based on a fixed number of historical particle position textures. The historical particle position textures are reused in a loop to store the historical position information of particles in each frame. Line segments with width are drawn according to the positions of adjacent historical particles to generate a particle trail trajectory that fades with the trajectory age. The output module reuses the 3D rendering pipeline of particle trail images, performs 2D slice rendering adaptation, terrain fitting rendering adaptation, and frame rate adaptive adjustment, and outputs the final transient 3D wind field rendering image.
[0064] The present invention also provides a transient three-dimensional wind field real-time rendering device, comprising: a memory for storing a computer program; and a processor for executing the computer program to implement the transient three-dimensional wind field real-time rendering method.
[0065] The present invention also provides a computer program product, including a computer program / instruction, which, when executed by a processor, implements the steps of the transient three-dimensional wind field real-time rendering method.
[0066] When the processor executes the computer program, it implements the above-mentioned steps for real-time rendering of transient three-dimensional wind fields, such as: acquiring three-dimensional wind field data of regions at multiple time moments, packaging the three-dimensional wind field data of regions at each time moment into four-channel three-dimensional textures and uploading them to the GPU; A height lookup table corresponding to the non-uniform vertical stratification of the wind field is constructed. The four-channel three-dimensional textures of two adjacent time points are selected according to the current time cursor and the interpolation coefficients are calculated. Based on the height lookup table, the texture depth coordinates of the physical height of the sampling point are corrected to obtain the corrected texture depth coordinates. The four-channel three-dimensional textures of the two time points are trilinearly sampled using the corrected texture depth coordinates, and the sampling results are linearly mixed according to the interpolation coefficients to obtain the average wind vector and pulsation amplitude corresponding to the sampling point. Based on the GPGPU architecture, the current position information of all particles is stored in the particle state texture. In each frame, the particle state is updated sequentially through the velocity calculation channel, the position update channel, and the particle rebirth channel to obtain the updated particle position texture. Among them, the velocity calculation channel combines the average wind vector obtained by sampling and the disturbance component modulated point by point by the pulsation amplitude to generate the instantaneous velocity of the particles. The advection step is completed by numerical integration based on the instantaneous velocity. A circular buffer is constructed based on a fixed number of historical particle position textures. The historical particle position textures are reused in each frame to store the historical position information of particles. Line segments with width are drawn according to the positions of adjacent historical particles to generate a particle trail trajectory that fades with the age of the trajectory. The 3D rendering pipeline that reuses particle trail trajectories performs 2D slice rendering adaptation, terrain-fitting rendering adaptation, and frame rate adaptive adjustment to output the final transient 3D wind field rendering.
[0067] For example, the computer program can be divided into one or more modules / units, which are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units can be a series of computer program instruction segments capable of performing preset functions, the instruction segments describing the execution process of the computer program in the transient three-dimensional wind field real-time rendering device. For example, the computer program can be divided into an acquisition module, a construction module, a storage module, a generation module, and an output module; the specific functions are as follows: the acquisition module is used to acquire multi-time-phase regional three-dimensional wind field data, package the regional three-dimensional wind field data at each time-phase as four-channel three-dimensional textures and upload them to the GPU; the construction module is used to construct a height lookup table corresponding to the non-uniform vertical layering of the wind field, select four-channel three-dimensional textures at two adjacent time-phases according to the current time cursor and calculate interpolation coefficients; based on the height lookup table, the texture depth coordinates of the physical height of the sampling point are corrected to obtain the corrected texture depth coordinates; trilinear sampling is performed on the four-channel three-dimensional textures at the two time-phases respectively using the corrected texture depth coordinates, and the sampling results are linearly mixed according to the interpolation coefficients to obtain the average wind vector and pulsation amplitude corresponding to the sampling point; the storage module is used to store data based on the GPGPU architecture using particles The state texture stores the current position information of all particles. Each frame, the particle state is updated sequentially through the velocity calculation channel, position update channel, and particle rebirth channel to obtain the updated particle position texture. Among them, the velocity calculation channel combines the average wind vector obtained by sampling and the disturbance component modulated point by point by the pulsation amplitude to generate the instantaneous velocity of the particles. The advection step is completed by numerical integration based on the instantaneous velocity. The generation module is used to build a ring buffer based on a fixed number of historical particle position textures. Each frame, the historical particle position texture is reused to store the historical position information of particles. Line segments with width are drawn according to the positions of adjacent historical particles to generate a particle trail trajectory that fades with the trajectory age. The output module is used to reuse the 3D rendering pipeline of the particle trail trajectory image to perform 2D slice rendering adaptation, terrain fitting rendering adaptation, and frame rate adaptive adjustment respectively, and output the final transient 3D wind field rendering image.
[0068] The transient 3D wind field real-time rendering device can be a desktop computer, laptop, handheld computer, or cloud server, etc. The transient 3D wind field real-time rendering device may include, but is not limited to, a processor and memory. Those skilled in the art will understand that the above are examples of transient 3D wind field real-time rendering devices and do not constitute a limitation on such devices. It may include more components than described above, or combine certain components, or use different components. For example, the transient 3D wind field real-time rendering device may also include input / output devices, network access devices, buses, etc.
[0069] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, or any conventional processor. The processor is the control center for the transient 3D wind field real-time rendering, connecting various parts of the transient 3D wind field real-time rendering equipment via various interfaces and lines.
[0070] The memory can be used to store the computer program and / or modules. The processor realizes various functions of the transient three-dimensional wind field real-time rendering device by running or executing the computer program and / or modules stored in the memory and calling the data stored in the memory.
[0071] The memory may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function (such as sound playback, image playback, etc.). The data storage area may store data created based on the use of the mobile phone (such as audio data, phonebook, etc.). Furthermore, the memory may include high-speed random access memory and non-volatile memory, such as hard disks, RAM, plug-in hard disks, smart media cards (SMC), secure digital cards (SD cards), flash cards, at least one disk storage device, flash memory device, or other volatile solid-state storage devices.
[0072] The present invention also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the transient three-dimensional wind field real-time rendering method.
[0073] If the modules / units integrated in the transient three-dimensional wind field real-time rendering system are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
[0074] Based on this understanding, the present invention can implement all or part of the processes in the above-described transient three-dimensional wind field real-time rendering method, or it can be accomplished by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the above-described transient three-dimensional wind field real-time rendering method. The computer program includes computer program code, which can be in the form of source code, object code, executable file, or a preset intermediate form, etc.
[0075] The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0076] It should be noted that the content contained in the computer-readable storage medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable storage medium does not include electrical carrier signals and telecommunication signals.
[0077] Compared with existing three-dimensional wind field visualization methods, this invention provides a real-time rendering method and related apparatus for transient three-dimensional wind fields, which has the following advantages: First, it's true 3D and fits the terrain perfectly.
[0078] The particles flow together with the three-dimensional wind field in the three directions of longitude, latitude, and altitude, and conform to the terrain digital elevation according to the undulation of the ground. It can express the real three-dimensional wind field structure of urban buildings flowing around them and changing dramatically with altitude, rather than two-dimensional planar flow.
[0079] Secondly, the client-side is real-time, the interaction is smooth, and the server-side has zero rendering burden.
[0080] Wind field data is transmitted once, fused and rendered by the client GPU, and the interaction of viewpoint, height, and time is refreshed locally in real time; the server does not participate in frame-by-frame rendering, and the computing cost does not increase with the number of concurrent visualization users.
[0081] Third, the transient visual experience is realistic, and the data transmission volume is small.
[0082] By directly utilizing the pulsating statistical field output by deep learning, transient wind fields can be synthesized in real time within the shader. This eliminates the need for the server to transmit the transient wind field frame by frame, thus presenting a detailed transient wind field image that jitters over time.
[0083] Fourth, volume data sampling is efficient and distortion-free.
[0084] The average wind and pulsation amplitude can be obtained simultaneously with a single hardware trilinear interpolation of the four-channel volumetric texture; combined with a height lookup table for non-uniform layering, vertical sampling distortion is eliminated, resulting in simple shader logic and low sampling overhead.
[0085] Fifth, smooth timing transitions and adaptive frame rate.
[0086] Interpolation within the volume texture shader at adjacent time intervals and no particle reconstruction during frame changes result in no jumps or flickering during switching and playback. The particle size adapts to the measured frame rate, ensuring stable and smooth operation on both high-end and low-end devices and in various regions.
[0087] The above embodiments are merely one of the implementation methods for achieving the technical solution of the present invention. The scope of protection claimed by the present invention is not limited to this embodiment, but also includes any variations, substitutions and other implementation methods that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention.
[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the specific implementation of the present invention. Any modifications or equivalent substitutions that do not depart from the spirit and scope of the present invention should be covered within the protection scope of the present invention.
Claims
1. A method for real-time rendering of transient three-dimensional wind fields, characterized in that, include: Acquire regional 3D wind field data at multiple time points, package the regional 3D wind field data at each time point into four-channel 3D textures and upload them to the GPU; A height lookup table corresponding to the non-uniform vertical stratification of the wind field is constructed. The four-channel three-dimensional textures of two adjacent time points are selected according to the current time cursor and the interpolation coefficients are calculated. Based on the height lookup table, the texture depth coordinates of the physical height of the sampling point are corrected to obtain the corrected texture depth coordinates. The four-channel three-dimensional textures of the two time points are trilinearly sampled using the corrected texture depth coordinates, and the sampling results are linearly mixed according to the interpolation coefficients to obtain the average wind vector and pulsation amplitude corresponding to the sampling point. Based on the GPGPU architecture, the current position information of all particles is stored in the particle state texture. In each frame, the particle state is updated sequentially through the velocity calculation channel, the position update channel, and the particle rebirth channel to obtain the updated particle position texture. Among them, the velocity calculation channel combines the average wind vector obtained by sampling and the disturbance component modulated point by point by the pulsation amplitude to generate the instantaneous velocity of the particles. The advection step is completed by numerical integration based on the instantaneous velocity. A circular buffer is constructed based on a fixed number of historical particle position textures. The historical particle position textures are reused in each frame to store the historical position information of particles. Line segments with width are drawn according to the positions of adjacent historical particles to generate a particle trail trajectory that fades with the age of the trajectory. The 3D rendering pipeline that reuses particle trail trajectories performs 2D slice rendering adaptation, terrain-fitting rendering adaptation, and frame rate adaptive adjustment to output the final transient 3D wind field rendering.
2. The transient three-dimensional wind field real-time rendering method according to claim 1, characterized in that, The width of the four-channel 3D texture corresponds to the number of grid cells in the longitude direction of the wind field, the height corresponds to the number of grid cells in the latitude direction of the wind field, and the depth corresponds to the number of vertical height layers of the wind field. The four channels of each texel store the eastward wind component U, the northward wind component V, the vertical wind component W, and the pulsation statistics K, respectively. The texture uses floating-point data format and trilinear interpolation filtering. The wind field data packaging process is completed in the background working thread, which arranges the wind field grids in the order of longitude-latitude-height layers into a continuous buffer, and transfers them to the main thread for zero-copy upload to the GPU in a transferable object manner. For invalid wind field values, the integer pixels are set to zero, and the corresponding channels are filled with zeros when the pulsation statistics are missing.
3. The transient three-dimensional wind field real-time rendering method according to claim 1, characterized in that, The height lookup table is a one-dimensional lookup table texture, with uniformly distributed sampling positions as indexes. Each index position stores the normalized texture depth coordinates obtained by reverse lookup of the corresponding uniform position through a non-uniform height layer. When performing texture depth coordinate correction, the physical height of the sampling point is first linearly normalized to obtain uniform coordinates. The corrected texture depth coordinates are obtained by querying the height lookup table. Then, trilinear sampling is performed on the four-channel three-dimensional texture.
4. The transient three-dimensional wind field real-time rendering method according to claim 1, characterized in that, Each texel of the particle state texture corresponds to one particle, and the four channels store the particle's longitude, latitude, altitude above ground, and rebirth flag, respectively; the particle state is updated using a ping-pong method of alternating reading and writing of two sets of particle state textures. In the velocity calculation channel, the amplitude of the disturbance component is modulated point by point by the pulsation amplitude, and the direction of the disturbance is provided by the pre-generated three-dimensional random texture. The second-order Runge-Kutta numerical integration is used to perform advection stepping on the particle position along the instantaneous velocity, and the wind speed is converted from physical units to coordinate increments according to the local latitude and longitude arc length and then written into the velocity texture. In the position update channel, the coordinate increment of the velocity texture is accumulated to the current position of the particle to obtain the new position of the particle; In the particle rebirth channel, the particle is detected to see if it has crossed the area boundary or height range based on its new position, or a reset is triggered according to the adaptive rebirth probability. The reborn particles are randomly re-spread within the area and height range and a rebirth flag is set.
5. The transient three-dimensional wind field real-time rendering method according to claim 1, characterized in that, When building the circular buffer, each frame cyclically shifts the references of each historical particle position texture one position to the right, and reclaims the oldest historical particle position texture as the output target for the current frame. When drawing a line segment with width, the vertex shader extracts two historical positions of the particles from two adjacent historical particle position textures, converts them into three-dimensional coordinates, and then extrudes them in screen space along the line width direction to form a strip-shaped line segment; the line width and transparency of the line segment decrease with the age of the line segment, and when any endpoint of the line segment has a rebirth mark, the line segment is extruded outside the screen to break the trajectory. Instantaneous velocity is equal to the sum of the mean wind vector and the disturbance component.
6. The transient three-dimensional wind field real-time rendering method according to claim 1, characterized in that, The interpolation coefficients are calculated based on the ratio of the time cursor between two adjacent time points; when switching time points, only the four-channel 3D texture and interpolation coefficients referenced by the shader are updated; In real-time rendering mode, single-frame wind field data is used. Dual-frame interpolation is only enabled in history playback mode, and each layer uses the true interpolation coefficient after the second frame is ready.
7. The transient three-dimensional wind field real-time rendering method according to claim 1, characterized in that, When adapting to 2D slice rendering, the rebirth height of particles is narrowed to the vicinity of the target slice, the vertical motion amplitude of particles is set to zero, and the fragment shader smoothly fades out particles that deviate from the slice according to distance, so as to enable the reuse of the 3D rendering pipeline to achieve horizontal slice wind field rendering. When adapting to terrain-fitting rendering, the ground elevation of the particle's location is obtained by sampling the digital elevation texture of the terrain in the vertex shader, and the particle's height above the ground is superimposed to obtain the particle's absolute height, so that the particle moves close to the ground with the undulation of the terrain. When the frame rate is adaptively adjusted, the actual rendering frame rate is periodically sampled and adjusted up and down between preset particle scale levels. When the frame rate is higher than the upper threshold, the level is increased to improve image quality, and when it is lower than the lower threshold, the level is decreased to ensure smoothness. A cooldown time is also set to avoid frequent fluctuations in the level.
8. A real-time rendering system for transient three-dimensional wind fields, characterized in that, include: The acquisition module is used to acquire regional 3D wind field data at multiple time points, package the regional 3D wind field data at each time point into a four-channel 3D texture and upload it to the GPU. The module is used to construct a height lookup table for the corresponding non-uniform vertical stratification of the wind field. It selects the four-channel three-dimensional textures of two adjacent time points based on the current time cursor and calculates the interpolation coefficients. Based on the height lookup table, the physical height of the sampling point is corrected for the texture depth coordinates to obtain the corrected texture depth coordinates. The corrected texture depth coordinates are used to perform trilinear sampling on the four-channel three-dimensional textures of the two time points respectively, and the sampling results are linearly mixed according to the interpolation coefficients to obtain the average wind vector and fluctuation amplitude corresponding to the sampling point. The storage module is used to store the current position information of all particles in particle state texture based on the GPGPU architecture. Each frame, the particle state is updated sequentially through the velocity calculation channel, the position update channel and the particle rebirth channel to obtain the updated particle position texture. Among them, the velocity calculation channel combines the average wind vector obtained by sampling and the disturbance component modulated point by point by the pulsation amplitude to generate the instantaneous velocity of the particles. The advection step is completed by numerical integration based on the instantaneous velocity. The generation module is used to construct a ring-shaped buffer based on a fixed number of historical particle position textures. The historical particle position textures are reused in a loop to store the historical position information of particles in each frame. Line segments with width are drawn according to the positions of adjacent historical particles to generate a particle trail trajectory that fades with the trajectory age. The output module reuses the 3D rendering pipeline of particle trail images, performs 2D slice rendering adaptation, terrain fitting rendering adaptation, and frame rate adaptive adjustment, and outputs the final transient 3D wind field rendering image.
9. A transient three-dimensional wind field real-time rendering device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the transient three-dimensional wind field real-time rendering method according to any one of claims 1-7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it is used to implement the transient three-dimensional wind field real-time rendering method according to any one of claims 1-7.
