Tsunami pool wave real-time generation method and system based on player interaction

By constructing high- and low-resolution grids and quantifying player interaction parameters, and utilizing GPU parallel computing and interpolation mapping technology, personalized and diverse wave generation was achieved. This solved the problem of insufficient physical realism and real-time performance in existing wave generation technologies, and improved the immersiveness and visual quality of virtual water surface interaction.

CN121668668APending Publication Date: 2026-03-17BEIJING HUSHENG HOLDING GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511867699.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-11
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

Existing wave generation methods cannot simultaneously meet the requirements of physical realism and real-time performance. The quantification of user interaction behavior is relatively crude, resulting in a lack of personalization and diversity in the generated waves.

Method used

A high-resolution physical mesh and a low-resolution water surface rendering mesh are constructed. Player interaction behaviors are collected and quantified into interaction parameters. Wave height data is calculated in parallel by the graphics processor and then interpolated and mapped to the low-resolution rendering mesh for lighting rendering, so as to realize the personalization and diversity of waves.

Benefits of technology

It enhances the personalization and realism of wave generation, supports complex wave field evolution under multi-user dynamic interaction, overcomes the contradiction between real-time performance and visual quality, and achieves high-fidelity, low-latency and highly immersive virtual water surface interaction effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121668668A_ABST
    Figure CN121668668A_ABST
Patent Text Reader

Abstract

The invention discloses a tsunami pool wave real-time generation method and system based on player interaction, and relates to the technical field of virtual wave generation, and the method comprises the steps: generating an independent wave source descriptor for the physical interaction behavior of each player according to the quantized interaction parameters, and generating a wave source descriptor for the physical interaction behavior of each player according to the wave source descriptors of all players; wave height data at each vertex of the high-resolution physical grid is calculated in parallel by using a graphics processor, a vertex normal vector and a slope value are calculated according to the wave height data of the high-resolution physical grid, and the wave height data, the vertex normal vector and the slope value of the high-resolution physical grid are mapped to a low-resolution water surface rendering grid in an interpolation mode; driving the low-resolution water surface rendering grid to deform, performing illumination rendering on the deformed low-resolution water surface rendering grid, and outputting a rendered picture to a display device; through the virtual wave generation method based on physical interaction, a high-fidelity, low-delay and strong-immersion virtual water surface interaction effect is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of virtual wave generation technology, and in particular to a method and system for real-time generation of tsunami pool waves based on player interaction. Background Technology

[0002] With the rapid development of virtual reality, augmented reality, and interactive entertainment, fluid interaction methods based on physical simulation have become one of the core research directions for enhancing immersion and user experience. Among them, the real-time dynamic generation of water waves, as a typical fluid simulation problem, is widely used in theme park interactive installations, virtual ocean environment construction, and game scene rendering. In the past, wave generation methods mainly relied on preset animation sequences or discretized solutions based on simplified wave equations (such as linear wave theory), and realized water deformation through numerical integration on the CPU. In recent years, with the improvement of the parallel computing power of graphics processing units (GPUs), frequency domain simulation based on height fields (such as Gerstner waves) has gradually become the mainstream, which can achieve visually realistic rendering of large-scale water surfaces at high frame rates.

[0003] Nevertheless, existing wave generation methods still have room for improvement. First, using a single-resolution grid for physical calculations and graphics rendering cannot simultaneously meet the requirements of physical realism and real-time performance. Second, the quantification of user interaction behavior is rather crude, triggering wave sources with fixed patterns based solely on location information, ignoring the intensity, directionality, and dynamic temporal characteristics of the interaction, resulting in a lack of personalization and diversity in the generated waves. Summary of the Invention

[0004] In view of the aforementioned existing problems, the present invention is proposed.

[0005] Therefore, this invention provides a real-time wave generation method for tsunami pools based on player interaction to solve the problem of waves lacking personalization and diversity.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution:

[0007] In a first aspect, the present invention provides a method for real-time generation of tsunami pool waves based on player interaction, comprising,

[0008] After acquiring the planar geometry and target resolution of the tsunami pool, a high-resolution physical mesh and a low-resolution water surface rendering mesh are constructed respectively.

[0009] Collect players' physical interaction behaviors in the tsunami pool and quantify them into corresponding interaction parameters;

[0010] Based on the quantified interaction parameters, an independent wave source descriptor is generated for each player's physical interaction behavior;

[0011] Based on the wave source descriptors of all players, the wave height data at each vertex of the high-resolution physical grid is computed in parallel using the graphics processor;

[0012] Calculate the vertex normal vector and slope value based on the wave height data of the high-resolution physical grid;

[0013] The wave height data, vertex normal vectors and slope values ​​of the high-resolution physical mesh are mapped to the low-resolution water surface rendering mesh through interpolation, thereby driving the low-resolution water surface rendering mesh to produce deformation.

[0014] The low-resolution water surface rendering mesh after deformation is illuminated and rendered, and the rendered image is output to the display device.

[0015] As a preferred embodiment of the real-time wave generation method for tsunami pools based on player interaction described in this invention, the method involves: after acquiring the planar geometric dimensions and target resolution of the tsunami pool, constructing a high-resolution physical mesh and a low-resolution water surface rendering mesh, specifically:

[0016] Calculate the planar geometric area of ​​the tsunami pool's surface based on its planar geometric dimensions;

[0017] The planar geometric area of ​​the tsunami pool surface is used as the coverage area of ​​the high-resolution physical mesh and the low-resolution water surface rendering mesh.

[0018] After calculating the vertex density of the high-resolution physical mesh and the low-resolution water surface rendering mesh according to the target resolution, a regularly distributed vertex array is generated within the coverage area of ​​the high-resolution physical mesh and the low-resolution water surface rendering mesh using a dual loop algorithm.

[0019] A regular mesh triangulation algorithm is used to connect the vertex arrays of the high-resolution physical mesh and the low-resolution water surface rendering mesh to form triangular patches, thus obtaining the high-resolution physical mesh and the low-resolution water surface rendering mesh.

[0020] As a preferred embodiment of the real-time wave generation method for tsunami pools based on player interaction described in this invention, the step of collecting players' physical interaction behaviors in the tsunami pool and quantifying them into corresponding interaction parameters specifically includes:

[0021] The pressure data of the player's feet on the bottom of the tsunami pool is collected by pressure sensors, and the pressure data is quantified into wave source energy parameters that characterize the intensity of the interaction.

[0022] The player's three-dimensional coordinates in the tsunami pool are collected by positioning sensors, and the three-dimensional coordinates are quantified into wave source coordinate parameters that represent the interactive position.

[0023] Inertial measurement equipment is used to collect the acceleration and angular velocity data of the player's limbs, and the data is integrated to form a direction vector parameter representing the direction of interaction.

