Sea surface environment simulation method and device, electronic equipment, storage medium and program

By establishing a sea surface mesh model and combining it with rendering processing of viewpoint parameters and real environment data, the problem of insufficient adaptability of sea surface features in existing marine simulation scenarios has been solved, achieving accurate restoration and improved reliability of sea surface environment simulation.

CN121837531BActive Publication Date: 2026-06-26CHINA STATE SHIPBUILDING CORP NO 707 RES INST

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA STATE SHIPBUILDING CORP NO 707 RES INST
Filing Date
2026-03-13
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

Existing methods for constructing marine simulation scenarios cannot accurately reproduce the diverse sea surface characteristics under different sea areas, times, and seasons, resulting in insufficient adaptability.

Method used

By establishing a sea surface grid model of the target sea area, and performing precision processing on the hierarchical display data model of the sea surface network according to the target perspective parameters, and combining it with real sea environment data to perform wave rendering and color rendering, a simulation model of the target sea surface is generated.

Benefits of technology

It achieves accurate restoration of the sea surface characteristics of the target sea area, improving the accuracy and reliability of sea surface environment simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121837531B_ABST
    Figure CN121837531B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a kind of sea surface environment simulation method, device, electronic equipment, storage medium and program, wherein, method includes: the sea surface grid model of target sea area is established;According to the sea surface grid model of the target sea area, the sea surface network hierarchical display data model corresponding to the sea surface grid model is established;According to target view angle parameter, the sea surface network hierarchical display data model is carried out precision processing, and target sea surface network hierarchical display data model is obtained;According to the target sea surface network hierarchical display data model, the initial sea surface simulation model of the target sea area is determined;According to the real sea area environment data of the target sea area, the initial sea surface simulation model of the target sea area is carried out sea wave rendering and color rendering, and the target sea surface simulation model of the target sea area is generated.The technical scheme of the embodiment of the present application can accurately restore the sea surface features of target sea area, improve the precision and reliability of sea surface environment simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of electronic charts and three-dimensional simulation technology, and in particular to a method, apparatus, electronic device, storage medium and program for simulating the sea surface environment. Background Technology

[0002] Ocean scenes possess highly random natural attributes, which places high demands on the accuracy and realism of simulations. In existing ocean simulation scene construction, technicians typically simulate sea surface features by simply adjusting lighting model parameters. This method lacks adaptability and cannot meet the need for accurate reproduction of diverse sea surface features in different sea areas, at different times, and in different seasons. Summary of the Invention

[0003] This invention provides a method, apparatus, electronic device, storage medium, and program for simulating the marine environment, which can accurately reproduce the marine surface characteristics of a target sea area and improve the accuracy and reliability of marine environment simulation.

[0004] According to one aspect of the present invention, a method for simulating a sea surface environment is provided, comprising:

[0005] Establish a sea surface grid model for the target sea area;

[0006] Establish a hierarchical display data model of the sea surface network corresponding to the sea surface grid model based on the sea surface grid model of the target sea area;

[0007] The target sea surface network hierarchical display data model is obtained by performing precision processing on the target viewpoint parameters;

[0008] The initial sea surface simulation model for the target sea area is determined based on the target sea surface network hierarchical display data model;

[0009] Based on the real marine environment data of the target sea area, wave rendering and color rendering are performed on the initial sea surface simulation model of the target sea area to generate the target sea surface simulation model of the target sea area.

[0010] According to another aspect of the present invention, a marine environment simulation device is provided, comprising:

[0011] The sea surface grid model building module is used to create a sea surface grid model for the target sea area.

[0012] The sea surface network hierarchical display data model construction module is used to build a sea surface network hierarchical display data model corresponding to the sea surface grid model based on the sea surface grid model of the target sea area;

[0013] The target sea surface network hierarchical display data model determination module is used to perform accuracy processing on the sea surface network hierarchical display data model according to the target view parameters to obtain the target sea surface network hierarchical display data model.

[0014] The initial sea surface simulation model determination module is used to determine the initial sea surface simulation model of the target sea area based on the target sea surface network hierarchical display data model;

[0015] The target sea surface simulation model generation module is used to perform wave rendering and color rendering on the initial sea surface simulation model of the target sea area based on the real sea environment data of the target sea area, and generate the target sea surface simulation model of the target sea area.

[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0017] At least one processor; and

[0018] A memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program that can be executed by the at least one processor, which enables the at least one processor to perform the sea surface environment simulation method of the present invention.

[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the sea surface environment simulation method of the present invention.

[0021] According to another aspect of the present invention, a computer program product is also provided, comprising a computer program that, when executed by a processor, implements the sea surface environment simulation method of the present invention.

[0022] This invention establishes a sea surface grid model of the target sea area and, based on this model, creates a corresponding hierarchical display data model of the sea surface network. Further, the hierarchical display data model is refined according to target viewpoint parameters to obtain a target sea surface network hierarchical display data model, which is then used to determine an initial sea surface simulation model for the target sea area. After obtaining the initial simulation model, wave and color rendering are applied to the initial simulation model based on real sea environment data of the target sea area to generate a target sea surface simulation model. This approach overcomes the shortcomings of existing sea surface simulation methods in terms of adaptability, accurately reproducing the sea surface characteristics of the target sea area and improving the accuracy and reliability of sea surface environment simulation.

[0023] It should be understood that the description in this section is not intended to identify key or essential features of the invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0024] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying 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.

[0025] Figure 1 This is a flowchart of a sea surface environment simulation method provided in Embodiment 1 of the present invention;

[0026] Figure 2 This is a flowchart of a sea surface environment simulation method provided in Embodiment 2 of the present invention;

[0027] Figure 3 This is a schematic diagram of a sea surface environment simulation device provided in Embodiment 3 of the present invention;

[0028] Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Detailed Implementation

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

[0030] It should be noted that the terms "first," "second," "target," and "initial," etc., used in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0031] Example 1

[0032] Figure 1 This is a flowchart of a sea surface environment simulation method provided in Embodiment 1 of the present invention. This embodiment is applicable to situations where a sea surface simulation model of a target sea area is generated based on real sea surface environmental data of the target sea area. This method can be executed by a sea surface environment simulation device, which can be implemented in software and / or hardware, and is generally integrated into an electronic device. This electronic device can be a terminal device or a server device, as long as it can execute the sea surface environment simulation method. The present invention does not limit the specific type of electronic device. Correspondingly, as... Figure 1 As shown, the method includes the following operations:

[0033] S110. Establish a sea surface grid model for the target sea area.

[0034] The target sea area can be the sea area where the sea surface environment simulation is to be performed. The sea surface mesh model can be a model that discretizes the continuous sea surface into a regular or irregular mesh structure.

