Ocean wave simulation method, device and electronic equipment
By obtaining information on wave direction, depth, and coastline, determining the shallow and deep sea areas of the sea surface grid, and gradually attenuating the amplitude, combined with the Gerstner Wave equation, the problem of unrealistic wave simulation in existing technologies is solved, and the natural effect of waves crashing or rolling from far to near is achieved.
Patent Information
- Application Number
- CN202111149880.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-29
- Publication Date
- 2025-09-05
- Estimated Expiration
- 2041-09-29
AI Technical Summary
In the prior art, when simulating ocean waves through wave amplitude, the effect of the waves gradually becoming smaller as they approach the coastline is not realistic enough, resulting in an unnatural ocean wave simulation.
By obtaining the target directional texture map, the coastline position, shallow sea area and deep sea area in the sea surface grid are determined, and the amplitude is gradually attenuated according to the wave direction information to simulate the waves in the shallow sea area and the shore. Combined with the wave direction in the deep sea area, the Gerstner Wave equation is used to calculate the spatial coordinates of the waves to simulate the effect of slapping or rolling from far to near.
A more natural wave simulation is achieved in the game screen, simulating the effect of waves crashing or rolling from far to near, improving the realism of the wave simulation.
Smart Images

Figure CN113902784B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of image processing technology, and particularly relates to an ocean wave simulation method, device, and electronic equipment. Background Art
[0002] With the development of image processing technology, game images are getting closer and closer to real scenes. For example, for games with ocean themes, users hope that the ocean in the game is closer to the real ocean.
[0003] Typically, in game graphics, ocean waves can be simulated based on the Gerstner Wave. A set of Gerstner wave parameters (amplitude, frequency, and wavelength) are defined, and an NxN two-dimensional grid is fed to the GPU (Graphics Processing Unit). The vertex shader that draws this two-dimensional grid calculates the waveform. The greater the number of Gerstner Waves, the more natural and realistic the simulated waves. For shore waves, the amplitude is primarily scaled by the wavelength.
[0004] However, current simulations based on wave amplitude can only simulate the effect of waves gradually becoming smaller as they get closer to the coastline, and the resulting waves are not realistic enough. Summary of the Invention
[0005] The purpose of the embodiments of the present disclosure is to provide a method, device and electronic device for simulating ocean waves, which can solve the problem that ocean waves obtained by simulating wave amplitude are not realistic enough.
[0006] In order to solve the above technical problems, the present disclosure is implemented as follows:
[0007] In a first aspect, an embodiment of the present disclosure provides a method for simulating ocean waves, the method comprising: obtaining a target directional texture map; the target directional texture map comprising ocean wave direction information, sea surface depth information, and coastline information; the target directional texture map being a directional texture map corresponding to a sea surface depth map, and the coastline information indicating the coastline in the sea surface depth map; determining the position of the coastline in an ocean surface grid based on the coastline information; determining shallow sea areas and deep sea areas in an ocean surface grid based on the sea surface depth information; determining initial spatial coordinates of vertices of an ocean surface grid based on the sea surface depth information; gradually attenuating the amplitude to simulate ocean waves in the shallow sea area and the shore based on the wave direction in the shallow sea area and the initial spatial coordinates of the vertices of the shallow sea area in the ocean surface grid, and simulating ocean waves in the deep sea area based on the wave direction in the deep sea area and the initial spatial coordinates of the vertices of the deep sea area in the ocean surface grid.
[0008] In a second aspect, an embodiment of the present disclosure provides a wave simulation device, which includes: an acquisition module, a determination module and a simulation module; the acquisition module is used to acquire a target directional texture map; the target directional texture map includes wave direction information, sea surface depth information and coastline information; the target directional texture map is a directional texture map corresponding to the sea surface depth map, and the coastline information indicates the coastline in the sea surface depth map; the determination module is used to determine the position of the coastline in the sea surface grid based on the coastline information; and is used to determine the shallow sea area and deep sea area in the sea surface grid according to the sea surface depth information, and determine the initial spatial coordinates in the sea surface grid; the simulation module is used to gradually attenuate the amplitude to simulate waves in the shallow sea area and the shore according to the wave direction of the shallow sea area and the initial spatial coordinates of the vertices of the shallow sea area in the sea surface grid, and simulate waves in the deep sea area according to the wave direction of the deep sea area and the initial spatial coordinates of the vertices of the deep sea area in the sea surface grid.
[0009] In a third aspect, an embodiment of the present disclosure provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.
[0010] In a fourth aspect, an embodiment of the present disclosure provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0011] In a fifth aspect, an embodiment of the present disclosure provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the method described in the first aspect.
[0012] In a sixth aspect, an embodiment of the present disclosure provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the steps of the method described in the first aspect.
[0013] In an embodiment of the present disclosure, first, the electronic device can obtain a target directional texture map; the target directional texture map includes wave direction information, sea surface depth information and coastline information; the electronic device can determine the coastline position in the sea surface grid based on the coastline information of the target directional texture map; then the electronic device can determine the shallow sea area and deep sea area in the sea surface grid according to the sea surface depth information, and determine the initial spatial coordinates of the vertices of the sea surface grid; finally, the electronic device can gradually attenuate the amplitude to simulate the waves in the shallow sea area and the shore according to the wave direction of the shallow sea area and the initial spatial coordinates of the vertices of the shallow sea area in the sea surface grid, and simulate the waves in the deep sea area according to the wave direction of the deep sea area and the initial spatial coordinates of the vertices of the deep sea area in the sea surface grid. Since the wave direction information, sea surface depth information and coastline information are all information about real waves in the sea surface depth map, the waves are simulated based on a direction that can accurately represent the actual wave direction. Therefore, compared with the waves that gradually become smaller from far to near based on the amplitude simulation alone, the wave simulation method provided by the embodiment of the present disclosure, combined with the wave direction of the real shallow sea area, can simulate the effect of waves hitting or rolling from far to near, making the simulated waves in virtual scenes such as game screens more natural. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] Figure 1 One of the flow charts of the ocean wave simulation method provided in the embodiment of the present disclosure;
[0015] Figure 2 A schematic diagram of a sea surface grid provided in an embodiment of the present disclosure;
[0016] Figure 3 A schematic diagram of the wave simulation effect provided by an embodiment of the present disclosure;
[0017] Figure 4 The second flowchart of the ocean wave simulation method provided by the embodiment of the present disclosure;
[0018] Figure 5 The third flow chart of the ocean wave simulation method provided in the embodiment of the present disclosure;
[0019] Figure 6 A fourth flow chart of the ocean wave simulation method provided in an embodiment of the present disclosure;
[0020] Figure 7 A schematic diagram of a directional pattern provided by an embodiment of the present disclosure;
[0021] Figure 8 A schematic diagram of a wave direction provided in an embodiment of the present disclosure;
[0022] Figure 9 A schematic diagram of a possible structure of an ocean wave simulation device provided by an embodiment of the present disclosure;
[0023] Figure 10 A possible structural diagram of an electronic device provided by an embodiment of the present disclosure;
[0024] Figure 11 A hardware schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] First, some nouns or terms that appear in the description of the embodiments of this application are explained:
[0026] Virtual Scene
[0027] A virtual scene is displayed (or provided) when an application is running on a terminal or server. Optionally, the virtual scene is a simulation of the real world, a semi-simulation and semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be either a two-dimensional virtual scene or a three-dimensional virtual scene. The virtual environment can be the sky, land, ocean, etc., where the land includes environmental elements such as deserts and cities. Among them, the virtual scene is a scene with complete game logic of virtual objects such as user control. For example, for sandbox 3D shooting games, the virtual scene is a 3D game world for players to control virtual objects to fight. Example virtual scenes may include: mountains, plains, rivers, lakes, oceans, deserts, skies, plants, buildings, and at least one of vehicles. For example, for 2D card games, the virtual scene is a scene for displaying released cards or displaying virtual objects corresponding to cards. Example virtual scenes may include: an arena, a decisive battlefield, or other "field" elements or other elements that can display the status of card battles. For 2D or 3D multiplayer online tactical competitive games, the virtual scene is a 2D or 3D terrain scene for virtual objects to fight. Example virtual scenes may include: canyon-style mountains, routes, rivers, classrooms, tables and chairs, podiums and other elements.
[0028] The following will clearly and completely describe the technical solutions in the embodiments of the present disclosure in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0029] The terms "first", "second", etc. in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects related to each other are in an "or" relationship.
[0030] The wave simulation method in one embodiment of the present disclosure can be run on a local terminal device or a server. When the information processing method is run on a server, the information processing method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0031] In an optional embodiment, various cloud applications can be run under the cloud interaction system, such as cloud games. Taking cloud games as an example, cloud games refer to a gaming method based on cloud computing. In the cloud game operation mode, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the wave simulation method are completed on the cloud game server. The role of the client device is to receive and send data and present the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a mobile terminal, TV, computer, PDA, etc.; but the cloud game server in the cloud is responsible for information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server. The cloud game server runs the game according to the operation instructions, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0032] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present the game screen. The local terminal device is used to interact with the player through a graphical user interface, that is, conventionally downloading and installing the game program through an electronic device and running it. The local terminal device can provide the graphical user interface to the player in a variety of ways, for example, it can be rendered and displayed on the terminal's display screen, or provided to the player through holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present the graphical user interface, the graphical user interface includes the game screen, and the processor is used to run the game, generate the graphical user interface, and control the display of the graphical user interface on the display screen.
[0033] The shore wave simulation method provided by the embodiment of the present disclosure is described in detail below with reference to specific embodiments and their application scenarios in conjunction with the accompanying drawings.
[0034] Figure 1 A schematic diagram of the flow of the ocean wave simulation method provided by the embodiment of the present disclosure is shown in FIG. Figure 1 As shown in , the ocean wave simulation method includes the following S101 to S104:
[0035] S101: The electronic device obtains a target direction texture map.
[0036] The target directional texture map includes wave direction information, sea surface depth information, and coastline information. The target directional texture map is the directional texture map corresponding to the sea surface depth map. The coastline information indicates the coastline in the sea surface depth map. The sea surface depth information indicates the sea surface depth in the sea surface depth map. The wave direction information indicates the wave direction in the sea surface depth map.
[0037] For example, the ocean wave direction information may indicate the direction corresponding to each pixel point of the ocean wave in the ocean surface depth map.
[0038] It should be noted that, in the target directional texture map, the wave direction information, sea surface depth information and coastline information corresponding to each pixel point may be stored based on the world coordinates of each pixel point.
[0039] It can be understood that each sea surface depth map corresponds to a directional texture map. The electronic device can store directional texture maps corresponding to different sea surface depth maps. When simulating waves in a virtual scene, different directional texture maps can be selected to simulate the waves according to the needs of the coastline. The electronic device can be the aforementioned local terminal device or the cloud server in the aforementioned cloud gaming system.
[0040] For example, based on coastlines of different shapes, directional texture maps corresponding to respective sea surface depth maps of a plurality of coastlines of different shapes may be stored.
[0041] S102: The electronic device determines the position of the coastline in the sea surface grid based on the coastline information in the target direction texture map.
[0042] It is understood that the coastline information in the target directional texture map can indicate the location of the coastline. When simulating ocean waves, the electronic device can determine the location of the coastline in the sea surface grid based on the coastline location indicated in the target directional texture map.
[0043] Figure 2 This is a schematic diagram of a sea surface grid provided by an embodiment of the present disclosure. Figure 2As shown in (a) in the figure, the sea surface grid is composed of grid line segments tiled in the X and Z directions. The position of the coastline is shown in the sea surface grid, and the curve L1 is the position of the coastline in the sea surface grid, and does not involve the positions of the various vertices of the waves.
[0044] It should be noted that when simulating ocean waves, one can first use a basic ocean surface grid (i.e., the heights of each vertex in the ocean surface grid are the same) and then adjust the world coordinates of each vertex in the ocean surface grid over time to simulate ocean waves.
[0045] S103: The electronic device determines the shallow sea area and the deep sea area in the sea surface grid according to the sea surface depth information in the target direction texture map, and determines the initial spatial coordinates of the vertices of the sea surface grid.
[0046] It should be noted that the target directional texture map may indicate the depth information of each pixel point of the sea surface in the corresponding sea surface depth map.
[0047] For example, the electronic device may determine the deep sea area and shallow sea area mapped to the sea surface grid based on the sea surface depth information corresponding to each pixel point of the sea surface in the target direction texture image.
[0048] Combine Figure 2 As shown in (a), the area between L1 and L2 is the shallow sea area, the area below L1 is the non-sea surface area (land, beach, island, etc.), and the area above L2 is the deep sea area.
[0049] It should be noted that when constructing the sea surface mesh, the initial spatial coordinates of each vertex in the sea surface mesh can be determined based on the world coordinates of each pixel point in the target direction texture map to construct an initial sea surface wave.
[0050] Exemplarily, the initial space coordinates of each vertex are determined according to the Gerstner Wave equation and the world coordinates of the pixel point corresponding to each vertex in the target directional texture map.
[0051] For example, Figure 2 As shown in (b), the initial spatial coordinates of each vertex corresponding to the sea water in the sea surface grid are different.
[0052] It should be noted that the grids in the seawater grid may be rectangular, triangular, or in other shapes, and the embodiments of the present disclosure do not specifically limit this.
[0053] S104. The electronic device gradually attenuates the amplitude to simulate waves in the shallow sea area and the shore according to the wave direction in the shallow sea area and the initial spatial coordinates of the vertices in the shallow sea area in the sea surface grid, and simulates waves in the deep sea area according to the wave direction in the deep sea area and the initial spatial coordinates of the vertices in the deep sea area in the sea surface grid.
[0054] It can be understood that in the embodiment of the present disclosure, when simulating a shallow sea area, the amplitude can be gradually attenuated based on the wave direction of the shallow sea area indicated in the target direction texture map, combined with the initial spatial coordinates of the vertices of the shallow sea area in the sea surface grid, so as to simulate the real shallow sea area and the waves on the shore that beat towards the coastline from far to near.
[0055] When simulating deep sea areas, the sea surface of the deep sea area that fluctuates up and down in the vertical direction and fluctuates back and forth with a small amplitude in the horizontal direction can be simulated based on the wave direction of the deep sea area indicated in the target direction texture map and the initial spatial coordinates of the vertices of the deep sea area in the sea surface grid.
[0056] Figure 3 A schematic diagram of a wave simulation effect provided by an embodiment of the present disclosure is shown in FIG. Figure 3 As shown in , the coastline is a right-angled shape. The closer you get to the coastline, the more you can see that the waves are hitting in the direction of the right angle.
[0057] It can be understood that in the embodiment of the present disclosure, the electronic device can simulate the waves in the virtual scene by using the wave direction indicated in the target direction texture map (that is, the wave direction corresponding to each pixel point in the sea surface depth map).
[0058] Exemplarily, the electronic device constructs a sea surface grid according to basic waveform information based on coastline information in the target direction texture map.
[0059] It should be noted that, when simulating shore waves, the shore waves may be simulated based on at least one Gerstner wave.
[0060] The at least one Gerstner wave has at least one different amplitude, initial phase, or angular velocity, that is, the wave superposition is performed using an expression of at least one Gerstner wave.
[0061] Optionally, wave parameters in the at least one Gerstner wave may be configurable.
[0062] It can be understood that based on the initial spatial coordinates of each mesh vertex (i.e., the spatial coordinates after the world coordinates have been transformed) and the wave direction corresponding to each vertex, the offset of each mesh vertex at each time is determined as time t changes, i.e., the spatial coordinates of the mesh vertex after the jump. The new spatial coordinate value of each mesh vertex is determined based on the spatial coordinates of each mesh vertex at the previous moment and the calculated offset.
[0063] The spatial coordinates of each vertex in the x, y, and z directions oscillate periodically within a small range. The spatial coordinates in each direction are the result of the superposition of multiple different Gerstner waves.
[0064] For example, the electronic device can simulate the waves based on the definition of 3D space in the Gerstner Wave equation, the relationship between the water surface depth and the wave parameters, and the target direction texture map, and can obtain the waves hitting the shore from far to near.
[0065] Specifically, we first agree on the naming of basic parameters: amplitude is denoted as a; phase is denoted as Φ; wavelength is denoted as λ, which represents the distance between two wave peaks or troughs; period is denoted as T, which represents an event in which a point passes through two wave peaks or troughs, frequency is denoted as f, f = 1 / T; wave transmission speed is denoted as c, c = λ / T; angular velocity is denoted as ω, ω = 2π / T = 2πf; wave number is denoted as k, k = 2π / λ ≥ c = ω / k.
[0066] Specifically, the definition of 3D space in Gerstner wave is as follows:
[0067]
[0068]
[0069] in, Represents the coordinates of a point on the horizontal plane (which can correspond to the world coordinates of the pixel point in the target direction texture map). Indicates the sea level altitude of the point. is a vector, The direction of represents the direction of the wave indicated by the target direction texture map, The length (length) represents the wave number. represents the horizontal coordinate after the Gerstner wave transformation, Indicates the height after Gerstner wave transformation.
[0070] It should be noted that, in the embodiments of the present disclosure, Including the wave direction of each pixel point in the sea surface depth map recorded in the target direction texture map.
[0071] The relationship between water surface depth and wave parameters can be expressed by the following formula (3):
[0072]
[0073] Wherein, tanh(x) is the hyperbolic tangent function. When x>π, tanh(x) is approximately equal to 1. When x>π / 10, tanh(x) is approximately equal to x. g represents the acceleration due to gravity.
[0074] When d / λ>1 / 2, it is recorded as deep sea; when d / λ>1 / 20, it is recorded as shallow sea. In the case of deep sea, c=gT / 2π, c 2 =g / k, Therefore, when k (wave number) is known, the angular velocity ω can be calculated. When simulating ocean waves, the amplitude and random phase are set to obtain wave parameters close to real ocean waves.
[0075] It should be noted that in the disclosed embodiments, when simulating shore waves (waves), when d / λ>1 / 2, it indicates deep sea, otherwise it is recorded as reaching the shallow sea area. In the shallow sea area, the wave direction corresponding to the wave depth map is combined with the gradually weakening amplitude to simulate the shape of the shore wave.
[0076] The wave simulation method provided by the embodiment of the present disclosure is as follows: first, the electronic device can obtain a target direction texture map; the target direction texture map includes wave direction information, sea surface depth information and coastline information; the electronic device can determine the coastline position in the sea surface grid based on the coastline information of the target direction texture map; then the electronic device can determine the shallow sea area and deep sea area in the sea surface grid according to the sea surface depth information, and determine the initial spatial coordinates of the vertices of the sea surface grid; finally, the electronic device can gradually attenuate the amplitude to simulate the waves in the shallow sea area and the shore according to the wave direction of the shallow sea area and the initial spatial coordinates of the vertices of the shallow sea area in the sea surface grid, and simulate the waves in the deep sea area according to the wave direction of the deep sea area and the initial spatial coordinates of the vertices of the deep sea area found in the sea surface grid. Since the wave direction information, sea surface depth information and coastline information are all information about real waves in the sea surface depth map, the waves are simulated based on a direction that can accurately represent the actual wave direction. Therefore, compared with the waves that gradually become smaller from far to near based on the amplitude simulation alone, the wave simulation method provided by the embodiment of the present disclosure, combined with the wave direction of the real shallow sea area, can simulate the effect of waves hitting or rolling from far to near, making the simulated waves in virtual scenes such as game screens more natural.
[0077] Optionally, combined Figure 4 In the ocean wave simulation method provided by the embodiment of the present disclosure, the target directional texture map can be executed through the following steps S201 and S202:
[0078] S201. The electronic device obtains a sea surface depth map.
[0079] For example, a sea surface image including a coastline acquired by a depth camera may be input into the electronic device, where the sea surface image includes depth information of the sea surface.
[0080] It should be noted that the sea surface including the land can be photographed from above through an orthographic camera. The height of each pixel recording the world coordinate can be recorded as the sea surface depth. In the Vertex shader for sea surface rendering, the world coordinate height of each pixel is used, so the sea surface depth = sea surface height - world coordinate height.
[0081] S202: The electronic device generates a target direction texture map corresponding to the sea surface depth map according to the sea surface depth map.
[0082] Based on this scheme, a directional texture map corresponding to the actual sea surface depth map can be generated by obtaining the actual sea surface depth map. The texture information in the directional texture map, such as wave direction information, coastline information, depth information, etc., are all information that can represent real waves. Therefore, by simulating waves based on the target directional texture map obtained in this way, more realistic waves can be simulated.
[0083] Optionally, in the ocean wave simulation method provided in the embodiment of the present disclosure, after the above-mentioned S201, the following S203 may be further included:
[0084] S203: The electronic device traverses the depth values of the pixels in the sea surface depth map according to the sea surface height values corresponding to the sea surface depth map, and marks the coastline in the sea surface depth map.
[0085] It can be understood that the electronic device can determine the height of the sea surface in the sea surface depth map based on the sea surface depth map.
[0086] Exemplarily, the above-mentioned S203 may be specifically implemented in the following manner: the electronic device marks pixel points having depth values equal to the sea surface height as pixel points on the coastline in the sea surface depth map.
[0087] Among them, if the depth value of the pixel point is less than the sea surface height value, it means that it is below the water surface; if the depth value of the pixel point is greater than the sea surface height value, it means that it is below the water surface.
[0088] Optionally, combined Figure 4 ,like Figure 5 As shown, in the ocean wave simulation method provided by the embodiment of the present disclosure, the above-mentioned S202 may specifically include the following S21:
[0089] S21. The electronic device obtains a gradient of the sea surface depth map according to the sea surface depth map.
[0090] The gradient of the sea surface depth map indicates the wave direction corresponding to each pixel point of the sea surface depth map.
[0091] Exemplarily, the gradient of the sea surface depth map indicates the gradient of each pixel in the sea surface depth map.
[0092] Based on this solution, in order to simulate more realistic and natural waves, that is, to simulate waves that gradually become smaller and smaller from far to near and hit each other, the above method can be used to obtain a wave direction close to the actual one, thereby achieving an effect of waves rolling close to the actual one.
[0093] Optionally, combined Figure 5 ,like Figure 6 As shown, in the ocean wave simulation method provided by the embodiment of the present disclosure, the gradient of the sea surface depth map can be obtained in two different ways.
[0094] In the first way, the above S21 can be executed by the following S21a:
[0095] S21a. The electronic device uses a sober operator to filter the sea surface depth map and obtain a gradient of the sea surface depth map.
[0096] For example, the sober operator includes two 3*3 matrices, representing the horizontal and vertical directions respectively. The electronic device can perform convolution processing on the sober operator and the sea depth map. The gradients in the x-direction and y-direction after filtering by the sober operator are as follows: x and G y .G x and G y These are the two components of the direction vector.
[0097] in, A represents the matrix corresponding to each pixel point of the sea surface depth map.
[0098] It can be understood that this processing method has low algorithm complexity. Based on the gradient obtained by this method, that is, the direction of the waves at each pixel point, when simulating waves in a virtual scene, real waves hitting the shore from far to near can be quickly simulated.
[0099] In the second embodiment, the above-mentioned S21 can be executed through the following S21b to S21d:
[0100] S21b. The electronic device calculates the pixel distance between each pixel point in the sea surface depth map and the coastline.
[0101] S21c. The electronic device obtains an SDF (Signed Distance Field) map according to the pixel distance between each pixel point and the coastline.
[0102] It is understood that in the embodiment of the present disclosure, the SDF map defines the distance from each pixel in the sea depth map to the coastline. The SDF map stores vector information and can handle the zooming in and out of the waveform.
[0103] Exemplarily, the above-mentioned S21c can be specifically implemented in the following manner: the electronic device obtains the SDF map according to the relationship between the distance between each pixel point and the coastline and the sea level height.
[0104] If the distance between the pixel point and the coastline is greater than the sea level, the pixel point is marked as a positive number; if the distance between the pixel point and the coastline is less than the sea level, the pixel point is marked as a negative number.
[0105] S21d. The electronic device uses a sober operator to filter the SDF graph to obtain a gradient corresponding to the SDF graph.
[0106] The gradient corresponding to the SDF map indicates the wave direction corresponding to the sea surface depth map.
[0107] Based on this solution, electronic devices can calculate the pixel distance between pixel points and the coastline based on the marked coastline in the sea surface depth map to obtain an SDF map. The SDF map is then filtered according to the sober operator to obtain a wave direction that is closer to the real wave direction, with less direction jumps, and the simulated waves are more natural.
[0108] It should be noted that when performing ocean wave simulation, for each vertex in the ocean surface grid, the direction information of a corresponding pixel in the SDF graph can be sampled. Each pixel in the SDF graph can include world coordinates and can be spatially transformed to a vertex in the ocean surface grid.
[0109] Optionally, after the above S203 , the electronic device may further calculate the wave direction of the Gerstner Wave of the coastline during the vertex shader rendering of the sea surface; wherein the wave direction of the Gerstner Wave of the coastline is used to simulate shore waves.
[0110] Based on this solution, electronic devices can determine the direction of the Gerstner Wave of the coastline based on input parameters when rendering the vertex shader of the sea surface during the process of simulating ocean waves. Combined with the wave direction and wave number of the coastline, they can simulate the effect of natural waves crashing on the shore from far to near.
[0111] Optionally, after the above step S21d, the electronic device may further store a direction texture of the sea surface depth map, wherein the direction texture includes the direction of each pixel point in the sea surface depth map, the distance of each pixel point from the coastline, and the sea surface depth of each pixel point.
[0112] It should be noted that after S21b to S21d above, the wave direction is obtained. The direction information only occupies two channels, and the remaining channels can record the distance to the coastline and the depth to the sea level. Define xy to represent the direction, z to represent the distance of the pixel from the coastline, and w to represent the depth to the sea level. The texture corresponding to these four channels is recorded as the above-mentioned direction map.
[0113] For example, Figure 7 Schematic diagram of the directional diagram provided by the embodiment of the present disclosure. Figure 7 As shown in , the electronic device can obtain the direction of the waves, the distance between the pixel point and the coastline, and the depth of the sea surface based on the directional pattern sampling. The directional pattern can also show the shape of the island and the shape of the coastline.
[0114] It should be noted that the disclosed embodiments define the concept of a directional map. After obtaining the direction of the waves using the aforementioned method, the directional information of each pixel can be recorded in the X and Y channels of the directional map, the distance of each pixel from the coastline can be recorded in the Z channel of the directional map, and the sea depth of each pixel can be recorded in the W channel of the directional map. This allows electronic devices to model ocean waves based on this directional map.
[0115] Based on this solution, electronic devices can store a directional map indicating texture information such as the direction of waves, the distance of waves from the coastline, and the depth of waves. In a virtual scene with wave scenes, natural and more realistic waves can be quickly simulated based on the directional map, achieving the effect of waves gradually hitting the shore from far to near.
[0116] For example, in the wave simulation method provided by the embodiments of the present disclosure, the electronic device simulates shore waves by superimposing four channels of signals based on the Gerstner Wave of the coastline. The four-channel signals include the wave direction of each pixel (i.e., wave direction information), the distance of each pixel from the coastline (i.e., coastline information), and the sea surface depth of each pixel (i.e., depth information).
[0117] For example, the X and Y channels indicate the direction of the waves, the Z channel indicates the distance of the pixel from the coastline, and the W channel indicates the depth of the sea surface. Alternatively, the R and G channels indicate the direction of the waves, the B channel indicates the distance of the pixel from the coastline, and the A channel indicates the depth of the sea surface.
[0118] It can be understood that when simulating ocean waves, the ocean waves can be simulated based on the information of the above four channels. When simulating shore waves, since the signal of the channel of the ocean wave direction is obtained based on the directional texture map corresponding to the real sea surface depth map, the real direction of the ocean wave can be accurately represented. Therefore, the simulated ocean waves are closer to the real ocean waves. Especially in the case of simulating shore waves, the effect of beating from far to near can be simulated.
[0119] The following is a comparison and explanation of the method of simulating ocean waves in related technologies and the method of simulating ocean waves in the embodiment of the present disclosure.
[0120] In related technologies, the key processing pseudo code in the Vertex shader is as follows:
[0121] / / _shallowWeight is a weakening parameter. The closer the value is to 1, the smaller the amplitude of shallow sea waves will be.
[0122] / / depth is the sea surface depth
[0123] half depth = saturate (2.0h * depth / waveLength); / / Depth greater than 2 times the wavelength is considered deep sea
[0124] half deepWeight=1.0h-_shallowWeight;
[0125] / / Calculate weight to scale the amplitude of the wave
[0126] half weight=saturate(_shallowWeight*deep+deepWeight);
[0127] It should be noted that this method is compatible with the amplitude of the waves and can simulate the effect of waves gradually becoming smaller as they get closer to the coastline, but it cannot simulate the effect of waves crashing from a distance.
[0128] In this disclosed embodiment, parameters such as the wave number and period are defined on the CPU. The direction is then read from the XY channels of the directional texture. The depth in the W channel is used to calculate the phase to simulate randomness. The distance from the coastline in the Z channel is used to gradually reduce the amplitude of the modulus. Ultimately, realistic shore waves can be simulated.
[0129] First, the uv of the direction texture (directionTexture) is calculated according to the formula uv = worldpos.xz / sdfrange (world coordinates of sea level / range covered by directionTexture), that is, the world coordinates are converted to the uv of the direction texture, which facilitates the sampling of coastal wave direction, depth and other data.
[0130] After obtaining the UV of the directional map, the wave direction (wave direction), the distance between the pixel point and the coastline, and the sea surface depth (vertical depth of the sea surface) are obtained according to the UV sampling of the directional map.
[0131] After obtaining the wave direction (wave direction), the offset vector of each mesh vertex is calculated according to the Gerstner Wave equation and
[0132] in,
[0133] in, k represents the wave number, waveDir represents the wave direction, T represents the wave period, t represents the game time, and phiScale represents the phase scaling (larger values indicate more drastic phase changes with depth).
[0134] After obtaining the offset vector corresponding to each mesh vertex, the world coordinates of each mesh vertex are obtained. This simulates real ocean waves.
[0135] The following is a pseudo code provided in an embodiment of the present disclosure.
[0136]
[0137]
[0138] For example, Figure 8 A schematic diagram of a wave direction provided in an embodiment of the present disclosure, such as Figure 8 As shown in (a) in , if the coastline is a square, the direction of the waves can be towards the square, such as Figure 8 As shown in (b), if the coastline is an ellipse, the direction of the waves can be in any direction toward the center of the ellipse.
[0139] It should be noted that in the embodiment of the present disclosure, the electronic device can combine the direction of the waves and the reduction of the amplitude with the shape of the coastline to simulate the waves hitting the shore when the waves approach the shore.
[0140] It should be noted that the ocean wave simulation method provided in the embodiments of the present disclosure can be executed by an ocean wave simulation device or a control module within the ocean wave simulation device that is used to execute the method. The embodiments of the present disclosure use an ocean wave simulation device executing the ocean wave simulation method as an example to illustrate the ocean wave simulation device provided in the embodiments of the present disclosure.
[0141] Optionally, Figure 9 An ocean wave simulation device 900 provided in an embodiment of the present disclosure includes: an acquisition module 901, a determination module 902, and a simulation module 903; the acquisition module 901 is used to acquire a target directional texture map; the target directional texture map includes wave direction information, sea surface depth information, and coastline information; the target directional texture map is a directional texture map corresponding to a sea surface depth map, and the coastline information indicates the coastline in the sea surface depth map; the determination module 902 is used to determine the position of the coastline in the ocean surface grid based on the coastline information; and is used to determine the shallow sea area and deep sea area in the ocean surface grid according to the sea surface depth information, and determine the initial spatial coordinates of the vertices of the ocean surface grid; the simulation module 903 is used to gradually attenuate the amplitude according to the wave direction of the shallow sea area and the initial spatial coordinates of the vertices of the shallow sea area in the ocean surface grid to simulate waves in the shallow sea area and the shore, and to simulate waves in the deep sea area according to the wave direction of the deep sea area and the initial spatial coordinates of the vertices of the deep sea area in the ocean surface grid.
[0142] Optionally, the wave simulation device may further include: a generation module; an acquisition module, further configured to acquire the sea surface depth map; and a generation module, configured to generate a target direction texture map corresponding to the sea surface depth map based on the sea surface depth map acquired by the acquisition module.
[0143] Optionally, the generating module is specifically configured to: obtain a gradient of the sea surface depth map according to the sea surface depth map obtained by the obtaining module; wherein the gradient of the sea surface depth map indicates a wave direction corresponding to the sea surface depth map.
[0144] Optionally, the generating module is specifically configured to: filter the sea surface depth map using a sober operator to obtain a gradient of the sea surface depth map.
[0145] Optionally, the wave simulation device may further include: a marking module; the marking module is used to traverse the depth values of the pixel points of the sea surface depth map according to the sea surface height value corresponding to the sea surface depth map, and mark the coastline in the sea surface depth map.
[0146] Optionally, the generating module is specifically configured to mark pixel points having depth values equal to the sea surface height as pixel points on the coastline in the sea surface depth map.
[0147] Optionally, the generation module is specifically used to: calculate the pixel distance between each pixel point in the sea surface depth map and the coastline; obtain an SDF map based on the pixel distance between each pixel point and the coastline; use a sober operator to filter the SDF map to obtain a gradient corresponding to the SDF map; wherein the gradient corresponding to the SDF map indicates the wave direction corresponding to the sea surface depth map.
[0148] Optionally, the generation module is specifically used to: obtain an SDF map based on the relationship between the distance between each pixel point and the coastline and the sea level height; wherein, if the distance between the pixel point and the coastline is greater than the sea level height, the pixel point is marked as a positive number; if the distance between the pixel point and the coastline is less than the sea level height, the pixel point is marked as a negative number.
[0149] Optionally, the sea surface simulation device further includes: a storage module, which is used to store the target directional texture map of the sea surface depth map after the acquisition module uses the sober operator to filter the SDF map and obtain the gradient corresponding to the SDF map. The target directional texture map includes the direction of each pixel point in the sea surface depth map, the distance of each pixel point from the coastline, and the sea surface depth of each pixel point.
[0150] An embodiment of the present disclosure provides a wave simulation device. First, the electronic device can obtain a target directional texture map; the target directional texture map includes wave direction information, sea surface depth information and coastline information; the electronic device can determine the coastline position in the sea surface grid based on the coastline information of the target directional texture map; then the electronic device can determine the shallow sea area and deep sea area in the sea surface grid according to the sea surface depth information, and determine the initial spatial coordinates of the vertices of the sea surface grid; finally, the electronic device can gradually attenuate the amplitude to simulate waves in the shallow sea area and the shore according to the wave direction of the shallow sea area and the initial spatial coordinates of the vertices of the shallow sea area in the sea surface grid, and simulate waves in the deep sea area according to the wave direction of the deep sea area and the initial spatial coordinates of the vertices of the deep sea area in the sea surface grid. Since the wave direction information, sea surface depth information and coastline information are all information about real waves in the sea surface depth map, the waves are simulated based on a direction that can accurately represent the actual wave direction. Therefore, compared with the waves that gradually become smaller from far to near based on the amplitude simulation alone, the wave simulation method provided by the embodiment of the present disclosure, combined with the wave direction of the real shallow sea area, can simulate the effect of waves hitting or rolling from far to near, making the simulated waves in virtual scenes such as game screens more natural.
[0151] The wave simulation device in the embodiments of the present disclosure can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, a UMPC (ultra-mobile personal computer), a netbook, or a PDA (personal digital assistant), etc. The non-mobile electronic device can be a server, a NAS (Network Attached Storage), a PC (personal computer), a TV (television), an ATM, or an kiosks, etc., which are not specifically limited in the embodiments of the present disclosure.
[0152] The wave simulation device in the embodiment of the present disclosure may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment.
[0153] The device provided by the embodiment of the present disclosure can achieve Figures 1 to 8 To avoid repetition, the various processes implemented in the method embodiment are not described here.
[0154] Alternatively, as Figure 10 As shown, the embodiment of the present disclosure further provides an electronic device 1000, including a processor 1001, a memory 1002, and a program or instruction stored in the memory 1002 and executable on the processor 1001. When the program or instruction is executed by the processor 1001, each process of the above-mentioned wave simulation method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0155] It should be noted that the electronic devices in the embodiments of the present disclosure include the mobile electronic devices and non-mobile electronic devices mentioned above.
[0156] Figure 11 A schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present disclosure.
[0157] The electronic device 1100 includes but is not limited to components such as a radio frequency unit 1101 , a network module 1102 , an audio output unit 1103 , an input unit 1104 , a sensor 1105 , a display unit 1106 , a user input unit 1107 , an interface unit 1108 , a memory 1109 , and a processor 1110 .
[0158] Those skilled in the art will understand that the electronic device 1100 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1110 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.
[0159] An embodiment of the present disclosure provides an electronic device. First, the electronic device can obtain a target directional texture map; the target directional texture map includes wave direction information, sea surface depth information and coastline information; the electronic device can determine the coastline position in the sea surface grid based on the coastline information of the target directional texture map; then the electronic device can determine the shallow sea area and deep sea area in the sea surface grid according to the sea surface depth information, and determine the initial spatial coordinates of the vertices of the sea surface grid; finally, the electronic device can gradually attenuate the amplitude to simulate waves in the shallow sea area and the shore according to the wave direction of the shallow sea area and the initial spatial coordinates of the vertices of the shallow sea area in the sea surface grid, and simulate waves in the deep sea area according to the wave direction of the deep sea area and the initial spatial coordinates of the vertices of the deep sea area found in the sea surface grid. Since the wave direction information, sea surface depth information and coastline information are all information about real waves in the sea surface depth map, the waves are simulated based on a direction that can accurately represent the actual wave direction. Therefore, compared with the waves that gradually become smaller from far to near based on the amplitude simulation alone, the wave simulation method provided by the embodiment of the present disclosure, combined with the wave direction of the real shallow sea area, can simulate the effect of waves hitting or rolling from far to near, making the simulated waves in virtual scenes such as game screens more natural.
[0160] It should be understood that in the embodiment of the present disclosure, the input unit 1104 may include a GPU (Graphics Processing Unit) 1141 and a microphone 1142, and the graphics processor 1141 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1106 may include a display panel 1161, and the display panel 1161 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes a touch panel 1171 and other input devices 1172. The touch panel 1171 is also called a touch screen. The touch panel 1171 may include two parts: a touch detection device and a touch controller. Other input devices 1172 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here. The memory 1109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understood that the modem processor may not be integrated into the processor 1110.
[0161] The embodiment of the present disclosure also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned wave simulation method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0162] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer-readable storage medium, such as a computer ROM (Read-Only Memory), RAM (Random Access Memory), a magnetic disk, or an optical disk.
[0163] The present disclosure further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned wave simulation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0164] It should be understood that the chip mentioned in the embodiments of the present disclosure can also be called a system-level chip, a system chip, a chip system, or a system-on-chip chip, etc.
[0165] The embodiment of the present disclosure provides a computer program product containing instructions. When the computer program product is run on a computer, it enables the computer to execute the various processes of the above-mentioned wave simulation method embodiment and achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0166] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0167] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.
[0168] The embodiments of the present disclosure are described above in conjunction with the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present disclosure, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present disclosure and the claims, all of which are protected by the present disclosure.
Claims
1. A method for simulating ocean waves, characterized in that: The method comprises: Obtaining a sea surface depth map; generating a target directional texture map corresponding to the sea surface depth map based on the sea surface depth map; wherein generating the target directional texture map corresponding to the sea surface depth map based on the sea surface depth map includes: obtaining a gradient of the sea surface depth map based on the sea surface depth map; the gradient of the sea surface depth map indicates a wave direction corresponding to each pixel point of the sea surface depth map; obtaining the gradient of the sea surface depth map based on the sea surface depth map includes: filtering the sea surface depth map using a Sobel operator to obtain the gradient of the sea surface depth map; Acquire the target directional texture map; the target directional texture map includes wave direction information, sea surface depth information, and coastline information; the target directional texture map is a directional texture map corresponding to the sea surface depth map, and the coastline information indicates the coastline in the sea surface depth map; Based on the coastline information, determining the coastline position in the sea surface grid; Determining shallow sea areas and deep sea areas in the sea surface grid according to the sea surface depth information, and determining initial spatial coordinates of vertices of the sea surface grid; According to the direction of the waves in the shallow sea area and the initial spatial coordinates of the vertices of the shallow sea area in the sea surface grid, the amplitude is gradually attenuated to simulate the waves in the shallow sea area and the shore, and according to the direction of the waves in the deep sea area and the initial spatial coordinates of the vertices of the deep sea area in the sea surface grid, the waves in the deep sea area are simulated.
2. The method according to claim 1, characterized in that After obtaining the sea surface depth map, the method further includes: According to the sea surface height value corresponding to the sea surface depth map, the depth values of the pixel points of the sea surface depth map are traversed to mark the coastline in the sea surface depth map.
3. The method according to claim 2, characterized in that The step of traversing the depth values of the pixels of the sea surface depth map according to the sea surface height values corresponding to the sea surface depth map and marking the coastline in the sea surface depth map includes: Pixel points whose depth values are equal to the sea surface height are marked as pixel points on the coastline in the sea surface depth map.
4. The method according to claim 2, characterized in that The step of obtaining the gradient of the sea surface depth map according to the sea surface depth map includes: Calculating the pixel distance between each pixel point in the sea surface depth map and the coastline; Obtaining a signed distance field (SDF) map based on the pixel distance between each pixel point and the coastline; Using the Sobel operator to filter the SDF graph to obtain the gradient corresponding to the SDF graph; The gradient corresponding to the SDF map indicates the direction of the waves corresponding to each pixel point in the sea surface depth map.
5. The method according to claim 4, characterized in that The obtaining of the SDF map according to the pixel distance between each pixel point and the coastline includes: Obtain the SDF map based on the distance between each pixel and the coastline and the relationship between the distance and the sea level height; If the distance between the pixel point and the coastline is greater than the sea level, the pixel point is marked as a positive number; if the distance between the pixel point and the coastline is less than the sea level, the pixel point is marked as a negative number.
6. A wave simulation device, characterized in that: The ocean wave simulation device comprises: an acquisition module, a determination module, and a simulation module; The acquisition module is configured to acquire a sea surface depth map; generate a target directional texture map corresponding to the sea surface depth map based on the sea surface depth map; wherein generating the target directional texture map corresponding to the sea surface depth map based on the sea surface depth map includes: acquiring a gradient of the sea surface depth map based on the sea surface depth map; the gradient of the sea surface depth map indicates the direction of waves corresponding to each pixel point of the sea surface depth map; and acquiring the gradient of the sea surface depth map based on the sea surface depth map includes: filtering the sea surface depth map using a Sobel operator to acquire the gradient of the sea surface depth map; Acquire the target directional texture map; the target directional texture map includes wave direction information, sea surface depth information, and coastline information; the target directional texture map is a directional texture map corresponding to the sea surface depth map, and the coastline information indicates the coastline in the sea surface depth map; The determination module is configured to determine the location of the coastline in the sea surface grid based on the coastline information; and to determine the shallow sea area and the deep sea area in the sea surface grid based on the sea surface depth information, and to determine the initial spatial coordinates in the sea surface grid; The simulation module is used to gradually attenuate the amplitude to simulate the waves in the shallow sea area and the shore according to the wave direction of the shallow sea area and the initial spatial coordinates of the vertices of the shallow sea area in the sea surface grid, and to simulate the waves in the deep sea area according to the wave direction of the deep sea area and the initial spatial coordinates of the vertices of the deep sea area in the sea surface grid.
7. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the ocean wave simulation method according to any one of claims 1 to 5.
8. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the ocean wave simulation method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Image processing method, user equipment and system
CN105894560A