[0024] The wave source energy parameters, wave source coordinate parameters, and direction vector parameters together constitute the interaction parameters.

[0025] As a preferred embodiment of the real-time wave generation method for tsunami pools based on player interaction described in this invention, the step of generating an independent wave source descriptor for each player's physical interaction behavior based on the quantified interaction parameters specifically involves:

[0026] Based on the interaction parameters of each player, the wave source energy parameters are assigned to the energy field of the wave source descriptor;

[0027] The wave source coordinate parameters are assigned to the position field of the wave source descriptor, and the direction vector parameters are normalized and then assigned to the direction field of the wave source descriptor.

[0028] Assign a unique timestamp to each wave source descriptor to record the moment when the physical interaction occurred, and obtain the complete wave source descriptor.

[0029] As a preferred embodiment of the real-time wave generation method for tsunami pools based on player interaction described in this invention, the step of using a graphics processor to calculate the wave height data at each vertex of a high-resolution physical grid in parallel, based on the wave source descriptors of all players, specifically involves:

[0030] All vertex coordinates of the high-resolution physical mesh and the player's wave source descriptor are uploaded to the graphics processor's video memory. The graphics processor starts an independent parallel thread for each vertex of the high-resolution physical mesh. The parallel thread calculates the Euclidean distance from the wave source coordinate parameters in the wave source descriptor to the vertex coordinates.

[0031] Construct a wave height attenuation function table. Based on the Euclidean distance from the wave source coordinate parameters to the vertex coordinates, query the wave height attenuation function table to obtain the energy and attenuation coefficient of the wave source descriptor.

[0032] The wave height contribution value of the wave source descriptor at the vertex is calculated based on the energy and attenuation coefficient of the wave source descriptor. The wave height contribution values ​​of all wave source descriptors are summed to obtain the wave height data at each vertex of the high-resolution physical mesh.

[0033] As a preferred embodiment of the real-time wave generation method for tsunami pools based on player interaction described in this invention, the step of calculating the vertex normal vector and slope value based on wave height data from a high-resolution physical grid specifically involves:

[0034] For each vertex of the high-resolution physical grid, the wave height gradient components in the X and Z directions of the vertex are calculated using the central difference method.

[0035] The wave height gradient components in the X and Z directions are combined into a horizontal gradient vector. After rotating the horizontal gradient vector by N degrees, it is normalized to obtain the vertex normal vector.

[0036] Calculate the magnitude of the horizontal gradient vector to obtain the vertex slope value.

[0037] As a preferred embodiment of the real-time wave generation method for tsunami pools based on player interaction described in this invention, the method of mapping wave height data, vertex normal vectors, and slope information from a high-resolution physical mesh to a low-resolution water surface rendering mesh via interpolation, thereby driving deformation in the low-resolution water surface rendering mesh, specifically involves:

[0038] Traverse each vertex of the low-resolution water surface rendering mesh and determine the projection position of the low-resolution water surface rendering mesh vertex in the high-resolution physical mesh.

[0039] Find the set of neighboring vertices that surround the projected position in the high-resolution physical grid, perform weighted average interpolation on the wave height data of the neighboring vertex set, and obtain the wave height interpolation results of the vertices of the low-resolution water surface rendering grid.

[0040] Weighted average interpolation is performed on the vertex normal vectors and slope values ​​of the neighboring vertex set to obtain the normal interpolation results and slope interpolation results of the vertices of the low-resolution water surface rendering mesh;

[0041] The wave height interpolation result is used as a vertical displacement and applied to the vertical coordinates of the vertices of the low-resolution water surface rendering mesh. The normal interpolation result and the slope interpolation result are stored in the data buffer of the low-resolution water surface rendering mesh respectively. After all the vertices of the low-resolution water surface rendering mesh have been processed, the geometry of the low-resolution water surface rendering mesh is deformed.

[0042] As a preferred embodiment of the real-time wave generation method for tsunami pools based on player interaction described in this invention, the method involves: performing lighting rendering on the deformed low-resolution water surface rendering mesh, specifically:

[0043] Set the position, view direction vector, and color attributes of the light source in the tsunami pool scene;

[0044] Traverse each triangle of the low-resolution water surface rendering mesh and obtain the vertex coordinates and vertex normal data of the triangle.

[0045] For each pixel covered by the triangular facet, the normal direction at the pixel is calculated by interpolation of the vertex normal data.

[0046] The cosine value of the incident angle of light is calculated based on the relative position of the pixel and the light source.

[0047] The diffuse reflection intensity is calculated based on the incident angle of the light and the normal direction at the pixel, while the specular reflection intensity is calculated based on the viewing angle.

[0048] The ambient light of the tsunami pool is collected and superimposed with the diffuse light intensity and the specular light intensity to obtain the final lighting color of the pixel. The final lighting color is then mixed with the base color of the tsunami pool water surface to complete the lighting rendering.

[0049] As a preferred embodiment of the real-time wave generation method for tsunami pools based on player interaction described in this invention, the following is defined: outputting the rendered image to the display device means writing the low-resolution water surface rendering mesh with completed lighting rendering into the frame buffer, transmitting it to the receiving port of the display device through the display interface, and then the display device performs signal decoding and format conversion on the received low-resolution water surface rendering mesh and displays it on the screen.

[0050] Secondly, this invention provides a real-time wave generation system for tsunami pools based on player interaction, comprising:

[0051] The module collects the planar geometry and target resolution of the tsunami pool and then constructs a high-resolution physical mesh and a low-resolution water surface rendering mesh, respectively.

[0052] The data collection module collects players' physical interaction behaviors in the tsunami pool and quantifies them into corresponding interaction parameters;

[0053] The descriptor module generates an independent wave source descriptor for each player's physical interaction behavior based on the quantized interaction parameters.

[0054] The wave height data module uses the graphics processor to compute wave height data at each vertex of the high-resolution physical grid in parallel, based on the wave source descriptors of all players.

[0055] The calculation module calculates the vertex normal vector and slope value based on the wave height data of the high-resolution physical grid;

[0056] The deformation module maps the wave height data, vertex normal vectors, and slope information of the high-resolution physical mesh to the low-resolution water surface rendering mesh through interpolation, thereby driving the low-resolution water surface rendering mesh to produce deformation.

[0057] The display module performs lighting rendering on the deformed low-resolution water surface rendering mesh and outputs the rendered image to the display device.