[0035] In this embodiment of the invention, in order to simulate the marine environment of the target sea area, a sea surface grid model covering the geographical range of the target sea area can be constructed first, using a preset ellipsoidal reference surface as a spatial coordinate reference datum, so as to provide a basic geometric carrier for subsequent numerical simulation and visualization rendering of marine environmental elements.

[0036] S120. Establish a hierarchical display data model of the sea surface network corresponding to the sea surface grid model based on the sea surface grid model of the target sea area.

[0037] Among them, the sea surface network hierarchical display data model can be a hierarchical data organization and scheduling model for visualization of the target sea area, established based on the sea surface grid model of the target sea area.

[0038] Correspondingly, after establishing the sea surface grid model of the target sea area, a sea surface quadtree data model can be constructed based on the sea surface grid model of the target sea area. The sea surface quadtree data model can be used as the sea surface network hierarchical display data model. By utilizing the multi-resolution hierarchical characteristics and efficient spatial indexing capabilities of the quadtree structure, the detailed hierarchical display function of the sea surface grid of the target sea area can be realized.

[0039] S130. The sea surface network hierarchical display data model is processed for accuracy based on the target viewpoint parameters to obtain the target sea surface network hierarchical display data model.

[0040] The target viewpoint parameters can be a set of parameters characterizing the user's virtual observation state of the target sea surface grid model. For example, target viewpoint parameters may include, but are not limited to, viewpoint spatial coordinates, observation direction vector, field of view range, and observation distance. This embodiment of the invention does not limit the specific type of target viewpoint parameters. The target sea surface network hierarchical display data model can be a sea surface network hierarchical display data model that conforms to the current display accuracy.

[0041] Accordingly, after establishing the sea surface grid model corresponding to the sea surface network hierarchical display data model, the current display accuracy of the sea surface network hierarchical display data model can be calculated and determined based on the pre-set target viewpoint parameters. Furthermore, the current display accuracy can be used as a filtering criterion to extract and generate target sea surface network hierarchical display data models that meet the accuracy requirements from the constructed sea surface network hierarchical display data models.

[0042] S140. Determine the initial sea surface simulation model of the target sea area based on the target sea surface network hierarchical display data model.

[0043] Among them, the initial sea surface simulation model can be used as a simulation model to characterize the static sea surface environment of the target sea area.

[0044] Correspondingly, after obtaining the target sea surface network hierarchical display data model, the target sea surface network hierarchical display data model can be used as the core data basis and construction benchmark. Through model encapsulation and geometric topology reconstruction, an initial sea surface simulation model for subsequent dynamic sea surface simulation calculations can be generated.

[0045] Optionally, a view frustum clipping operation can be performed on the initial sea surface simulation model of the target sea area based on the target view parameters. This removes redundant geometric data located outside the current view frustum in the initial sea surface simulation model, retaining only the effective display portion within the view frustum, thereby significantly reducing the amount of data for subsequent rendering and improving rendering efficiency.

[0046] S150. Based on the real marine environment data of the target sea area, perform wave rendering and color rendering on the initial sea surface simulation model of the target sea area to generate the target sea surface simulation model of the target sea area.

[0047] The real marine environmental data can be actual environmental data of the target marine area obtained through standardized observation methods. For example, real marine environmental data may include, but is not limited to, ocean current data, wave data, water color parameters, and transparency parameters. This embodiment of the invention does not limit the specific parameters included in the real marine environmental data. The target sea surface simulation model can be a simulation model used to characterize the dynamic sea surface environment of the target marine area.

[0048] Sea surface height, waves, currents, water color, and transparency vary depending on the sea area, time, and season. Therefore, it is difficult to simulate sea surface characteristics by simply adjusting lighting parameters, which may not reflect the characteristics of the sea surface under different sea areas, times, and seasons.

[0049] Therefore, in this embodiment of the invention, after determining the initial sea surface simulation model of the target sea area based on the target sea surface network hierarchical display data model, the initial sea surface simulation model can be used as the basic framework. For the static sea surface environment of the target sea area, dynamic wave morphology overlay rendering and sea surface visual color matching rendering are sequentially performed based on the real sea surface environment data of the target sea area to generate a target sea surface simulation model that accurately represents the dynamic sea surface environment of the target sea area. In a specific example, the real sea surface environment data of the target sea area can be obtained through satellite remote sensing or on-site marine observation. Specifically, satellite remote sensing can be used to obtain large-scale and high spatiotemporal resolution real sea surface environment data; on-site marine observation can obtain high-precision local real sea surface environment data through measuring devices such as wave-measuring buoys, current profilers, or underwater detection equipment. This embodiment of the invention does not limit the specific method of obtaining real sea surface environment data.

[0050] Therefore, the sea surface environment simulation method provided in this invention performs precision processing on the hierarchical display data model of the sea surface network through target viewpoint parameters. It can generate a precisely matched hierarchical display data model of the target sea surface network based on the actual observation viewpoint requirements, ensuring the accuracy of the sea surface simulation results from the underlying precision level of the data model. Simultaneously, this solution uses real sea environment data of the target sea area to perform wave rendering and color rendering on the initial sea surface simulation model of the target sea area. This enables the final generated simulation model to accurately reproduce the real sea surface environment characteristics of the target sea area, significantly improving the realism and scene adaptability of the sea surface simulation.

[0051] This invention establishes a sea surface grid model of the target sea area and, based on this model, creates a corresponding hierarchical display data model of the sea surface network. Further, the hierarchical display data model is refined according to target viewpoint parameters to obtain a target sea surface network hierarchical display data model, which is then used to determine an initial sea surface simulation model for the target sea area. After obtaining the initial simulation model, wave and color rendering are applied to the initial simulation model based on real sea environment data of the target sea area to generate a target sea surface simulation model. This solution addresses the shortcomings of existing sea surface simulation methods in terms of adaptability, accurately reproducing the sea surface characteristics of the target sea area and improving the accuracy and reliability of sea surface environment simulation.

[0052] Example 2

[0053] Figure 2 This is a flowchart of a sea surface environment simulation method provided in Embodiment 2 of the present invention. This embodiment is based on the above embodiment and is further specified. In this embodiment, specific optional implementation methods are given for establishing a sea surface grid model of the target sea area, performing accuracy processing on the sea surface network hierarchical display data model according to the target viewpoint parameters to obtain the target sea surface network hierarchical display data model, and performing wave rendering and color rendering on the initial sea surface simulation model of the target sea area according to the real sea area environment data of the target sea area to generate the target sea surface simulation model of the target sea area. Correspondingly, as Figure 2 As shown, the method in this embodiment may include:

[0054] S210. Obtain sea surface height data and tidal data of the target sea area.

[0055] Sea level data can be the vertical height of the ocean surface in a target sea area relative to a reference datum at a given moment. Tidal data can be a quantitative dataset obtained by observing, statistically analyzing, and modeling the periodic rise and fall of ocean water in the target sea area. Tidal data can be used to characterize the periodic variation of sea level data over time.

