A method, system and medium for visualizing ocean data based on Unreal Engine
Through the Unreal Engine-based method, the two-dimensional and three-dimensional visualization effects of marine data are dynamically displayed, which solves the problem of single and strong static display form in the existing technology, and realizes efficient and intuitive visualization of marine data.
Patent Information
- Application Number
- CN202410809170.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2025-03-21
- Estimated Expiration
- 2044-06-21
AI Technical Summary
The marine data visualization method in the prior art has a single display form of marine data, with more local descriptions, few global descriptions, many static forms, and few dynamic presentations, making it difficult to perceive marine data comprehensively and in-depth.
Using an Unreal Engine-based method, the ocean data at different depths is dynamically displayed through two forms of dynamic materials and three-dimensional thermal maps, realizing two-dimensional and three-dimensional visualization of ocean data.
It enhances the expressiveness and intuitiveness of marine data, helps professionals to perceive marine data comprehensively and deeply, and thus provides powerful means for analyzing, understanding, predicting marine data and finding laws.
Smart Images

Figure CN118736158B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of marine science and technology, and in particular relates to an ocean data visualization method, system and medium based on Unreal Engine. Background Art
[0002] With the rapid development of information science, it is becoming increasingly important to use appropriate means to efficiently and accurately display massive amounts of data in order to assist professionals in rapid analysis and decision-making. The marine environment is complex and changeable, and its data exists in different forms, with huge amounts of data and complex data structures. Moreover, the data changes all the time, and it is difficult to directly observe and understand marine environmental information through data. Therefore, it is necessary to use appropriate visualization methods to intuitively and dynamically understand marine environmental information, display the characteristics and trends of marine data, and thus efficiently mine the inherent laws and essence of marine data.
[0003] However, the existing methods of ocean data visualization usually display ocean data in a relatively simple form, with more local descriptions and less global descriptions; there are more static forms of expression of complex ocean environment information and less dynamic presentations; there are more visualization descriptions of pure data and less descriptions of seabed topography. This is not conducive to professionals' comprehensive and in-depth perception of ocean data, and thus provides a powerful means for analyzing, understanding, predicting ocean data and finding patterns to make decisions. Summary of the invention
[0004] The purpose of the present invention is to solve one of the above technical problems and to provide an ocean data visualization method, system and medium based on Unreal Engine that dynamically displays ocean data visualization effects of different depth layers in two forms of dynamic materials and three-dimensional heat maps.
[0005] To achieve the above object, the technical solution adopted by the present invention is:
[0006] A method for visualizing ocean data based on Unreal Engine, comprising the following steps:
[0007] Obtain ocean data at different depths and pass it into the Unreal Engine. The ocean data includes ocean scalar data and ocean vector data.
[0008] Preprocessing the ocean scalar data and ocean vector data respectively to generate two-dimensional texture data;
[0009] In the material system of Unreal Engine, two-dimensional texture rendering is performed on the pre-processed ocean scalar data and ocean vector data to achieve two-dimensional visualization of ocean data;
[0010] In the particle system of Unreal Engine, based on the data area range, three-dimensional models of ocean scalar data and ocean vector data are created and rendered respectively to achieve three-dimensional visualization of ocean data;
[0011] The ocean data at different depth layers are processed by two-dimensional and three-dimensional visualization to realize the visualization of ocean data at the depth layer.
[0012] In some embodiments of the present invention, a method for creating and rendering a three-dimensional model of ocean scalar data includes:
[0013] Generate mesh particles on the spherical surface, determine the number of particles generated and the interval between particles based on the data volume and accuracy of the incoming ocean scalar data, and set the position of each particle on the spherical surface based on the radius of the sphere;
[0014] The particle properties are set through texture mapping, and the relative positions of the particles on the spherical plane projection and in the overall range are determined respectively, and the grayscale values of the corresponding positions are obtained as mapping parameters through texture sampling respectively;
[0015] Set the size and color of the particles. Set the size value of the mesh particle in the normal direction to be positively correlated with its corresponding data value. Pass the linear color curve into the particle system as the range of the particle color mapping. Each particle uses the mapping parameter as the index value to obtain its own color value and transparency from the linear color curve.
[0016] Set the survival properties of the particles, set the life cycle of the particles to a cycle, obtain the corresponding texture data when each cycle is generated, and generate the visualization effect of the current moment based on the texture.
[0017] In some embodiments of the present invention, a method for creating and rendering a three-dimensional model of ocean vector data includes:
[0018] Generate particle points on the spherical surface by using the Fibonacci grid sampling method, determine the number of particles generated based on the amount of data of the incoming ocean vector data, and the XY axis plane of each particle is tangent to the spherical surface;
[0019] The particle attributes are set by texture mapping, and the relative positions of the particles on the spherical plane projection and in the overall range are determined respectively. The color RGB values of the corresponding positions are obtained by texture sampling to obtain the u and v components of the point respectively. The movement speed of the particles is calculated based on the u and v components, and the relative movement coordinate direction of the particles is calculated based on the position information of the particles, so as to determine the speed attribute and direction attribute of the particles.
[0020] Set the size and color of the particles, pass the linear color curve into the particle system as the range of the particle color mapping, and each particle uses the calculated particle velocity value as the index value to obtain its own color value and transparency from the linear color curve;
[0021] Update the motion properties of the particles. Based on the initial position, direction and speed of the particles at the previous moment, the particle position in the current frame is calculated in combination with the predetermined time interval value. The moving direction and speed of the particles in each frame are calculated, and then the motion trajectory of the particles is generated.
[0022] Control particle extinction by presetting particle lifespan or by presetting particle speed thresholds and opacity thresholds.
[0023] In some embodiments of the present invention, the method for preprocessing ocean scalar data includes:
[0024] Read ocean data in NetCDF format and parse the data to obtain scalar data values at a specific time;
[0025] Normalizing the acquired scalar data values, and calculating the normalized value of each scalar data value;
[0026] Based on the latitude and longitude coordinate information of the scalar data value, the calculated normalized value corresponds to the pixel gray value to generate two-dimensional texture data;
[0027] Determine the color axis corresponding to the ocean scalar data to map the changes and trends of the data.
[0028] In some embodiments of the present invention, the method for preprocessing ocean vector data includes:
[0029] Read ocean data in NetCDF format, and obtain the data values of the meridional velocity u and zonal velocity v of each point at a single moment based on the longitude and latitude information;
[0030] The normalized values of the longitudinal velocity u and the latitudinal velocity v are calculated based on the data value intervals respectively;
[0031] The normalized values of the longitudinal velocity u and the latitudinal velocity v are respectively corresponded to the R channel and the G channel of the color value to generate a texture image;
[0032] Determine the color axis corresponding to the ocean vector data to map the changes and trends of the data.
[0033] In some embodiments of the present invention, a method for performing two-dimensional texture rendering on preprocessed ocean scalar data or ocean vector data includes:
[0034] Pass the pre-processed ocean scalar data or ocean vector data into the material system of Unreal Engine;
[0035] Create texture parameters in the material system and generate 2D texture data based on the passed in data;
[0036] Obtain the corresponding color value from the linear color curve based on the size of the two-dimensional texture data value;
[0037] The final material base color is generated by combining the transparency of the two-dimensional texture data and the mapping value of the linear color curve through the linear interpolation node;
[0038] Use the blueprint system to record the dynamic changes of data according to the time series, set the event triggering nodes at predetermined time intervals in the blueprint system to control the switching of the two-dimensional texture data in the material. Each time the event is triggered, the texture is updated based on the data at the current time point, thereby visually showing the evolution of the data over time and realizing the function of data visualization effect changing over time.
[0039] In some embodiments of the present invention, the method for performing two-dimensional texture rendering on the pre-processed ocean vector data further includes:
[0040] Streamlines are drawn through the custom rendering pipeline of Unreal Engine. The number of particles is determined according to the scene requirements. The size of the ocean vector data set is used as the resolution of the generated texture object. Pixel points are used as the regular grid for particle generation. Particles are randomly generated in the grid area according to the number of particles.
[0041] In some embodiments of the present invention, the method for realizing visualization of ocean data at a depth layer further includes:
[0042] Control and adjust the coordinate position of each layer of data generated based on the visualization requirements of the current scene to achieve visualization of ocean data at the depth layer;
[0043] The cross-section of multi-layer data is visualized by controlling the values of the u and v components of the input texture parameters.
[0044] Some embodiments of the present invention further provide an ocean data visualization system based on Unreal Engine, comprising:
[0045] at least one processor;
[0046] at least one memory for storing at least one program;
[0047] When at least one program is executed by at least one processor, the at least one processor implements an ocean data visualization method based on Unreal Engine.
[0048] Some embodiments of the present invention further provide a storage medium storing a program executable by a processor, wherein the program executable by the processor is used to implement an ocean data visualization method based on an Unreal Engine when executed by the processor.
[0049] The beneficial effects of the present invention are:
[0050] 1. The present invention provides a comprehensive ocean data visualization solution, which uses Unreal Engine to display ocean scalar data and ocean vector data in two forms: dynamic materials and three-dimensional heat maps, respectively, which enhances the expressiveness and intuitiveness of ocean data, facilitates professionals to perceive ocean data comprehensively and deeply, and further provides a powerful means for analyzing, understanding, predicting ocean data and finding patterns to make decisions;
[0051] 2. The present invention realizes the visualization of ocean data at different depth layers, which helps to deeply analyze and understand the vertical structure of the ocean environment;
[0052] 3. The present invention supports the visualization of global data and local data to achieve the description and expression of complex marine environmental information. At the same time, it supports the combination of multiple data such as sea conditions, temperature, salinity, wind field, flow field, geomagnetism, and seabed topography, achieving a composite display effect of marine environmental data and improving the availability and readability of marine data. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0054] Figure 1 It is a flowchart of an ocean data visualization method based on Unreal Engine;
[0055] Figure 2 A schematic diagram of the structure of the particle system provided by the present invention;
[0056] Figure 3 Flowchart of the 3D visualization method for ocean data. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0058] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0059] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0060] The technical solution of the present invention is described in detail below in conjunction with specific embodiments and the accompanying drawings.
[0061] As attached Figure 1-3 As shown, in an illustrative embodiment of an ocean data visualization method based on Unreal Engine of the present invention, the ocean data visualization method includes the following steps.
[0062] Step 1: Obtain ocean data at different depths and import them into the Unreal Engine. The ocean data is stored in NetCDF format, including ocean scalar data and ocean vector data.
[0063] Step 2: Preprocess the ocean scalar data and ocean vector data respectively to generate two-dimensional texture data.
[0064] In some embodiments of the present invention, the method for preprocessing ocean scalar data includes the following steps.
[0065] The program reads ocean data in NetCDF format and parses the data to obtain the scalar data value at a specific moment. The obtained scalar data value is normalized and the normalized value of each scalar data value is calculated. Based on the latitude and longitude coordinate information of the scalar data value, the calculated normalized value is matched with the pixel grayscale value to generate two-dimensional texture data. In this process, any three scalar data can be saved in the R, G, and B channels of the pixel at the same time.
[0066] Set the texture transparency of the land area to zero and the texture transparency of the ocean area to 1 to highlight the features of the ocean area.
[0067] Determine the color axis corresponding to the ocean scalar data to map the changes and trends of the data. The color axis is stored and applied through the linear color curve of Unreal Engine.
[0068] In some embodiments of the present invention, the method for preprocessing ocean vector data includes the following steps.
[0069] The program reads the ocean data in NetCDF format, obtains the data values of the meridional velocity u and the latitudinal velocity v of each point at a single moment based on the longitude and latitude information; calculates the normalized values of the meridional velocity u and the latitudinal velocity v based on their data value intervals; corresponds the normalized values of the meridional velocity u and the latitudinal velocity v to the R channel and the G channel of the color value, respectively, to generate a texture image;
[0070] Set the texture transparency of the land area to zero and the texture transparency of the ocean area to 1 to highlight the features of the ocean area.
[0071] Determine the color axis corresponding to the ocean vector data to map the changes and trends of the data. The color axis is stored and applied through the linear color curve of the Unreal Engine.
[0072] Step 3: In order to display the visualization effect of ocean data in the form of dynamic materials, the preprocessed ocean scalar data and ocean vector data are rendered in two-dimensional textures in the material system of Unreal Engine, and two-dimensional visualization of ocean scalar data and ocean vector data is achieved through two-dimensional texture mapping.
[0073] In some embodiments of the present invention, a method for performing two-dimensional texture rendering on preprocessed ocean scalar data or ocean vector data includes the following steps.
[0074] For ocean scalar data:
[0075] Pass the pre-processed ocean scalar data into Unreal Engine's material system.
[0076] Create corresponding texture parameters in the material system and generate 2D texture data based on the passed in data.
[0077] Get the corresponding color value from the linear color curve based on the size of the two-dimensional texture data value.
[0078] Through the linear interpolation node, the transparency of the two-dimensional texture data is used as the interpolation factor, the starting value is the geographic information image data, and the ending value is the linear color mapping value to generate the final material base color.
[0079] Use the blueprint system to record the dynamic changes of data according to the time series, set the event triggering nodes at predetermined time intervals in the blueprint system to control the switching of the two-dimensional texture data in the material. Each time the event is triggered, the texture is updated based on the data at the current time point, thereby visually showing the evolution of the data over time and realizing the function of data visualization effect changing over time.
[0080] For ocean scalar data:
[0081] The pre-processed ocean vector data is passed into the Unreal Engine's material system.
[0082] Creates a texture parameter in the material system and generates 2D texture data based on the passed in data.
[0083] Through the linear interpolation node, the transparency of the two-dimensional texture data is used as the interpolation factor, the starting value is the geographic information image data, and the end value is the two-dimensional texture data object. The final material base color is generated as the input data of the vector field visualization process.
[0084] The final material base color is generated by combining the transparency of the two-dimensional texture data and the mapping value of the linear color curve through the linear interpolation node;
[0085] Use the blueprint system to record the dynamic changes of data according to the time series, set the event triggering nodes at predetermined time intervals in the blueprint system to control the switching of the two-dimensional texture data in the material. Each time the event is triggered, the texture is updated based on the data at the current time point, thereby visually showing the evolution of the data over time and realizing the function of data visualization effect changing over time.
[0086] Furthermore, the method for performing two-dimensional texture rendering on the preprocessed ocean vector data also includes the following steps.
[0087] Streamlines are drawn through the custom rendering pipeline of Unreal Engine. The number of particles is determined according to the scene requirements. The size of the ocean vector data set is used as the resolution of the generated texture object. Pixel points are used as the regular grid for particle generation. Particles are randomly generated in the grid area according to the number of particles.
[0088] Step 4: In order to display the visualization effect of ocean data in the form of a 3D heat map, in the Niagara particle system of Unreal Engine, based on the data area range, three-dimensional models of ocean scalar data and ocean vector data are created and rendered respectively to achieve three-dimensional visualization of ocean data. The particle system structure is shown in the attached figure. Figure 2 As shown in the figure, it uses a large number of particles with certain properties, distribution, and motion states to simulate objects and data visualization simulation, which has good controllability and plasticity. The particles of the particle system will go through several processes such as particle generation, particle update, particle rendering, and particle extinction to achieve the generation, change, drawing, and extinction of data visualization effects.
[0089] In some embodiments of the present invention, as shown in the attached Figure 3 As shown, the method for creating and rendering a three-dimensional model of ocean scalar data includes the following steps.
[0090] Step 4.11: Determine the number of particles and their positions.
[0091] In the particle system, select to generate mesh particles on the spherical surface, set the number of particles to be generated based on the amount of ocean scalar data passed in, and determine the spacing between particles based on the accuracy (km) of the ocean scalar data passed in. Based on the sphere radius value set by the particle system, set the position of each particle on the sphere through coordinate conversion, and set the orientation of all particles to the normal direction of the sphere
[0092] Step 4.12: Determine the number of particles and their positions.
[0093] In the particle system, choose to generate mesh particles on the spherical surface and set the particle properties through texture mapping.
[0094] For global data: the position information of each particle on the sphere is projected to obtain its corresponding relative position on the spherical plane projection, and the grayscale value of the corresponding position is obtained by texture sampling through the two-dimensional data texture generated in the preprocessing stage, which is saved in the system as a mapping parameter.
[0095] For local data: first set the boundary range of the particle system, determine the relative position of the particle within the overall range, and use the relative position from the data.
[0096] Step 4.13: Determine the number of particles and their positions.
[0097] In the particle system, select to generate mesh particles on the spherical surface and set the size and color of the particles. Set the size value of the mesh particle in the normal direction to be positively correlated with its corresponding data value. Pass the linear color curve into the particle system as the range of the particle color mapping and as the input value of the particle color attribute. Each particle uses the read mapping parameters as the index value to obtain its own color value and transparency from the linear color curve and update it to the particle system.
[0098] Step 4.14: Determine the number of particles and their positions.
[0099] In the particle system, select to generate mesh particles on the spherical surface to generate a dynamic effect of data changing over time. Set the survival attribute of the particle, set the life cycle of the particle to a cycle, repeat steps 4.12 and 4.13 for each cycle generation to obtain the corresponding texture data through the subscript of the texture array, and generate the visualization effect of the current moment based on the texture, so as to achieve the effect of particle color and size changing over time in three-dimensional space, and intuitively display the process and trend of data evolution.
[0100] In some embodiments of the present invention, as shown in the attached Figure 3As shown, the method for creating and rendering a three-dimensional model of ocean vector data includes the following steps.
[0101] Step 4.21: Generate particles on the spherical surface.
[0102] Generate particle points on the spherical surface through the Fibonacci grid sampling method, determine the number of particles generated based on the amount of ocean vector data passed in, set the particle material to line shape in the particle rendering properties, and set the orientation of all particles to the normal direction of the sphere, so that the XY axis plane of each particle is tangent to the sphere;
[0103] Step 4.22: Set particle properties through texture mapping.
[0104] For global data: First, the position information of each particle on the sphere is projected to obtain its corresponding relative position on the spherical plane projection. The texture data generated in the preprocessing stage is used for texture sampling to obtain the color RGB value of the corresponding position and then obtain the u and v components of the point. The movement speed of the particle is calculated based on the u and v components. The calculation formula is:
[0105]
[0106] Among them, speed is the speed value of the current particle, and u and v are the speed components on the x-axis and y-axis respectively.
[0107] At the same time, the relative motion coordinate direction of the particle is calculated through the particle position information.
[0108] Set the particle's movement speed and relative movement coordinate direction as the particle's speed attribute and direction attribute.
[0109] For local data: First, set the boundary range of the particle system, divide each particle by the boundary range to obtain the relative position of each particle in the overall range, and use the relative position to obtain the color RGB value of the corresponding position from the texture data generated in the preprocessing stage to obtain the u and v components of the point, and calculate the particle's movement speed based on the u and v components. At the same time, calculate the relative movement coordinate direction of the particle through the particle position information. Finally, set the particle's movement speed and relative movement coordinate direction as the particle's speed attribute and direction attribute.
[0110] Step 4.23: Set the size and color of the particles.
[0111] The linear color curve is passed into the particle system as the range of the color mapping of the particle vector velocity, and also as the input value of the particle color attribute. Each particle uses the calculated particle velocity value as the index value to obtain its own color value and transparency from the linear color curve, and updates it to the particle system. In vector data visualization, the icon color reflects the magnitude of the vector, and the direction reflects the direction of the vector.
[0112] Step 4.24: Update the particle's motion properties.
[0113] The properties of particles change over time. Based on the initial position, direction and speed of the particles at the previous moment, the particle position in the current frame is calculated in combination with the predetermined time interval value. The moving direction and speed of the particles in each frame are calculated, and the moving direction and speed of the particles are continuously updated to generate the particle's motion trajectory. According to the changes in the particle's position, color and other properties, the movement changes of the vector are dynamically reflected.
[0114] Particle extinction can be controlled by presetting the particle life cycle or by presetting the particle speed threshold and opacity threshold. When controlling particle extinction by presetting the particle life cycle, you can set the particle extinction when the life cycle is reduced to 0. When controlling particle extinction by presetting the particle speed threshold and opacity threshold, you can set the particle extinction when the particle speed is reduced to the threshold or the color transparency is lower than the set threshold.
[0115] In the process of constructing three-dimensional models of ocean scalar data and ocean vector data, the Unreal Engine can combine the three-dimensional digital earth scene with real geographic information data to create and display ocean data visualization objects, and efficiently realize the dynamic loading and control of data three-dimensional effects in the scene, realizing the visualization of data statistics and data analysis; for regional data, it can combine real geographic information data to generate a three-dimensional model with terrain, scalar data, and vector data, and the visualization effect is more intuitive, which is conducive to the attention and observation of key sea areas; at the same time, the use of Unreal Engine for three-dimensional modeling can intuitively reflect the changes in ocean data in space and time, and can dynamically generate and review data status, and has the ability to schedule and analyze data.
[0116] Step 5: In order to realize the visualization of ocean data at the depth layer, the ocean data at different depth layers are subjected to two-dimensional visualization processing and three-dimensional visualization processing.
[0117] In some embodiments of the present invention, the method for visualizing ocean data at a depth layer further includes the following steps.
[0118] The coordinate position of each layer of data generated is controlled and adjusted based on the visualization requirements of the current scene through the blueprint script to achieve visualization of ocean data at the depth layer.
[0119] The cross-section of multi-layer data is visualized by controlling the values of the u and v components of the input texture parameters in the blueprint script.
[0120] Some embodiments of the present invention further provide an ocean data visualization system based on Unreal Engine, comprising:
[0121] at least one processor;
[0122] at least one memory for storing at least one program;
[0123] When at least one program is executed by at least one processor, the at least one processor implements an ocean data visualization method based on Unreal Engine.
[0124] Some embodiments of the present invention further provide a storage medium storing a program executable by a processor, wherein the program executable by the processor is used to implement an ocean data visualization method based on an Unreal Engine when executed by the processor.
[0125] Finally, it should be noted that: the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0126] The above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or some technical features can be replaced by equivalents without departing from the spirit of the technical solution of the present invention, which should be included in the scope of the technical solution for protection of the present invention.
Claims
1. A method for visualizing ocean data based on Unreal Engine, characterized in that: The following steps are involved: Acquire ocean data of different depth layers and transmit them into Unreal Engine, wherein the ocean data includes ocean scalar data and ocean vector data; Preprocessing the ocean scalar data and ocean vector data respectively to generate two-dimensional texture data; In the material system of Unreal Engine, two-dimensional texture rendering is performed on the pre-processed ocean scalar data and ocean vector data to achieve two-dimensional visualization of ocean data; In the particle system of Unreal Engine, based on the data area range, three-dimensional models of ocean scalar data and ocean vector data are created and rendered respectively to realize three-dimensional visualization of ocean data; two-dimensional and three-dimensional visualization processing is performed on ocean data at different depth layers to realize visualization of ocean data at depth layers; The method of performing two-dimensional texture rendering on the preprocessed ocean scalar data or ocean vector data includes: Pass the pre-processed ocean scalar data or ocean vector data into the material system of Unreal Engine; Create texture parameters in the material system and generate 2D texture data based on the passed in data; Obtain the corresponding color value from the linear color curve based on the size of the two-dimensional texture data value; The final material base color is generated by combining the transparency of the two-dimensional texture data and the mapping value of the linear color curve through the linear interpolation node; A blueprint system is used to record the dynamic changes of data according to a time series. A node that sets an event trigger at a predetermined time interval is set in the blueprint system to control the switching of the two-dimensional texture data in the material. Each time an event is triggered, the texture is updated based on the data at the current time point, thereby visually displaying the evolution of the data over time and realizing the function of data visualization effect changing over time.
2. The method for visualizing ocean data based on Unreal Engine according to claim 1, characterized in that: Methods for creating and rendering 3D models of ocean scalar data include: Generate mesh particles on the spherical surface, determine the number of particles generated and the interval between particles based on the amount and accuracy of the incoming ocean scalar data, and set the position of each particle on the spherical surface based on the radius of the sphere; The particle properties are set through texture mapping, and the relative positions of the particles on the spherical plane projection and in the overall range are determined respectively, and the grayscale values of the corresponding positions are obtained as mapping parameters through texture sampling respectively; Set the size and color of the particles. Set the size value of the mesh particle in the normal direction to be positively correlated with its corresponding data value. Pass the linear color curve into the particle system as the range of the particle color mapping. Each particle uses the mapping parameter as the index value to obtain its own color value and transparency from the linear color curve. Set the survival properties of the particles, set the life cycle of the particles to a cycle, obtain the corresponding texture data when each cycle is generated, and generate the visualization effect of the current moment based on the texture.
3. The method for visualizing ocean data based on Unreal Engine according to claim 1, characterized in that: Methods for creating and rendering 3D models of ocean vector data include: Generate particle points on the spherical surface by using the Fibonacci grid sampling method, determine the number of particles generated based on the amount of data of the incoming ocean vector data, and the XY axis plane of each particle is tangent to the spherical surface; The particle attributes are set by texture mapping, and the relative positions of the particles on the spherical plane projection and in the overall range are determined respectively. The color RGB values of the corresponding positions are obtained by texture sampling to obtain the u and v components of the point respectively. The movement speed of the particles is calculated based on the u and v components, and the relative movement coordinate direction of the particles is calculated based on the position information of the particles, so as to determine the speed attribute and direction attribute of the particles. Set the size and color of the particles, pass the linear color curve into the particle system as the range of the particle color mapping, and each particle uses the calculated particle velocity value as the index value to obtain its own color value and transparency from the linear color curve; Update the motion properties of the particles. Based on the initial position, direction and speed of the particles at the previous moment, the particle position in the current frame is calculated in combination with the predetermined time interval value. The moving direction and speed of the particles in each frame are calculated to generate the motion trajectory of the particles. Control particle extinction by presetting particle lifespan or by presetting particle speed thresholds and opacity thresholds.
4. The method for visualizing ocean data based on Unreal Engine according to claim 1, characterized in that: Methods for preprocessing ocean scalar data include: Read ocean data in NetCDF format and parse the data to obtain scalar data values at a specific time; Normalizing the acquired scalar data values, and calculating the normalized value of each scalar data value; Based on the latitude and longitude coordinate information of the scalar data value, the calculated normalized value corresponds to the pixel gray value to generate two-dimensional texture data; Determine the color axis corresponding to the ocean scalar data to map the changes and trends of the data.
5. The method for visualizing ocean data based on Unreal Engine according to claim 1, characterized in that: Methods for preprocessing ocean vector data include: Read ocean data in NetCDF format, and obtain the data values of the meridional velocity u and zonal velocity v of each point at a single moment based on the longitude and latitude information; The normalized values of the longitudinal velocity u and the latitudinal velocity v are calculated based on the data value intervals respectively; The normalized values of the longitudinal velocity u and the latitudinal velocity v are respectively corresponded to the R channel and the G channel of the color value to generate a texture image; Determine the color axis corresponding to the ocean vector data to map the changes and trends of the data.
6. The method for visualizing ocean data based on Unreal Engine according to claim 1, characterized in that: The method for performing two-dimensional texture rendering on the preprocessed ocean vector data also includes: Streamlines are drawn through the custom rendering pipeline of Unreal Engine. The number of particles is determined according to the scene requirements. The size of the ocean vector data set is used as the resolution of the generated texture object. Pixel points are used as the regular grid for particle generation. Particles are randomly generated in the grid area according to the number of particles.
7. The method for visualizing ocean data based on Unreal Engine according to claim 1, characterized in that: Methods for visualizing ocean data at depth levels also include: Control and adjust the coordinate position of each layer of data generated based on the visualization requirements of the current scene to achieve visualization of ocean data at the depth layer; The cross-section of multi-layer data is visualized by controlling the values of the u and v components of the input texture parameters.
8. An ocean data visualization system based on Unreal Engine, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the ocean data visualization method based on the Unreal Engine as described in any one of claims 1-7.
9. A storage medium storing a program executable by a processor, characterized in that: The processor-executable program is used to implement the ocean data visualization method based on Unreal Engine as described in any one of claims 1 to 7 when executed by the processor.
Citation Information
Patent Citations
Ocean three-dimensional situation visualization platform based on unreal engine
CN117593471A