[0058] The beneficial effects of this invention are as follows: It constructs a two-layer architecture of high-resolution physical mesh and low-resolution water surface rendering mesh, and combines pressure, positioning and inertial sensors to quantify player interaction behavior in multiple dimensions. At the same time, it uses GPU to perform parallel real-time calculation of the wave height contribution of multiple wave sources on the high-resolution mesh, and then uses interpolation to map the physical data to the rendering mesh to complete the lighting display. This achieves synergistic optimization of physical simulation accuracy and graphics rendering efficiency. This not only improves the personalization and realism of wave generation and supports complex wave field evolution under multi-user dynamic interaction, but also overcomes the contradiction between real-time performance and visual quality in previous methods, achieving a high-fidelity, low-latency and highly immersive virtual water surface interaction effect. Attached Figure Description

[0059] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0060] Figure 1 This is a flowchart of a method for real-time generation of tsunami pool waves based on player interaction.

[0061] Figure 2 A flowchart for obtaining wave height data of high-resolution physical grid vertices.

[0062] Figure 3 A flowchart for generating high-resolution physical meshes and low-resolution water surface rendering meshes.

[0063] Figure 4 A flowchart for obtaining player interaction parameters. Detailed Implementation

[0064] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

[0065] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.

[0066] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The phrase "in one embodiment" appearing in different places in this specification does not necessarily refer to the same embodiment, nor is it a single or selective embodiment that is mutually exclusive with other embodiments.

[0067] Reference Figures 1-4 As one embodiment of the present invention, this embodiment provides a method for real-time generation of tsunami pool waves based on player interaction, including the following steps:

[0068] S1. After acquiring the planar geometric dimensions and target resolution of the tsunami pool, construct a high-resolution physical mesh and a low-resolution water surface rendering mesh respectively.

[0069] S1.1 Calculate the planar geometric area of ​​the tsunami pool's water surface based on its planar geometric dimensions;

[0070] It should be noted that the planar geometric dimensions of the tsunami pool (including the coordinate sequence of boundary vertices, the minimum boundary coordinates, and the reference height coordinates) are collected using measuring equipment. The boundary vertices are then connected sequentially to form a closed polygon. The planar geometric area of ​​the tsunami pool surface is calculated using the polygon area calculation formula, expressed as:

[0071] ;

[0072] in, This represents the planar geometric area of ​​the tsunami pool's surface. Indicates the first The x-coordinate value of each boundary vertex. Indicates the first The ordinate values ​​of the boundary vertices;

[0073] The planar geometric area of ​​the tsunami pool surface is used as the coverage area for both the high-resolution physical mesh and the low-resolution water surface rendering mesh.

[0074] S1.2 After calculating the vertex density of the high-resolution physical mesh and the low-resolution water surface rendering mesh according to the target resolution, a regularly distributed vertex array is generated within the coverage area of ​​the high-resolution physical mesh and the low-resolution water surface rendering mesh using a double loop algorithm.

[0075] It should be noted that, based on the coverage of the high-resolution physical mesh and the low-resolution water surface rendering mesh, the target vertex density values ​​of the high-resolution physical mesh and the low-resolution water surface rendering mesh are preset.

[0076] The target resolution is jointly determined by the vertex density values ​​of the high-resolution physical mesh and the vertex density values ​​of the low-resolution water surface rendering mesh.

[0077] The vertex spacing of the high-resolution physical mesh is obtained by taking the square root and reciprocal of the vertex density value. The high-resolution physical mesh is then iterated along both the X and Z axes with the vertex spacing as the step size. At each iteration position, the vertex coordinates are calculated and stored in the high-resolution physical mesh vertex array, as expressed by the formula:

[0078] ;

[0079] in, Represents the vertex coordinates of a high-resolution physical mesh. This represents the x-coordinate in the minimum boundary coordinates of the tsunami pool. This represents the ordinate in the minimum boundary coordinates of the tsunami pool. Indicates the X-axis circular index. Indicates the Z-axis circular index. This represents the vertex spacing in the X direction of a high-resolution physical mesh. This represents the vertex spacing in the Z direction of a high-resolution physical mesh. The reference height coordinates of the tsunami pool water surface;

[0080] The vertex spacing of the low-resolution water surface rendering mesh is obtained by taking the square root of the vertex density value and then taking the reciprocal. The low-resolution water surface rendering mesh is then iterated in a loop along the X-axis with the vertex spacing as the step size, and in a loop along the Z-axis with the vertex spacing as the step size. At each loop position, the vertex coordinates of the low-resolution water surface rendering mesh are calculated and stored in the low-resolution water surface rendering mesh vertex array. The calculation formula follows the same formula as the high-resolution physical mesh vertex coordinate formula mentioned above.

[0081] It should also be noted that the target vertex density value of the high-resolution physical grid ranges from 16 to 256 vertices per square meter. This value is set based on the physical accuracy requirements and to balance the actual application scenarios. When the target vertex density value of the high-resolution physical grid is less than 16 vertices per square meter, it will fail to meet the basic physical sampling theorem of wave simulation, leading to serious numerical calculation problems. When the target vertex density value of the high-resolution physical grid is greater than 256 vertices per square meter, the computational load will increase exponentially, exceeding the processing capacity of the wave simulation center.

[0082] The target vertex density value of the low-resolution water surface rendering mesh ranges from 4 to 64 vertices per square meter, which is set according to the optimal balance between graphics quality and running efficiency. When the target vertex density value of the low-resolution water surface rendering mesh is less than 4 vertices per square meter, the mesh will be too coarse and unable to effectively express the shape of the waves, resulting in serious visual defects. When the target vertex density value of the low-resolution water surface rendering mesh is greater than 64 vertices per square meter, the number of vertices that the GPU needs to process will surge, leading to a bottleneck in real-time rendering performance.

[0083] S1.3. The vertex arrays of the high-resolution physical mesh and the low-resolution water surface rendering mesh are connected to form triangular patches using a regular mesh triangulation algorithm to obtain the high-resolution physical mesh and the low-resolution water surface rendering mesh.

[0084] It should be noted that the row and column indices of the high-resolution physical mesh vertex array are traversed, and four adjacent vertices in the high-resolution physical mesh vertex array are collected. The mesh cell composed of these four vertices is divided into two triangular faces using a bottom-right diagonal connection method, generating the first and second triangular faces. The generated triangular faces are then stored in the high-resolution physical mesh triangular face list. Using the same method for generating triangular faces from the high-resolution physical mesh vertex array, the low-resolution water surface rendering mesh vertex array is processed, and the two divided triangular faces are stored in the low-resolution water surface rendering mesh triangular face list. This completes the construction of the triangular faces for both the high-resolution physical mesh and the low-resolution water surface rendering mesh, resulting in the high-resolution physical mesh and the low-resolution water surface rendering mesh.

[0085] The triangular facets of a high-resolution physical mesh define the surface geometry and topology of the high-resolution physical mesh. The triangular facets of a low-resolution water surface rendering mesh define the surface geometry and topology of the low-resolution water surface rendering mesh.