[0056] In this embodiment of the invention, in order to establish a sea surface grid model of the target sea area, the sea surface height data and tidal data of the target sea area can first be obtained.

[0057] S220. Establish a sea surface reference grid model for the target sea area based on the sea surface height data of the target sea area.

[0058] Among them, the sea surface reference grid model can be a grid model of the target sea area established based on sea surface height data.

[0059] Accordingly, after acquiring the sea surface height data of the target sea area, spatial coordinate transformation and grid interpolation processing can be performed on the sea surface height data based on a preset ellipsoidal datum surface, thereby establishing a sea surface datum grid model for the target sea area. For example, the sea surface datum grid model may include [lon, lat, h] s Where lon represents the longitude of any location in the target sea area, lat represents the latitude of any location in the target sea area, and h s This represents the sea surface height data at any location within the target sea area.

[0060] S230. Based on the tidal data, the sea surface reference grid model of the target sea area is corrected to obtain the sea surface grid model of the target sea area.

[0061] Correspondingly, after establishing the sea surface reference grid model of the target sea area based on the sea surface height data of the target sea area, the sea surface height data in the sea surface reference grid model of the target sea area can be corrected using tidal data to obtain the sea surface grid model of the target sea area.

[0062] In an optional embodiment of the present invention, the step of correcting the sea surface reference grid model of the target sea area based on the tidal data to obtain the sea surface grid model of the target sea area may include: calculating the tidal height deviation of each grid in the sea surface reference grid model based on the tidal data; and correcting the sea surface height data of each grid in the sea surface reference grid model based on the tidal height deviation of each grid to obtain the sea surface grid model of the target sea area.

[0063] Among them, tidal height deviation can be the height deviation between the actual observed value and the theoretical value of tidal data.

[0064] In this embodiment of the invention, when correcting the sea surface reference grid model of the target sea area based on tidal data to obtain the sea surface grid model of the target sea area, the simulation system can be connected to the tidal system, based on the input time parameter t, the core parameter T of the tidal system, and the geospatial feature parameter G. S The tidal height deviation of each grid in the sea surface reference grid model at different times is calculated using a pre-set algorithm model. Furthermore, the sea surface height data of each grid in the sea surface reference grid model can be corrected based on the tidal height deviation of each grid, resulting in a corrected sea surface grid model for the target sea area. This effectively eliminates the interference of tidal periodic deviations on the sea surface height data, reducing the absolute error of the corrected sea surface height data by more than an order of magnitude, making it closer to the true sea surface height of the target sea area. In a specific example, the sea surface grid model may include... ,in, .

[0065] S240. Establish a hierarchical display data model of the sea surface network corresponding to the sea surface grid model based on the sea surface grid model of the target sea area.

[0066] S250. Determine the current sea surface network hierarchical display node of the sea surface network hierarchical display data model.

[0067] Among them, the current sea surface network hierarchical display node can be the node data used for the current sea surface simulation display task in the sea surface network hierarchical display data model.

[0068] Specifically, after determining the sea surface network hierarchical display data model, the current sea surface network hierarchical display nodes for the current sea surface simulation display task can be determined by random selection from the sea surface network hierarchical display data model.

[0069] S260. Evaluate the rendering pressure of the current sea surface network layered display node based on the target viewpoint parameters, and obtain the accuracy evaluation factor of the current sea surface network layered display node.

[0070] Among them, the accuracy evaluation factor can be the data obtained after quantitatively evaluating the accuracy performance of each node in the current sea surface simulation display task.

[0071] Accordingly, after determining the current layered display node of the sea surface network in the sea surface network hierarchical display data model, the real-time rendering pressure of the current layered display node can be evaluated based on the target viewpoint parameters and the actual performance of the hardware device to obtain the accuracy evaluation factor of the current layered display node. Then, the accuracy processing of the current layered display node can be matched based on the accuracy evaluation factor.

[0072] In an optional embodiment of the present invention, evaluating the rendering pressure of the current sea surface network layered display node based on the target viewpoint parameters to obtain the accuracy evaluation factor of the current sea surface network layered display node may include: calculating the accuracy evaluation factor of the current sea surface network layered display node based on the following formula:

[0073] ;

[0074] in, This is the accuracy evaluation factor for the current sea surface network layered display nodes. The distance from the current sea surface network layered display node to the target viewpoint is [the distance from the current node to the target viewpoint]. For the distance of line of sight on Earth, This is the first performance parameter constant. This is the second performance parameter constant. The layer length of the current sea surface network layered display nodes is given. Correction parameters for light attenuation caused by wind, snow, sea fog, etc. In terms of rain and snow intensity, Table 1 shows a specific example of a correction parameter table for light attenuation caused by wind, snow, sea fog, and fog, where is the sea fog coefficient.

[0075] Table 1. Correction Parameters for Light Attenuation Due to Wind, Snow, Sea Fog

[0076]

[0077] in, and The frame rate can be set by combining system display settings with user subjective experience, based on the adaptation requirements of different graphics cards in the sea environment simulation system. Once the user settings are fixed, they do not need to be changed again. For example, when the sea environment simulation system is equipped with a high-performance graphics card, the frame rate is high and the rendering is smooth, so the system can... and Set to a relatively lenient value. When the sea surface environment simulation system is equipped with a low-performance graphics card, the system will display a low frame rate and be prone to stuttering. Therefore, you can set the value to... and Set to a relatively strict value. Understandably, users can adjust the settings based on system hardware parameters. and Adjust the settings until the display frame rate of the sea surface environment simulation system stabilizes. For example, you can... The initial value is set to 3500. The initial value is set to 40. This embodiment of the invention does not... and The specific values ​​to be taken are limited.

[0078] S270. Based on the accuracy evaluation factor of the current sea surface network hierarchical display node, the accuracy of the current sea surface network hierarchical display node is processed to obtain the target sea surface network hierarchical display data model.

[0079] The target sea surface network hierarchical display data model can be a sea surface network hierarchical display data model that matches the target viewpoint parameters and the actual performance of the hardware equipment.

[0080] Specifically, after obtaining the accuracy evaluation factor of the current sea surface network hierarchical display node, the degree of matching between the current sea surface network hierarchical display node and the actual performance of the target viewing angle parameters and hardware devices can be determined based on the accuracy evaluation factor. On this basis, targeted accuracy optimization processing can be performed on the current sea surface network hierarchical display node based on the accuracy evaluation factor, ultimately obtaining a target sea surface network hierarchical display data model that meets the preset display requirements.

[0081] In an optional embodiment of the present invention, the step of performing accuracy processing on the current sea surface network layered display node according to the accuracy evaluation factor of the current sea surface network layered display node may include: if it is determined that the value of the accuracy evaluation factor of the current sea surface network layered display node is less than a preset threshold, the current sea surface network layered display node is subjected to further classification processing.