[0086] S2. Collect players' physical interaction behavior in the tsunami pool and quantify it into corresponding interaction parameters;

[0087] S2.1. Collect pressure data of the player's feet on the bottom of the tsunami pool using pressure sensors, and quantify the pressure data into wave source energy parameters that characterize the intensity of the interaction.

[0088] It should be noted that a pressure sensor array is used to continuously monitor the pressure data sequence at various locations on the bottom of the tsunami pool; the maximum pressure value in the pressure data sequence is taken as the peak pressure value. The moment when the pressure value of the first sampling point in the pressure data sequence exceeds the pressure threshold is determined as the event start time point, and the moment when the pressure value of the last sampling point in the pressure data sequence exceeds the pressure threshold is determined as the event end time point. The time difference between the event end time point and the event start time point is calculated to obtain the pressure duration. The peak pressure value is multiplied by the pressure duration to obtain the pressure impulse value. The pressure impulse value is then linearly normalized to generate wave source energy parameters that are proportional to the pressure applied by the player's feet.

[0089] It should also be noted that the pressure threshold ranges from 980 Pa to 2450 Pa, and is set based on a balance between noise filtering and interaction sensitivity. When the pressure threshold is less than 980 Pa, it will be unable to effectively distinguish between real player interactions and environmental background noise, leading to frequent erroneous responses from the wave simulation center. When the pressure threshold is greater than 2450 Pa, the wave simulation center becomes "sluggish" and fails to detect many realistic, especially gentle, interactions.

[0090] S2.2. Collect the player's three-dimensional coordinates in the tsunami pool using positioning sensors, and quantify the three-dimensional coordinates into wave source coordinate parameters that characterize the interactive position;

[0091] It should be noted that a positioning sensor is used to collect three-dimensional coordinate data (including the horizontal and vertical components of the world coordinate system) of the player's body parts (such as the torso's center of gravity) in the world coordinate system. Kalman filtering is applied to this three-dimensional coordinate data to eliminate measurement noise and short-term jitter from the positioning sensor. Specifically, the noise-laden three-dimensional coordinate data collected by the positioning sensor is read, and the state vector of the Kalman filter is defined as a six-dimensional vector, including three-dimensional position and velocity components. The first three elements of the state vector are initialized to the horizontal, height, and vertical components of the three-dimensional coordinate data collected by the positioning sensor. The error covariance matrix of the Kalman filter is defined as a sixth-order square matrix, with the dimension of the error covariance matrix consistent with the dimension of the state vector, and the non-diagonal elements initialized to zero. A uniform motion model is used to predict the predicted value of the state vector and the predicted value of the error covariance matrix for the next moment. When new three-dimensional coordinate data arrives, the residual vector between the predicted state vector value and the measured value of the new three-dimensional coordinate data is calculated.

[0092] The Kalman gain matrix can be calculated using the following formula:

[0093] ;

[0094] in, Represents the Kalman gain matrix. This represents the predicted value of the error covariance matrix. Represents the measurement matrix. This represents the transpose of the measurement matrix. Represents the measurement noise covariance matrix;

[0095] The Kalman gain matrix is ​​multiplied by the residual vector to obtain the correction term. The correction term is added to the predicted state vector value to obtain the optimal estimated state vector value. The filtered three-dimensional coordinate data is extracted from the optimal estimated state vector value.

[0096] The uniform motion model is a pre-defined mathematical model based on physical laws in Kalman filtering, rather than being learned from data, so it does not require training.

[0097] The filtered three-dimensional coordinates in the world coordinate system are converted into two-dimensional horizontal coordinates in the local coordinate system of the tsunami pool. Specifically, a local coordinate system is established, with the center point of the pool bottom set as its origin. After aligning the local coordinate system with the world coordinate system, the difference between the horizontal axis components of the world coordinate system and the horizontal axis coordinates of the local coordinate system is calculated to obtain the horizontal axis components of the local coordinate system. Similarly, the difference between the vertical axis components of the world coordinate system and the vertical axis coordinates of the local coordinate system is calculated to obtain the vertical axis components of the local coordinate system. The horizontal and vertical components of the local coordinate system are the wave source coordinate parameters.

[0098] S2.3 Use inertial measurement tools to collect the acceleration and angular velocity data of the player's limbs, and integrate them to obtain a direction vector parameter representing the direction of interaction;

[0099] It should be noted that inertial measurement equipment is used to collect the player's limb acceleration and angular velocity data in three-dimensional space; numerical integration is performed on the acceleration data to obtain the player's limb velocity data, expressed by the formula:

[0100] ;

[0101] in, Indicates a point in time Player limb movement speed data, This represents the initial movement speed data of the player's limbs. This represents the acceleration data of the player's limbs. Representing the time element of integration;

[0102] Numerical integration is performed on the angular velocity data to obtain the player's limb posture angle data. A rotation matrix (a 3x3 orthogonal matrix whose elements are composed of the sine and cosine values ​​of the posture angle data) is constructed from the limb coordinate system to the world coordinate system based on the posture angle data. The rotation matrix is ​​then multiplied with the player's limb motion velocity data; the result of this matrix multiplication is the player's limb motion velocity data in the world coordinate system. The horizontal and vertical components of the player's limb motion velocity data in the world coordinate system are extracted and combined into a two-dimensional horizontal motion velocity vector. After calculating the magnitude of the two-dimensional horizontal motion velocity vector, its quotient is calculated with the horizontal component of the two-dimensional horizontal motion velocity vector to obtain the horizontal component of the direction vector parameter. The magnitude of the two-dimensional horizontal motion velocity vector is then multiplied with its vertical component to obtain the vertical component of the direction vector parameter.

[0103] Wave source energy parameters, wave source coordinate parameters, and direction vector parameters together constitute the player's interaction parameters.

[0104] S3. Based on the quantified interaction parameters, generate an independent wave source descriptor for each player's physical interaction behavior;

[0105] It should be noted that, based on the interaction parameters of each player, the wave source energy parameter is assigned to the energy field of the wave source descriptor, the wave source coordinate parameter is assigned to the position field of the wave source descriptor, and the direction vector parameter is normalized and then assigned to the direction field of the wave source descriptor; a unique timestamp is assigned to each wave source descriptor to record the time when the physical interaction occurs, thus forming the player's wave source descriptor.

[0106] S4. Based on the wave source descriptors of all players, use the graphics processor to calculate the wave height data at each vertex of the high-resolution physical grid in parallel.