[0082] The preset threshold can be a pre-set threshold for the accuracy evaluation factor. For example, the preset threshold can be 1, and this embodiment of the invention does not limit the specific value of the preset threshold.

[0083] In this embodiment of the invention, when performing precision processing on the current sea surface network layered display node based on its precision evaluation factor, the precision of the current sea surface network layered display node can first be determined based on the precision evaluation factor to determine whether the precision of the current sea surface network layered display node meets the standard. If the value of the precision evaluation factor of the current sea surface network layered display node is less than a preset threshold, it indicates that the current precision level of the current sea surface network layered display node cannot meet the requirements of the target display scene. At this time, a node subdivision process will be initiated to further mesh and refine the nodes of the sea surface network layered display node, thereby increasing the number and density of nodes and improving its overall display precision. If the value of the precision evaluation factor of the current sea surface network layered display node is greater than or equal to the preset threshold, it indicates that the current precision level of the current sea surface network layered display node can meet the requirements of the target display scene, and no precision processing is required for the current sea surface network layered display node.

[0084] S280. Determine the initial sea surface simulation model of the target sea area based on the target sea surface network hierarchical display data model.

[0085] S290. Based on the ocean current flow data of the target sea area, the initial sea surface simulation model is rendered from a distance to obtain the distant view wave model of the target sea surface simulation model.

[0086] Among them, ocean current flow data can be a dataset formed by observing, collecting, and processing the flow state and related properties of seawater in the ocean. The distant-view wave model can be a wave model under distant-view conditions.

[0087] Specifically, after obtaining the initial sea surface simulation model of the target sea area, both long-range and short-range rendering can be performed on the initial sea surface simulation model to simulate the dynamic ocean waves in the target sea area. Specifically, under long-range conditions, the initial sea surface simulation model can be rendered based on the ocean current flow data of the target sea area using a vector displacement texture mapping method to obtain the long-range wave model of the target sea surface simulation model. It can be understood that a long-range view can be an observation mode where the observation point is far from the target sea area, and the field of view covers a large area of ​​the ocean.

[0088] In an optional embodiment of the present invention, the step of rendering the initial sea surface simulation model from a distance based on the ocean current flow data of the target sea area to obtain a distant-view wave model of the target sea surface simulation model may include: determining the ocean current flow vector of the target sea area based on the ocean current flow data; generating an ocean current texture of the target sea area based on the ocean current flow vector; wherein the ocean current texture includes a reference ocean current texture and a disturbed ocean current texture; constructing a first wave texture sampling phase of the reference ocean current texture and a second wave texture sampling phase of the disturbed ocean current texture; sampling the reference ocean current texture based on the first wave texture sampling phase to obtain reference ocean current texture sampling data; sampling the disturbed ocean current texture based on the second wave texture sampling phase to obtain disturbed ocean current texture sampling data; determining a fusion weight based on the first wave texture sampling phase, and performing a weighted fusion of the reference ocean current texture sampling data and the disturbed ocean current texture sampling data based on the fusion weight to obtain a distant-view wave model of the target sea surface simulation model.

[0089] The ocean current flow vector can be data used to characterize the direction and speed of ocean current movement at a certain spatial location and time. The ocean current texture can be the spatial distribution pattern, variation law, and visual representation of parameters such as ocean current velocity, direction, and flow state. For example, ocean current textures can include, but are not limited to, baseline ocean current textures and disturbed ocean current textures; this embodiment of the invention does not limit the specific type of ocean current texture. The baseline ocean current texture can be a standardized and reusable reference texture template constructed based on ocean current flow data under standard conditions in a simulated ocean surface environment scenario. The disturbed ocean current texture can be a texture form reflecting abnormal ocean current flow states, formed by superimposing various disturbance factors in the marine environment on the baseline ocean current texture. The first wave texture sampling phase can be a reference phase for sampling the baseline ocean current texture. The second wave texture sampling phase can be a reference phase for sampling the disturbed ocean current texture. The baseline ocean current texture sampling data can be data obtained by sampling the baseline ocean current texture using the first wave texture sampling phase. The disturbed ocean current texture sampling data can be data obtained by sampling the disturbed ocean current texture using the second wave texture sampling phase. The fusion weight can be a weight parameter determined based on the sampling phase of the first wave texture.

[0090] In this embodiment of the invention, when rendering the initial sea surface simulation model from a distance based on ocean current flow data of the target sea area to obtain a distant-view wave model of the target sea surface simulation model, the ocean current flow data of the target sea area can be obtained first. Then, the ocean current flow vector of the target sea area can be determined based on the ocean current flow data. Further, using the ocean current flow vector as the core parameter, an ocean current flow space that reflects the spatial distribution pattern of ocean currents in the target sea area can be constructed. Based on this, the baseline ocean current texture and disturbed ocean current texture of the target sea area can be analyzed and determined using a texture extraction algorithm based on the ocean current flow space.

[0091] In a specific example, the ocean current flow space can be constructed based on the following formula:

[0092] ;

[0093] in, This represents the ocean current flow factor, used to indicate the specific flow state at a certain moment or location within the ocean current flow space. For ocean current flow vectors, Indicates to Normalization was performed. (Through...) The normalized ocean current flow vector can be mapped to the range (-1,1) to achieve a bidirectional flow effect of the ocean current.

[0094] After determining the ocean current texture of the target sea area, a first wave texture sampling phase for the baseline ocean current texture and a second wave texture sampling phase for the perturbed ocean current texture can be constructed. In a specific example, the wave texture sampling phase can be constructed based on the following formula:

[0095] ;

[0096] ;

[0097] in, The first wave texture sampling phase, The sampling phase for the second wave texture.

[0098] Furthermore, the reference ocean current texture can be sampled based on the first wave texture sampling phase to obtain reference ocean current texture sampling data. Simultaneously, the disturbed ocean current texture can be sampled based on the second wave texture sampling phase to obtain disturbed ocean current texture sampling data. Furthermore, the fusion weights can be determined based on the first wave texture sampling phase using the following formula:

[0099] ;

[0100] Based on the determined fusion weights, the baseline ocean current texture sampling data and the disturbed ocean current texture sampling data can be weighted and fused according to the following formula to obtain the far-view ocean wave model of the target sea surface simulation model:

[0101] ;

[0102] in, To integrate weights, This represents the wave texture at the current moment from a distance. Based on ocean current texture sampling data, Data for sampling textures of disturbed ocean currents.

[0103] S2100. Based on the wave data of the target sea area, perform close-view rendering on the initial sea surface simulation model to obtain the close-view wave model of the target sea surface simulation model.

[0104] Among them, wave data can be a set of quantitative information obtained by observing, measuring, and statistically analyzing the wave motion characteristics within the target sea area. A near-view wave model can be a wave model under near-view conditions.

[0105] Specifically, under close-view conditions, the initial sea surface simulation model can be rendered based on wave data of the target sea area to obtain a close-view wave model of the target sea surface simulation model. It can be understood that a close-view perspective is an observation mode where the observation point is close to the target sea area, and the field of view is focused on a small, localized sea area.

[0106] In an optional embodiment of the present invention, the step of performing close-view rendering of the initial sea surface simulation model based on the wave data of the target sea area to obtain a close-view wave model of the target sea surface simulation model may include: establishing a mapping relationship between the sea surface mesh model and wave particles; generating a close-view wave model correction coefficient based on the wave data of the target sea area; and generating a close-view wave model of the target sea surface simulation model based on the mapping relationship between the sea surface mesh model and wave particles and the close-view wave model correction coefficient.

[0107] Among them, the near-view wave model correction coefficient can be a coefficient used to convert the vertical amplitude of waves in the target sea area into horizontal displacement.

[0108] In this embodiment of the invention, when performing close-view rendering on the initial sea surface simulation model based on wave data of the target sea area to obtain the close-view wave model of the target sea surface simulation model, dynamic waves can first be constructed using the wave particle method. The wave particle processing method is applied to the sea surface grids at different nodes to establish a corresponding mapping relationship of "grid node - time - corrected sea surface height data". Based on this, and combined with the wave data of the target sea area, the close-view wave model correction coefficients for each grid node at different times can be calculated under close-view rendering conditions.

[0109] Furthermore, a near-view wave model of the target sea surface simulation model can be generated based on the mapping relationship between the sea surface mesh model and wave particles and the correction coefficients of the near-view wave model. This model can both reflect the realistic characteristics of dynamic waves and meet the detail accuracy requirements of near-view rendering.

[0110] In an optional embodiment of the present invention, the step of generating the near-view wave model of the target sea surface simulation model based on the mapping relationship between the sea surface mesh model and wave particles and the near-view wave model correction coefficient may include: generating the near-view wave model of the target sea surface simulation model based on the following formula:

[0111] ;

[0112] in, This is the forward movement model of the wave particles. This is the undulation model of the wave particles. and Together, they constitute the near-view wave model of the target sea surface simulation model. The initial position of the wave particle. The initial height of the wave particle. The amplitude of the wave data. For wave number, These are the correction coefficients for the near-view wave model. , For wavelength, , For wave cycles, It is the acceleration due to gravity. Angular frequency, , For time, This is the correction function for the first wave. This is the correction function for the second wave. For ocean current speed, It is the angle between the water flow and the wave direction.

[0113] in:

[0114] ;

[0115] ;

[0116] ;

[0117] ;

[0118] in, For steep waves, , For example, to make the critical wave steep, one could... Set as the typical critical value for deep-water wave breaking; The wave-current dimensionless ratio, For wave speed, The angle between the water flow and the wave direction. For example, the critical wave-current ratio can be... Set to the critical value at which water flow significantly affects waves; This is a smooth step function. Optionally, the Heaviside step can be replaced with the Sigmoid function to avoid discontinuities.

[0119] S2110. Render the target sea surface simulation model with color based on the water color parameter information and transparency parameter information of the target sea area.

[0120] Among these, water color parameters can be quantitative indicators used to characterize the color and optical properties of seawater in the target sea area. Transparency parameters can be indicators used to characterize the clarity of seawater in the target sea area.

[0121] Specifically, after rendering the distant and near-view wave models in the target sea surface simulation model, the target sea surface simulation model can be further color-rendered based on the real water color and transparency parameters of the target sea area, so that the visual representation of the rendering result matches the real optical characteristics of the target sea area.

[0122] In an optional embodiment of the present invention, the step of color rendering of the target sea surface simulation model based on the water color parameter information and transparency parameter information of the target sea area may include: calculating Fresnel reflectance based on the water color parameter information and transparency parameter information of the target sea area; obtaining environmental texture information of the target sea area; sampling the environmental texture information according to the camera orientation parameters of the target sea surface simulation model to obtain the reflection color data of the target sea surface simulation model; determining the refractive color data of the target sea surface simulation model based on a preset seawater refraction color table according to the water color parameter information and transparency parameter information of the target sea area; weightedly fusing the reflection color data and the refractive color data according to the Fresnel reflectance to obtain the rendering color data of the target sea surface simulation model; and color rendering of the target sea surface simulation model based on the rendering color data.

[0123] Fresnel reflectivity can be defined as the ratio of reflected luminous flux to incident luminous flux when light is reflected and transmitted at the interface between two different optical media. Environmental texture information can be a set of digital parameters characterizing the visual features and detail distribution of the target sea surface and its surrounding environment. Camera orientation parameters are a set of core parameters defining the orientation and viewpoint of the virtual camera in a 3D scene within a simulated sea environment. Reflected color data can be a set of digital parameters characterizing the wavelength distribution, color saturation, and brightness characteristics of reflected light from the target sea surface under natural or artificial light. The preset seawater refraction color table is a standard table of data determined based on the correspondence between water color parameters, transparency parameters, and the refraction colors of seawater. Refraction color data can be a set of digital parameters characterizing the wavelength distribution, transparency, and hue characteristics of light radiated outwards after scattering and absorption as it penetrates the interface of the medium and enters the target seawater. Rendered color data is color data used for color rendering of the target sea surface simulation model.

[0124] In this embodiment of the invention, when rendering the target sea surface simulation model with color based on the water color parameter information and transparency parameter information of the target sea area, the Fresnel reflectance can be calculated based on the water color parameter information and transparency parameter information of the target sea area using the following formula:

[0125] ;

[0126] in, Fresnel reflectivity For example, using Fresnel reflectance as a reference, It can be the reflectivity when the optical fiber is incident perpendicularly. The direction of the normal to the sea surface in the target sea area. For the camera direction, This is the Fresnel reflectance correction term determined based on water color and transparency parameters. For water color parameters, This provides transparency parameter information. Table 2 is a specific example of a Fresnel reflectance correction parameter table.

[0127] Simultaneously, environmental textures for the target sea area can be generated based on real environmental information, providing realistic environmental reflection, refraction, or indirect lighting effects for the target sea surface simulation model. Furthermore, the environmental texture information can be sampled based on the camera orientation parameters of the target sea surface simulation model to obtain its reflection color data.

[0128] Table 2 Fresnel reflectivity correction parameter table

[0129]

[0130] Furthermore, a preset seawater refraction color table can be pre-established based on the correspondence between water color parameters, transparency parameters, and the refracted color of seawater. Table 3 shows a specific example of a preset seawater refraction color table. Users can establish the correspondence between water color parameters, transparency parameters, and the refracted color of seawater according to simulation requirements. This embodiment of the invention does not limit the specific content of the preset seawater refraction color table. Further, the preset seawater refraction color table can be searched based on the water color parameters and transparency parameters of the target sea area, and the refracted color data of the target sea surface simulation model can be determined through nearest-neighbor linear interpolation.