[0107] S4.1 It should be noted that the high-resolution physical mesh vertex coordinates are uploaded in batches to the graphics processor's video memory via a data transmission interface. The player's wave source descriptor data is uploaded to the graphics processor's video memory via the same transmission interface. The graphics processor allocates a separate parallel thread for the high-resolution physical mesh vertex coordinates. Each parallel thread reads the corresponding high-resolution physical mesh vertex coordinates and all wave source descriptors stored in video memory. For each wave source descriptor, the parallel thread calculates the Euclidean distance from the wave source coordinate parameters in the wave source descriptor to the high-resolution physical mesh vertex coordinates.

[0108] A wave height attenuation function table is constructed. Specifically, the query range of the wave height attenuation function table is determined, with the minimum distance value set to zero and the maximum distance value set to twice the diagonal length of the tsunami pool. Distance values ​​are sampled at fixed intervals (0.1 meters to 0.5 meters) within the query range to generate a distance value sequence. Based on the wave energy attenuation formula in hydrodynamics, the wave height attenuation coefficient corresponding to each distance value is calculated one by one to obtain a wave height attenuation coefficient sequence.

[0109] ;

[0110] in, Indicates the wave height attenuation coefficient. Indicates the wave energy attenuation coefficient. This represents the Euclidean distance from the location of the wave source descriptor to the vertex coordinates of the high-resolution physical grid;

[0111] The distance value sequence is combined with the corresponding wave height attenuation coefficient sequence into key-value pairs and stored in the wave height attenuation function table data structure. After the wave height attenuation function table is constructed, it is compiled into shader constants and uploaded to the constant memory of the graphics processor.

[0112] Using the Euclidean distance from the wave source coordinates in the wave source descriptor to the vertex coordinates of the high-resolution physical grid as the lookup key, an interpolation lookup operation is performed in the wave height attenuation function table. The wave height attenuation function table returns the wave height attenuation coefficient for the corresponding distance value. At the same time, a parallel thread reads the wave source energy parameters in the wave source descriptor.

[0113] The wave source energy parameter and the found wave height attenuation coefficient are multiplied to obtain the wave height contribution value of a single wave source descriptor at the vertex coordinates of the high-resolution physical grid. The parallel thread repeatedly performs the wave height contribution value calculation operation for each wave source descriptor, and accumulates and sums the wave height contribution values ​​of all wave source descriptors in the registers of the graphics processor. The result of the accumulation and summation operation is the total wave height data at the vertex coordinates of the high-resolution physical grid.

[0114] It should also be noted that the lookup range of the wave height attenuation function table is set based on the maximum physical spatial scale of the tsunami pool and the effective propagation limit of wave energy.

[0115] The fixed interval (0.1 m to 0.5 m) is set to achieve the optimal balance between computational performance and storage overhead while ensuring the visual realism of the wave simulation. When the fixed interval is less than 0.1 m, the wave height attenuation function table becomes abnormally large, resulting in a serious performance bottleneck, while the visual improvement is negligible. When the fixed interval is greater than 0.5 m, the wave height attenuation function table is too coarse and cannot accurately describe the continuous attenuation of wave energy, resulting in a visually unrealistic feeling.

[0116] The maximum distance of the query range is set to twice the diagonal length of the tsunami pool. The core reason is to ensure coverage of the specular reflection paths that may occur as waves propagate within the pool, which is determined by the physical laws of wave propagation and the geometric constraints of the scene. If the maximum distance of the query range is less than twice the diagonal length, it will lead to serious problems of incomplete physical simulation, resulting in visual distortion; if the maximum distance of the query range is greater than twice the diagonal length, it will lead to unnecessary performance overhead and resource waste.

[0117] S5. Calculate the vertex normal vector and slope value based on the wave height data of the high-resolution physical grid;

[0118] S5.1. Traverse each vertex of the high-resolution physical grid and use the central difference method to calculate the wave height gradient components of the vertex in the X direction and the Z direction of the high-resolution physical grid.

[0119] It should be noted that, based on the wave height data of the vertices of the high-resolution physical grid, the wave height gradient component of the vertex in the X direction of the high-resolution physical grid is calculated, and expressed by the wave height gradient formula as follows:

[0120] ;

[0121] in, This represents the wave height gradient component of a high-resolution physical mesh vertex in the X direction. Represents wave height data at the vertices of a high-resolution physical mesh. This indicates the index number of the vertex in the X direction of the high-resolution physical mesh. This indicates the index number of the vertex in the Z direction of the high-resolution physical mesh. This represents the vertex spacing in the X direction of the high-resolution physical mesh;

[0122] The wave height gradient component of a high-resolution physical mesh vertex in the Z direction is also calculated using the wave height gradient formula described above. It should be noted that this gradient component calculation is required for every vertex of the high-resolution physical mesh.

[0123] S5.2 Combine the wave height gradient components in the X direction and the wave height gradient components in the Z direction into a horizontal gradient vector. After rotating the horizontal gradient vector by N degrees, normalize it to obtain the vertex normal vector.

[0124] It should be noted that the wave height gradient components in the X and Z directions of the high-resolution physical mesh vertices are combined to form a horizontal gradient vector. A rotation transformation of N degrees is then applied to this horizontal gradient vector to generate a temporary normal vector. Specifically, a two-dimensional rotation matrix is ​​constructed based on the horizontal and vertical components of the horizontal gradient vector. The top-left element of this rotation matrix is ​​cos(N), the top-right element is -sin(N), the bottom-left element is sin(N), and the bottom-right element is cos(N). The horizontal and vertical components of the horizontal gradient vector are then multiplied by the two-dimensional rotation matrix. The result of this matrix multiplication is the horizontal and vertical components of the normal vector, i.e., the normal vector itself. The typical value of the rotation angle N is 90 degrees, which is set based on the geometric orthogonality between the normal vector and the gradient vector. When the rotation angle is less than 90 degrees, the light and shadow relationship of the waves is completely disrupted, the contrast between the peaks and troughs is weakened or even reversed, and the water surface looks flat and lacks a sense of three-dimensionality. When the rotation angle is greater than 90 degrees, the waves will present an unnatural "chrome-plated" effect, the highlight areas are misaligned, and the visual effect is dazzling and fake.

[0125] The horizontal gradient vector is squared along its x-axis. The horizontal gradient vector is then squared along its y-axis. The squared values ​​of the x and y components are added together to obtain the squared magnitude of the horizontal gradient vector. Finally, the square root of the squared magnitude is taken to obtain the absolute magnitude of the horizontal gradient vector; this absolute magnitude is the slope at the vertex.

[0126] S6. Map the wave height data, vertex normal vectors and slope values ​​of the high-resolution physical mesh to the low-resolution water surface rendering mesh through interpolation, and drive the low-resolution water surface rendering mesh to produce deformation.

[0127] S6.1. Traverse each vertex of the low-resolution water surface rendering mesh and determine the projection position of the low-resolution water surface rendering mesh vertex in the high-resolution physical mesh;