[0131] After obtaining the above data, the reflected color data and the refracted color data can be weighted and fused according to Fresnel reflectance based on the following formula to obtain the rendering color data of the target sea surface simulation model, and then the target sea surface simulation model can be rendered with color based on the rendering color data:

[0132] ;

[0133] in, To render color data, For reflective color data, This refers to the color data of refraction.

[0134] Table 3 Preset Seawater Refraction Color Table

[0135]

[0136] This invention acquires sea surface height and tidal data for a target sea area, establishes a sea surface reference grid model for the target sea area based on the sea surface height data, and then corrects the sea surface reference grid model based on the tidal data to obtain a sea surface grid model for the target sea area. Further, a sea surface network hierarchical display data model corresponding to the sea surface grid model is established. Based on this, the current sea surface network hierarchical display nodes of the sea surface network hierarchical display data model are determined, and the rendering pressure of the current sea surface network hierarchical display nodes is evaluated based on the target viewpoint parameters to obtain the accuracy evaluation factor of the current sea surface network hierarchical display nodes. After obtaining the accuracy evaluation factor of the current sea surface network hierarchical display nodes, accuracy processing is performed on the current sea surface network hierarchical display nodes based on the accuracy evaluation factor to obtain the target sea surface network hierarchical display data model, and the initial sea surface simulation model for the target sea area is determined based on the target sea surface network hierarchical display data model. After obtaining the initial sea surface simulation model of the target sea area, a long-view rendering is performed on the initial sea surface simulation model based on the ocean current flow data of the target sea area to obtain the long-view wave model of the target sea surface simulation model. Simultaneously, a close-view rendering is performed on the initial sea surface simulation model based on the wave data of the target sea area to obtain the close-view wave model of the target sea surface simulation model. Furthermore, color rendering is performed on the target sea surface simulation model based on the water color and transparency parameters of the target sea area. This approach addresses the shortcomings of existing sea surface simulation methods in terms of adaptability, accurately reproducing the sea surface characteristics of the target sea area and improving the accuracy and reliability of sea surface environment simulation.

[0137] The collection, storage, use, processing, transmission, provision, and disclosure of user personal information in this technical solution comply with relevant laws and regulations and do not violate public order and good morals.

[0138] It should be noted that all information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for display, data used for analysis, etc.) involved in this disclosure are information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data comply with the relevant laws, regulations and standards of the relevant regions.

[0139] It should be noted that any arrangement or combination of the technical features in the above embodiments also falls within the protection scope of this invention.

[0140] Example 3

[0141] Figure 3 This is a schematic diagram of a sea surface environment simulation device provided in Embodiment 3 of the present invention, as shown below. Figure 3As shown, the device includes: a sea surface mesh model construction module 310, a sea surface network hierarchical display data model construction module 320, a target sea surface network hierarchical display data model determination module 330, an initial sea surface simulation model determination module 340, and a target sea surface simulation model generation module 350, wherein:

[0142] The sea surface grid model construction module 310 is used to build a sea surface grid model for the target sea area.

[0143] The sea surface network hierarchical display data model construction module 320 is used to build a sea surface network hierarchical display data model corresponding to the sea surface grid model based on the sea surface grid model of the target sea area.

[0144] The target sea surface network hierarchical display data model determination module 330 is used to perform accuracy processing on the sea surface network hierarchical display data model according to the target view parameters to obtain the target sea surface network hierarchical display data model.

[0145] The initial sea surface simulation model determination module 340 is used to determine the initial sea surface simulation model of the target sea area based on the target sea surface network hierarchical display data model.

[0146] The target sea surface simulation model generation module 350 is used to perform wave rendering and color rendering on the initial sea surface simulation model of the target sea area based on the real sea environment data of the target sea area, and generate the target sea surface simulation model of the target sea area.

[0147] This invention establishes a sea surface grid model of the target sea area and, based on this model, creates a corresponding hierarchical display data model of the sea surface network. Further, the hierarchical display data model is refined according to target viewpoint parameters to obtain a target sea surface network hierarchical display data model, which is then used to determine an initial sea surface simulation model for the target sea area. After obtaining the initial simulation model, wave and color rendering are applied to the initial simulation model based on real sea environment data of the target sea area to generate a target sea surface simulation model. This solution addresses the shortcomings of existing sea surface simulation methods in terms of adaptability, accurately reproducing the sea surface characteristics of the target sea area and improving the accuracy and reliability of sea surface environment simulation.

[0148] Optionally, the sea surface grid model construction module 310 is specifically used for: acquiring sea surface height data and tidal data of the target sea area; establishing a sea surface reference grid model of the target sea area based on the sea surface height data of the target sea area; and correcting the sea surface reference grid model of the target sea area based on the tidal data to obtain the sea surface grid model of the target sea area.

[0149] Optionally, the sea surface grid model construction module 310 is further configured to: calculate the tidal height deviation of each grid in the sea surface reference grid model based on the tidal data; and correct the sea surface height data of each grid in the sea surface reference grid model based on the tidal height deviation of each grid to obtain the sea surface grid model of the target sea area.

[0150] Optionally, the target sea surface network hierarchical display data model determination module 330 is specifically used for: determining the current sea surface network hierarchical display node of the sea surface network hierarchical display data model; evaluating the rendering pressure of the current sea surface network hierarchical display node according to the target view parameters to obtain the accuracy evaluation factor of the current sea surface network hierarchical display node; and performing accuracy processing on the current sea surface network hierarchical display node according to the accuracy evaluation factor of the current sea surface network hierarchical display node.

[0151] Optionally, the target sea surface network hierarchical display data model determination module 330 is further configured to: calculate the accuracy evaluation factor of the current sea surface network hierarchical display node based on the following formula:

[0152] ;

[0153] in, This is the accuracy evaluation factor for the current sea surface network layered display nodes. The distance from the current sea surface network layered display node to the target viewpoint is [the distance from the current node to the target viewpoint]. For the distance of line of sight on Earth, This is the first performance parameter constant. This is the second performance parameter constant. The layer length of the current sea surface network layered display nodes is given. Correction parameters for light attenuation caused by wind, snow, sea fog, etc. In terms of rain and snow intensity, This is the sea fog coefficient.

[0154] Optionally, the target sea surface network hierarchical display data model determination module 330 is further configured to: if the value of the accuracy evaluation factor of the current sea surface network hierarchical display node is less than a preset threshold, perform hierarchical processing on the current sea surface network hierarchical display node again.

[0155] Optionally, the target sea surface simulation model generation module 350 is specifically used for: rendering the initial sea surface simulation model from a distant perspective based on the ocean current flow data of the target sea area to obtain a distant-view wave model of the target sea surface simulation model; rendering the initial sea surface simulation model from a close-view perspective based on the wave data of the target sea area to obtain a close-view wave model of the target sea surface simulation model; and rendering the target sea surface simulation model with color based on the water color parameter information and transparency parameter information of the target sea area.

[0156] Optionally, the target sea surface simulation model generation module 350 is further configured to: determine the ocean current flow vector of the target sea area based on the ocean current flow data; generate ocean current texture of the target sea area based on the ocean current flow vector; wherein the ocean current texture includes a reference ocean current texture and a disturbed ocean current texture; construct a first wave texture sampling phase of the reference ocean current texture and a second wave texture sampling phase of the disturbed ocean current texture; sample the reference ocean current texture based on the first wave texture sampling phase to obtain reference ocean current texture sampling data; sample the disturbed ocean current texture based on the second wave texture sampling phase to obtain disturbed ocean current texture sampling data; determine a fusion weight based on the first wave texture sampling phase, and perform weighted fusion of the reference ocean current texture sampling data and the disturbed ocean current texture sampling data based on the fusion weight to obtain a far-view wave model of the target sea surface simulation model.

[0157] Optionally, the target sea surface simulation model generation module 350 is further configured to: establish a mapping relationship between the sea surface mesh model and wave particles; generate a near-view wave model correction coefficient based on the wave data of the target sea area; and generate a near-view wave model of the target sea surface simulation model based on the mapping relationship between the sea surface mesh model and wave particles and the near-view wave model correction coefficient.

[0158] Optionally, the target sea surface simulation model generation module 350 is further configured to: generate a near-view wave model of the target sea surface simulation model based on the following formula:

[0159] ;

[0160] in, This is the forward movement model of the wave particles. This is the undulation model of the wave particles. and Together, they constitute the near-view wave model of the target sea surface simulation model. The initial position of the wave particle. The initial height of the wave particle. The amplitude of the wave data. For wave number, These are the correction coefficients for the near-view wave model. , For wavelength, , For wave cycles, It is the acceleration due to gravity. Angular frequency, , For time, This is the correction function for the first wave. This is the correction function for the second wave. For ocean current speed, It is the angle between the water flow and the wave direction.

[0161] Optionally, the target sea surface simulation model generation module 350 is further configured to: calculate Fresnel reflectance based on the water color parameter information and transparency parameter information of the target sea area; acquire environmental texture information of the target sea area; sample the environmental texture information based on the camera orientation parameters of the target sea surface simulation model to obtain the reflection color data of the target sea surface simulation model; determine the refraction color data of the target sea surface simulation model based on a preset seawater refraction color table and the water color parameter information and transparency parameter information of the target sea area; perform weighted fusion of the reflection color data and the refraction color data based on the Fresnel reflectance to obtain the rendering color data of the target sea surface simulation model; and perform color rendering on the target sea surface simulation model based on the rendering color data.

[0162] The aforementioned sea surface environment simulation device can execute the sea surface environment simulation method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method. Technical details not described in detail in this embodiment can be found in the sea surface environment simulation method provided in any embodiment of the present invention.

[0163] Since the above-described sea surface environment simulation device is capable of executing the sea surface environment simulation method in the embodiments of the present invention, those skilled in the art can understand the specific implementation methods and various variations of the sea surface environment simulation device in this embodiment based on the sea surface environment simulation method described in the embodiments of the present invention. Therefore, how the sea surface environment simulation device implements the sea surface environment simulation method in the embodiments of the present invention will not be described in detail here. Any device used by those skilled in the art to implement the sea surface environment simulation method in the embodiments of the present invention falls within the scope of protection of this application.

[0164] Example 4

[0165] Figure 4A schematic diagram of an electronic device 10, which can be used to implement embodiments of the present invention, is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0166] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as ROM (Read-Only Memory) or RAM (Random Access Memory), communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded into the RAM 13 from the storage unit 18. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An I / O (Input / Output) interface is also connected to the bus 14.

[0167] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0168] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as sea surface environment simulation methods.

[0169] In some embodiments, the sea surface environment simulation method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the sea surface environment simulation method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the sea surface environment simulation method by any other suitable means (e.g., by means of firmware).

[0170] Optionally, the sea surface environment simulation method may include: establishing a sea surface grid model of the target sea area; establishing a sea surface network hierarchical display data model corresponding to the sea surface grid model based on the sea surface grid model of the target sea area; performing precision processing on the sea surface network hierarchical display data model according to the target viewpoint parameters to obtain a target sea surface network hierarchical display data model; determining an initial sea surface simulation model of the target sea area based on the target sea surface network hierarchical display data model; and performing wave rendering and color rendering on the initial sea surface simulation model of the target sea area based on the real sea environment data of the target sea area to generate a target sea surface simulation model of the target sea area.

[0171] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0172] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0173] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0174] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0175] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0176] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0177] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0178] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for simulating the sea surface environment, characterized in that, include: Establish a sea surface grid model for the target sea area; Establish a hierarchical display data model of the sea surface network corresponding to the sea surface grid model based on the sea surface grid model of the target sea area; The target sea surface network hierarchical display data model is obtained by performing precision processing on the target viewpoint parameters; The initial sea surface simulation model for the target sea area is determined based on the target sea surface network hierarchical display data model; Based on the real marine environment data of the target sea area, the initial sea surface simulation model of the target sea area is rendered with waves and colors to generate the target sea surface simulation model of the target sea area; wherein, the real marine environment data includes ocean current flow data, wave data, water color parameter information and transparency parameter information; The step of generating a target sea surface simulation model of the target sea area by rendering waves and colors on the initial sea surface simulation model of the target sea area based on the real sea environment data of the target sea area includes: The initial sea surface simulation model is rendered from a distance based on the ocean current flow data of the target sea area to obtain the distant view wave model of the target sea surface simulation model. Based on the wave data of the target sea area, the initial sea surface simulation model is rendered from a close-up perspective to obtain the close-up wave model of the target sea surface simulation model. The target sea surface simulation model is color-rendered based on the water color parameter information and transparency parameter information of the target sea area. The step of color rendering the target sea surface simulation model based on the water color parameter information and transparency parameter information of the target sea area includes: Calculate the Fresnel reflectance based on the water color and transparency parameters of the target sea area; Obtain the environmental texture information of the target sea area; The environmental texture information is sampled based on the camera orientation parameters of the target sea surface simulation model to obtain the reflection color data of the target sea surface simulation model; Based on a preset seawater refraction color table, the refraction color data of the target sea surface simulation model is determined according to the water color parameter information and transparency parameter information of the target sea area. The reflected color data and the refracted color data are weighted and fused based on the Fresnel reflectance to obtain the rendering color data of the target sea surface simulation model; The target sea surface simulation model is rendered with color based on the rendered color data.

2. The sea surface environment simulation method according to claim 1, characterized in that, The establishment of the sea surface grid model for the target sea area includes: Obtain sea level and tidal data for the target sea area; A sea surface reference grid model for the target sea area is established based on the sea surface height data of the target sea area; The sea surface reference grid model of the target sea area is corrected based on the tidal data to obtain the sea surface grid model of the target sea area.