[0128] It should be noted that the horizontal and vertical coordinates of the vertices of the low-resolution water surface rendering mesh are read. The horizontal coordinate of the low-resolution water surface rendering mesh vertex is subtracted from the minimum horizontal boundary coordinate of the high-resolution physical mesh to obtain the relative horizontal offset of the low-resolution water surface rendering mesh vertex in the high-resolution physical mesh. The vertical coordinate of the low-resolution water surface rendering mesh vertex is subtracted from the minimum vertical boundary coordinate of the high-resolution physical mesh to obtain the relative vertical offset of the low-resolution water surface rendering mesh vertex in the high-resolution physical mesh. The relative horizontal offset is divided by the horizontal vertex spacing of the high-resolution physical mesh to obtain the floating-point index of the low-resolution water surface rendering mesh vertex in the horizontal direction of the high-resolution physical mesh. The relative vertical offset is divided by the vertical vertex spacing of the high-resolution physical mesh to obtain the floating-point index of the low-resolution water surface rendering mesh vertex in the vertical direction of the high-resolution physical mesh. The floating-point indices of the low-resolution water surface rendering mesh vertex in the horizontal and vertical directions together constitute the projected position of the low-resolution water surface rendering mesh vertex in the high-resolution physical mesh.

[0129] S6.2 Find the set of neighboring vertices that surround the projected position in the high-resolution physical grid, perform weighted average interpolation on the wave height data of the neighboring vertex set, and obtain the wave height interpolation result of the vertices of the low-resolution water surface rendering grid.

[0130] It should be noted that, based on the floating-point indices of the low-resolution water surface rendering mesh vertices in the high-resolution physical mesh along the horizontal and vertical axes, the integer part of the floating-point index along the horizontal axis is extracted and denoted as... The decimal part is denoted as Extract the integer part of the floating-point index along the vertical axis, denoted as . The decimal part is denoted as Based on the extracted values, the indices of the four neighboring vertex sets surrounding the projected position can be determined, which are ( , ), ( +1, ), ( , +1), ( +1, +1). Wave height data from four neighboring vertex sets stored in a high-resolution physical grid are extracted. A weighted average of the wave height data from the four neighboring vertex sets is calculated using a bilinear interpolation formula to obtain the wave height interpolation result, expressed as:

[0131] ;