3. The sea surface environment simulation method according to claim 2, characterized in that, The step of correcting the sea surface reference grid model of the target sea area based on the tidal data to obtain the sea surface grid model of the target sea area includes: Calculate the tidal height deviation of each grid in the sea surface reference grid model based on the tidal data; The sea surface height data of each grid in the sea surface reference grid model are corrected according to the tidal height deviation of each grid to obtain the sea surface grid model of the target sea area.

4. The sea surface environment simulation method according to claim 1, characterized in that, The step of refining the sea surface network hierarchical display data model based on target viewpoint parameters includes: Determine the current sea surface network hierarchical display node of the sea surface network hierarchical display data model; The rendering pressure of the current sea surface network layered display node is evaluated based on the target viewpoint parameters to obtain the accuracy evaluation factor of the current sea surface network layered display node. The accuracy of the current sea surface network layered display node is processed according to the accuracy evaluation factor of the current sea surface network layered display node.

5. The sea surface environment simulation method according to claim 4, characterized in that, The step of evaluating the rendering pressure of the current sea surface network layered display node based on the target viewpoint parameters to obtain the accuracy evaluation factor of the current sea surface network layered display node includes: The accuracy evaluation factor of the current sea surface network layered display node is calculated based on the following formula: ; in, This is the accuracy evaluation factor for the current sea surface network layered display nodes. The distance from the current sea surface network layered display node to the target viewpoint is [the distance from the current node to the target viewpoint]. For the distance of line of sight on Earth, This is the first performance parameter constant. This is the second performance parameter constant. The layer length of the current sea surface network layered display nodes is given. Correction parameters for light attenuation caused by wind, snow, sea fog, etc. In terms of rain and snow intensity, This refers to the sea fog coefficient. The step of performing accuracy processing on the current sea surface network layered display node based on the accuracy evaluation factor of the current sea surface network layered display node includes: If the value of the accuracy evaluation factor of the current sea surface network layered display node is less than a preset threshold, the current sea surface network layered display node will be further classified.

6. The sea surface environment simulation method according to claim 1, characterized in that, The step of rendering the initial sea surface simulation model from a distance based on the ocean current flow data of the target sea area to obtain the distant-view wave model of the target sea surface simulation model includes: The ocean current flow vector of the target sea area is determined based on the ocean current flow data; The ocean current texture of the target sea area is generated based on the ocean current flow vector; wherein, the ocean current texture includes a base ocean current texture and a disturbed ocean current texture; Construct the first wave texture sampling phase of the reference ocean current texture and the second wave texture sampling phase of the disturbed ocean current texture; The reference ocean current texture is sampled according to the first wave texture sampling phase to obtain reference ocean current texture sampling data; The disturbed ocean current texture is sampled according to the second wave texture sampling phase to obtain disturbed ocean current texture sampling data; The fusion weight is determined based on the first wave texture sampling phase, and the reference ocean current texture sampling data and the disturbed ocean current texture sampling data are weighted and fused according to the fusion weight to obtain the far-view wave model of the target sea surface simulation model.

7. The sea surface environment simulation method according to claim 1, characterized in that, The step of rendering the initial sea surface simulation model from a near-view perspective based on the wave data of the target sea area to obtain the near-view wave model of the target sea surface simulation model includes: Establish the mapping relationship between the sea surface mesh model and wave particles; Based on the wave data of the target sea area, generate near-view wave model correction coefficients; The near-view wave model of the target sea surface simulation model is generated based on the mapping relationship between the sea surface mesh model and wave particles and the near-view wave model correction coefficient.

8. The sea surface environment simulation method according to claim 7, characterized in that, The process of generating the near-view wave model of the target sea surface simulation model based on the mapping relationship between the sea surface mesh model and wave particles and the near-view wave model correction coefficients includes: The near-view wave model of the target sea surface simulation model is generated based on the following formula: ; in, This is the forward movement model of the wave particles. This is the undulation model of the wave particles. and Together, they constitute the near-view wave model of the target sea surface simulation model. The initial position of the wave particle. The initial height of the wave particle. The amplitude of the wave data. For wave number, These are the correction coefficients for the near-view wave model. , For wavelength, , For wave cycles, It is the acceleration due to gravity. Angular frequency, , For time, This is the correction function for the first wave. This is the correction function for the second wave. For ocean current speed, It is the angle between the water flow and the wave direction.

9. A sea surface environment simulation device, characterized in that, include: The sea surface grid model building module is used to create a sea surface grid model for the target sea area. The sea surface network hierarchical display data model construction module is used to build a sea surface network hierarchical display data model corresponding to the sea surface grid model based on the sea surface grid model of the target sea area; The target sea surface network hierarchical display data model determination module is used to perform accuracy processing on the sea surface network hierarchical display data model according to the target view parameters to obtain the target sea surface network hierarchical display data model. The initial sea surface simulation model determination module is used to determine the initial sea surface simulation model of the target sea area based on the target sea surface network hierarchical display data model; The target sea surface simulation model generation module is used to perform wave rendering and color rendering on the initial sea surface simulation model of the target sea area based on the real sea environment data of the target sea area, and generate the target sea surface simulation model of the target sea area; wherein, the real sea environment data includes ocean current flow data, wave data, water color parameter information and transparency parameter information; Specifically, the target sea surface simulation model generation module is used for: The initial sea surface simulation model is rendered from a distance based on the ocean current flow data of the target sea area to obtain the distant view wave model of the target sea surface simulation model. Based on the wave data of the target sea area, the initial sea surface simulation model is rendered from a close-up perspective to obtain the close-up wave model of the target sea surface simulation model. The target sea surface simulation model is color-rendered based on the water color parameter information and transparency parameter information of the target sea area. The target sea surface simulation model generation module is also used for: Calculate Fresnel reflectance based on water color and transparency parameters of the target sea area; obtain environmental texture information of the target sea area; The environmental texture information is sampled based on the camera orientation parameters of the target sea surface simulation model to obtain the reflection color data of the target sea surface simulation model; Based on a preset seawater refraction color table, the refraction color data of the target sea surface simulation model is determined according to the water color parameter information and transparency parameter information of the target sea area. The reflected color data and the refracted color data are weighted and fused based on the Fresnel reflectance to obtain the rendering color data of the target sea surface simulation model; The target sea surface simulation model is rendered with color based on the rendered color data.

10. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that is executed by the at least one processor to enable the at least one processor to perform the sea surface environment simulation method according to any one of claims 1-8.

11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the sea surface environment simulation method according to any one of claims 1-8.

12. A computer program product, characterized in that, It includes a computer program / instruction, wherein the computer program / instruction, when executed by a processor, implements the sea surface environment simulation method according to any one of claims 1-8.