[0132] in, This represents the wave height interpolation result. This represents the fractional part of the floating-point index of the vertices of the low-resolution water surface rendering mesh along the horizontal axis of the high-resolution physical mesh. This represents the fractional part of the floating-point index of the vertices of the low-resolution water surface rendering mesh along the vertical axis of the high-resolution physical mesh. Indicates that the index in the high-resolution physical grid is ( , The wave height data of the nearest vertex, Indicates that the index in the high-resolution physical mesh is ( +1, The wave height data of the nearest vertex, Indicates that the index in the high-resolution physical mesh is ( , +1) neighboring vertex wave height data, Indicates that the index in the high-resolution physical mesh is ( +1, +1) of the wave height data of the nearest vertex.

[0133] S6.3 Perform weighted average interpolation calculation on the vertex normal vectors and slope values ​​of the neighboring vertex set to obtain the normal interpolation results and slope interpolation results of the vertices of the low-resolution water surface rendering mesh;

[0134] It should be noted that the vertex normal vectors of the four neighboring vertex sets are extracted; the bilinear interpolation formula in step S6.2 above is used to calculate the weighted average of the vertex normal vectors of the four neighboring vertex sets to obtain the normal interpolation result of the low-resolution water surface rendering mesh vertices; the normal interpolation result is normalized to generate the normal interpolation result of the low-resolution water surface rendering mesh vertices per unit length. The slope values ​​of the four neighboring vertex sets are extracted, and the bilinear interpolation formula in step S6.2 is used to calculate the weighted average of the slope values ​​of the four neighboring vertex sets to obtain the slope interpolation result of the low-resolution water surface rendering mesh vertices.

[0135] The wave height interpolation result is used as a vertical displacement and applied to the vertical coordinates of the vertices of the low-resolution water surface rendering mesh. The normal interpolation result and the slope interpolation result are stored in the data buffer of the low-resolution water surface rendering mesh respectively. After all the vertices of the low-resolution water surface rendering mesh have been processed, the geometry of the low-resolution water surface rendering mesh is deformed.

[0136] S7. Perform lighting rendering on the deformed low-resolution water surface rendering mesh, and output the rendered image to the display device;

[0137] S7.1 It should be noted that the position, viewing direction, and color attributes of the light sources in the tsunami pool scene are set. The light source position includes the horizontal, vertical, and height coordinates of the light source in the world coordinate system. The viewing direction vector is determined by the position coordinates of the virtual camera in the world coordinate system and the coordinates of the observation target point. The light source color attributes include the intensity of the red, green, and blue components of the light source. The light source position coordinates, viewing direction parameters, and light source color attributes are loaded into the shader constant register of the graphics processor.

[0138] S7.2. It should be noted that each triangular facet of the low-resolution water surface rendering mesh is traversed, and the vertex coordinates and vertex normal data of the triangular facet are extracted. For each pixel covered by the triangular facet, the normal direction at the pixel is calculated by interpolation of the vertex normal data. Specifically, the normal data of the first vertex, the second vertex, and the third vertex of the triangular facet are extracted, and weighted interpolation is performed to obtain the normal vector, which is expressed by the formula:

[0139] ;

[0140] in, Represents the normal vector. This represents the normal data of the first vertex. This represents the normal data of the second vertex. This represents the normal data of the third vertex. This represents the centroid coordinate weight coefficient of the first vertex. This represents the weighting coefficient of the centroid coordinates of the second vertex. This represents the centroid coordinate weight coefficient of the third vertex;

[0141] The calculated normal vectors are normalized to generate the normal direction at each pixel.

[0142] It should also be noted that the centroid coordinate weight coefficients of the three vertices of the triangular facet range from [0,1] and are calculated using the area method in Euclidean geometry based on the specific position of the pixel within the triangular facet, rather than being preset fixed values.

[0143] S7.3 Calculate the cosine value of the incident angle of the light based on the relative position of the pixel and the light source;

[0144] It should be noted that the coordinates of the light source position in the world coordinate system are extracted, and the illumination incident vector pointing from the pixel to the light source position is calculated. The formula for calculating the illumination incident vector is the difference between the coordinates of the light source position and the coordinates of the pixel. The illumination incident vector is normalized to obtain the unit illumination incident vector. The normal direction vector at the pixel is read; the dot product of the unit illumination incident vector and the normal direction vector at the pixel is calculated, and the result of the dot product is the cosine value of the illumination incident angle.

[0145] S7.4. Calculate the diffuse reflection intensity based on the cosine value of the incident light angle and the normal direction at the pixel, and calculate the specular reflection intensity based on the viewing angle.

[0146] It should be noted that the diffuse light intensity is obtained by multiplying the cosine of the incident angle of the light by the intensity component of the light source's color attribute. The reflection vector at a pixel is calculated using the formula:

[0147] ;

[0148] in, Represents the reflection vector. This represents the normal direction vector at the pixel. Represents the unit incident light vector;

[0149] Calculate the dot product of the reflection vector and the view direction vector, and then raise the dot product to an exponent, which is the specular reflection index. Multiply the result of the exponentiation with the specular reflection coefficient to obtain the specular reflection intensity value.

[0150] It should also be noted that the specular reflectance index ranges from 50 to 2000, which is set based on physical standards and visual artistic goals. When the specular reflectance index is less than 50, it will cause excessive diffusion of the highlights and distortion of the material texture; when the specular reflectance index is greater than 2000, it will cause excessive sharpness of the highlights and result in visual defects.

[0151] The specular reflectance value ranges from [0.0, 1.0], determined based on the law of conservation of physical energy and the optical properties of water. When the specular reflectance value exceeds the range of [0.0, 1.0], it will not only cause the rendering result to be physically distorted, but also lead to serious visual defects.

[0152] S7.5. Collect the ambient light of the tsunami pool, and superimpose it with the diffuse reflection intensity and the specular reflection intensity to obtain the final illumination color value of the pixel. Mix the final illumination color value with the base color of the tsunami pool water surface to complete the illumination rendering.

[0153] It should be noted that the ambient light of the tsunami pool is collected and superimposed with the diffuse and specular light intensity to obtain the total illumination intensity of the pixel. The total illumination intensity of the pixel is then multiplied by the light source color attribute to obtain the final illumination color value of the pixel. The basic color value of the tsunami pool water surface is collected and multiplied and mixed with the final illumination color value of the pixel to generate the final display color value of the pixel. This process is executed in parallel for each pixel of the low-resolution water surface rendering mesh in the fragment shader of the graphics processor until the low-resolution water surface rendering mesh is rendered. After rendering is complete, the low-resolution water surface rendering mesh is written to the frame buffer and transmitted to the receiving port of the display device through the display interface. The display device decodes and converts the received low-resolution water surface rendering mesh signal and displays it on the screen.

[0154] This embodiment also provides a real-time wave generation system for tsunami pools based on player interaction, including:

[0155] The module collects the planar geometry and target resolution of the tsunami pool and then constructs a high-resolution physical mesh and a low-resolution water surface rendering mesh, respectively.

[0156] The data collection module collects players' physical interaction behaviors in the tsunami pool and quantifies them into corresponding interaction parameters;

[0157] The descriptor module generates an independent wave source descriptor for each player's physical interaction behavior based on the quantized interaction parameters.

[0158] The wave height data module uses the graphics processor to compute wave height data at each vertex of the high-resolution physical grid in parallel, based on the wave source descriptors of all players.

[0159] The calculation module calculates the vertex normal vector and slope value based on the wave height data of the high-resolution physical grid;

[0160] The deformation module maps the wave height data, vertex normal vectors, and slope information of the high-resolution physical mesh to the low-resolution water surface rendering mesh through interpolation, thereby driving the low-resolution water surface rendering mesh to produce deformation.

[0161] The display module performs lighting rendering on the deformed low-resolution water surface rendering mesh and outputs the rendered image to the display device.

[0162] This embodiment also provides a computer device applicable to the real-time wave generation method for tsunami pools based on player interaction, including: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions to implement the real-time wave generation method for tsunami pools based on player interaction as proposed in the above embodiment.

[0163] The computer device can be a terminal, comprising a processor, memory, communication interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, carrier networks, NFC (Near Field Communication), or other technologies. The display screen can be an LCD screen or an e-ink screen. The input devices can be a touch layer covering the display screen, buttons, a trackball, or a touchpad on the computer device's casing, or an external keyboard, touchpad, or mouse.

[0164] This embodiment also provides a storage medium storing a computer program that, when executed by a processor, implements the real-time wave generation method for a tsunami pool based on player interaction as proposed in the above embodiments. The storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Red-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0165] In summary, this invention constructs a two-layer architecture of a high-resolution physical mesh and a low-resolution water surface rendering mesh. It combines pressure, positioning, and inertial sensors to quantify player interaction behavior in multiple dimensions. Simultaneously, it utilizes the GPU to perform parallel real-time calculation of the wave height contribution of multiple wave sources on the high-resolution mesh. Then, it uses interpolation to map the physical data to the rendering mesh to complete the lighting display. This achieves synergistic optimization of physical simulation accuracy and graphics rendering efficiency. This not only enhances the personalization and realism of wave generation and supports complex wave field evolution under multi-user dynamic interaction, but also overcomes the contradiction between real-time performance and visual quality in previous methods, achieving a high-fidelity, low-latency, and highly immersive virtual water surface interaction effect.

[0166] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.

Claims

1. A method for real-time generation of tsunami pool wave based on player interaction, characterized in that: The application relates to a method for generating a wave surface of a tsunami pool, and belongs to the technical field of computer graphics. After the planar geometric size and target resolution of the tsunami pool are collected, a high-resolution physical grid and a low-resolution water surface rendering grid are respectively constructed; Physical interaction behaviors of players in the tsunami pool are collected and quantified into corresponding interaction parameters; According to the quantified interaction parameters, an independent wave source descriptor is generated for the physical interaction behavior of each player; According to the wave source descriptors of all players, wave height data at each vertex of the high-resolution physical grid is calculated in parallel using a graphics processor; According to the wave height data of the high-resolution physical grid, vertex normal vectors and slope values are calculated; The wave height data, vertex normal vectors and slope values of the high-resolution physical grid are mapped to the low-resolution water surface rendering grid through interpolation to drive the low-resolution water surface rendering grid to deform; The deformed low-resolution water surface rendering grid is subjected to light rendering, and the rendered picture is output to a display device.

2. The method for real-time generation of pool waves based on player interaction of claim 1, wherein: After the planar geometric size and target resolution of the tsunami pool are collected, a high-resolution physical grid and a low-resolution water surface rendering grid are respectively constructed, specifically as follows: According to the planar geometric size of the tsunami pool, the planar geometric area of the water surface of the tsunami pool is calculated; The planar geometric area of the water surface of the tsunami pool is taken as the coverage range of the high-resolution physical grid and the low-resolution water surface rendering grid; After the vertex density of the high-resolution physical grid and the low-resolution water surface rendering grid is calculated according to the target resolution, a regularly distributed vertex array is generated in the coverage range of the high-resolution physical grid and the low-resolution water surface rendering grid using a double-loop algorithm; The vertex array of the high-resolution physical grid and the low-resolution water surface rendering grid is connected to form triangular facets by adopting a regular grid triangulation algorithm, so that the high-resolution physical grid and the low-resolution water surface rendering grid are obtained.

3. The method of claim 2, wherein: The physical interaction behaviors of players in the tsunami pool are collected and quantified into corresponding interaction parameters, specifically as follows: Pressure data of the player's feet exerted on the bottom of the tsunami pool are collected through a pressure sensor, and the pressure data are quantified into a wave source energy parameter representing the interaction intensity; Three-dimensional coordinates of the player's body in the tsunami pool are collected through a positioning sensor, and the three-dimensional coordinates are quantified into a wave source coordinate parameter representing the interaction position; Motion acceleration and angular velocity data of the player's limbs are collected using an inertial measurement tool, and are integrated into a direction vector parameter representing the interaction direction; The wave source energy parameter, the wave source coordinate parameter and the direction vector parameter jointly constitute the interaction parameter.

4. The method of claim 3, wherein: According to the quantified interaction parameters, an independent wave source descriptor is generated for the physical interaction behavior of each player, specifically as follows: Based on the interaction parameters of each player, the wave source energy parameter is assigned to the energy field of the wave source descriptor; The wave source coordinate parameter is assigned to the position field of the wave source descriptor, and the direction vector parameter is normalized and assigned to the direction field of the wave source descriptor; A unique timestamp identifier is assigned to each wave source descriptor to record the time when the physical interaction behavior occurs, and a complete wave source descriptor is obtained.

5. The method of claim 4, wherein: According to the wave source descriptors of all players, wave height data at each vertex of the high-resolution physical grid is calculated in parallel using a graphics processor, specifically as follows: Uploading all vertex coordinates of the high-resolution physical grid and a wave source descriptor of the player to a video memory of a graphics processor, starting an independent parallel thread for each vertex of the high-resolution physical grid by the graphics processor, and calculating a Euclidean distance from a wave source coordinate parameter in the wave source descriptor to the vertex coordinate by the parallel thread; Constructing a wave height attenuation function table, querying the wave height attenuation function table according to the Euclidean distance from the wave source coordinate parameter to the vertex coordinate, and obtaining an energy and an attenuation coefficient of the wave source descriptor; Calculating a wave height contribution value of the wave source descriptor at the vertex according to the energy and the attenuation coefficient of the wave source descriptor, and accumulating and summing up the wave height contribution values of all the wave source descriptors to obtain wave height data at each vertex of the high-resolution physical grid.

6. The method of claim 5, wherein: The wave height data of the high-resolution physical grid is used to calculate a vertex normal vector and a slope value, specifically as follows: Traversing each vertex of the high-resolution physical grid, and using a central difference method to calculate a wave height gradient component in an X direction and a wave height gradient component in a Z direction of the vertex in the high-resolution physical grid; Combining the wave height gradient component in the X direction and the wave height gradient component in the Z direction into a horizontal gradient vector, rotating the horizontal gradient vector by N degrees, and performing normalization processing to obtain the vertex normal vector; Calculating a module length of the horizontal gradient vector to obtain a vertex slope value.

7. The method of claim 6, wherein: The wave height data, the vertex normal vector, and the slope information of the high-resolution physical grid are mapped to a low-resolution water surface rendering grid by interpolation to drive the low-resolution water surface rendering grid to deform, specifically as follows: Traversing each vertex of the low-resolution water surface rendering grid, and determining a projection position of the vertex of the low-resolution water surface rendering grid in the high-resolution physical grid; Finding a set of adjacent vertices surrounding the projection position in the high-resolution physical grid, and performing weighted average interpolation calculation on wave height data of the set of adjacent vertices to obtain a wave height interpolation result of the vertex of the low-resolution water surface rendering grid; Performing weighted average interpolation calculation on a vertex normal vector and a slope value of the set of adjacent vertices to obtain a normal interpolation result and a slope interpolation result of the vertex of the low-resolution water surface rendering grid; Applying the wave height interpolation result as a vertical displacement to a vertical coordinate of the vertex of the low-resolution water surface rendering grid, and storing the normal interpolation result and the slope interpolation result to a data buffer of the low-resolution water surface rendering grid, and when the processing of all the vertices of the low-resolution water surface rendering grid is completed, the geometry of the low-resolution water surface rendering grid deforms.

8. The method of claim 7, wherein: Lighting rendering is performed on the deformed low-resolution water surface rendering grid, specifically as follows: Setting a light source position, a view direction vector, and a light source color attribute in a tsunami pool scene; Traversing each triangular patch of the low-resolution water surface rendering grid, obtaining vertex coordinates and vertex normal data of the triangular patch, For each pixel point covered by the triangular patch, interpolating and calculating a normal direction at the pixel point through the vertex normal data; Calculating a cosine value of an illumination incident angle according to a relative relationship between the pixel point and the light source position; Based on the illumination incident angle, calculating a diffuse reflection light intensity in combination with the normal direction at the pixel point, and calculating a highlight reflection intensity according to the view direction; The final light color of the pixel point is obtained by superimposing the ambient light of the tsunami pool, the diffuse reflection light intensity and the high light reflection intensity, and the final light color is mixed with the base color of the water surface of the tsunami pool to complete the light rendering.

9. The method of claim 8, wherein: The output of the rendered picture to the display device refers to that after the low-resolution water surface rendering grid after completing the light rendering is written into the frame buffer, it is transmitted to the receiving port of the display device through the display interface, the display device decodes and converts the format of the received low-resolution water surface rendering grid, and displays it on the screen.

10. A system for real-time generation of tsunami pool wave based on player interaction, the method for real-time generation of tsunami pool wave based on player interaction according to any one of claims 1 to 9, characterized in that: The method comprises the steps of: a construction module, after collecting the plane geometric size and target resolution of the tsunami pool, constructing a high-resolution physical grid and a low-resolution water surface rendering grid respectively; a collection module collects the physical interaction behavior of the players in the tsunami pool and quantifies it into corresponding interaction parameters; a descriptor module generates an independent wave source descriptor for the physical interaction behavior of each player according to the quantified interaction parameters; a wave height data module uses a graphics processor to calculate the wave height data at each vertex of the high-resolution physical grid in parallel according to the wave source descriptors of all players; a calculation module calculates the vertex normal vector and the slope value according to the wave height data of the high-resolution physical grid; a deformation module maps the wave height data, vertex normal vector and slope information of the high-resolution physical grid to the low-resolution water surface rendering grid through interpolation to drive the low-resolution water surface rendering grid to produce deformation; a display module performs light rendering on the deformed low-resolution water surface rendering grid and outputs the rendered picture to the display device.