Three-dimensional scene loading and rendering method for deep sea three-dimensional environment deduction

By pre-processing and grid processing of various data sources in deep-sea environments, and texture mapping and lighting simulation are combined with block rendering sequence lists, the problem of unreal rendering effects in deep-sea environments is solved, and high-precision rendering effects and efficient rendering processes are achieved.

CN119991921AActive Publication Date: 2025-05-13NAT DEEP SEA CENT

Patent Information

Application Number
CN202510454872.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-11
Publication Date
2025-05-13
Estimated Expiration
2045-04-11

AI Technical Summary

Technical Problem

The prior art is difficult to achieve high-precision texture mapping and detail rendering in deep-sea environments, resulting in unreal or distorted rendering effects.

Method used

By acquiring and preprocessing a variety of data sources for deep-sea environments, grid processing and scene segmentation are performed, and texture mapping and lighting simulation are combined with block rendering sequence lists to ensure the accuracy of textures and the realism of the rendering effect.

Benefits of technology

It significantly improves the rendering quality and reality of deep-sea three-dimensional environment deduction, ensures the accuracy of texture and the authenticity of lighting effects, and improves rendering efficiency and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119991921A_ABST
    Figure CN119991921A_ABST
Patent Text Reader

Abstract

The invention discloses a three-dimensional scene loading and rendering method for deep-sea three-dimensional environment deduction, and relates to the technical field of three-dimensional scene rendering, and the method comprises the following steps: obtaining and preprocessing various types of data of a deep-sea environment, and carrying out the grid processing of terrains and objects in the deep-sea environment; a deep sea three-dimensional scene is established based on the preprocessed deep sea environment data, scene uniform segmentation is carried out, a plurality of sub-scene blocks are obtained, and a block rendering sequence table is obtained; the rendering efficiency of the deep sea three-dimensional scene is remarkably improved by adopting the view cone removing technology and the batch processing rendering strategy, the rendering speed is increased, dependence on hardware resources is reduced, the rendering task can be efficiently completed under the condition that the resources are limited, and in addition, the rendering efficiency of the deep sea three-dimensional scene is improved. The strategy of dynamically adjusting the rendering detail level further balances details and performance, and ensures that the optimal rendering effect can be provided under different observation distances and hardware loads.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional scene rendering, and in particular to a three-dimensional scene loading and rendering method for deep-sea three-dimensional environment deduction. Background Art

[0002] With the rapid progress of computer graphics and virtual reality technology, rendering and simulation of the natural environment on which human beings depend for survival has become a technical focus in the industry. Since the deep sea is rich in biological resources, mineral resources, etc., accurate understanding and simulation of the deep sea environment is of great significance for resource development and environmental protection. Through the deduction of deep sea three-dimensional environment and three-dimensional scene rendering, intuitive and realistic deep sea environment simulation can be provided, which can help scientific researchers and engineers better understand and analyze the deep sea environment and provide strong technical support for deep sea exploration and resource development.

[0003] In the prior art, the detail expression in the deep-sea environment requires high-precision texture and rendering effects. However, during texture mapping, the characteristics of illumination, refraction, reflection, etc. in the deep sea make it difficult to grasp the accuracy of the texture and the rendering effect, which can easily lead to visual unreality or distortion. Therefore, how to improve the accuracy of texture mapping and detail rendering to ensure the rendering quality and realism of the deep-sea three-dimensional environment deduction is the problem we need to solve. To this end, a three-dimensional scene loading and rendering method for deep-sea three-dimensional environment deduction is proposed. Summary of the invention

[0004] The purpose of the present invention is to provide a three-dimensional scene loading and rendering method for deep-sea three-dimensional environment deduction to solve the problems raised in the above-mentioned background technology.

[0005] In order to solve the above technical problems, the technical solution adopted by the present invention is: A three-dimensional scene loading and rendering method for deep-sea three-dimensional environment deduction comprises the following steps: Step 1, acquiring and preprocessing various types of data of the deep-sea environment, and then gridding the terrain and objects in the deep-sea environment; Step 2: establish a deep-sea 3D scene based on the pre-processed deep-sea environment data, and divide the scene equally to obtain a number of sub-scene blocks, and obtain a block rendering sequence list; Step 3: Texture mapping is performed on the deep-sea 3D scene in combination with the block rendering sequence table. The prepared texture map is mapped to the 3D scene to ensure the accuracy and fit of the texture. The real lighting effect is simulated according to the lighting conditions of the deep-sea environment to ensure the accuracy and realism of the lighting. Step 4, select and adjust the settings of the renderer, then load the deep sea 3D scene, and render the nodes of each sub-scene block one by one; Step 5: Establish a quality assessment system to conduct a comprehensive assessment of the rendering results to ensure that the rendering quality and realism meet the expected requirements.

[0006] A further improvement of the technical solution of the present invention is that in step 1, the process of gridding the terrain and objects in the deep sea environment is: Use a variety of data sources to obtain deep-sea environmental data, including public ocean databases, multi-beam sonar systems (for seafloor topography mapping), side-scan sonar (for seafloor topographic feature analysis), laser radar (LiDAR) and satellite remote sensing; Clean the acquired deep-sea environmental data to remove noise and outliers, calibrate the sensor data using standard data calibration methods to ensure data accuracy, and integrate data from different data sources to form a unified data set; The deep-sea environment data including terrain and objects after preprocessing are gridded. For terrain gridding, the Delaunay triangulation algorithm is used to connect the terrain data points into a triangular mesh, and the resolution of the mesh is adjusted through the subdivision algorithm (Loop subdivision) to balance the details and performance. For object gridding, a point cloud-based modeling method is used to generate a three-dimensional model of the object, and the object model is embedded in the terrain mesh through Boolean operations to ensure its natural interaction with the terrain.

[0007] A further improvement of the technical solution of the present invention is that in step 2, the process of obtaining the block rendering sequence table is as follows: Import the pre-processed deep-sea environment data into the 3D modeling software to ensure data format compatibility, and use the geographic coordinate system to define the scene's coordinate system, set the scene range and resolution; Generate a 3D terrain mesh based on the preprocessed terrain data, use the Kriging interpolation algorithm to convert discrete terrain data points into a continuous terrain surface, map the terrain mesh with the preprocessed landform texture (texture acquired by the side-scan sonar) to enhance the realism of the terrain, and load the preprocessed deep-sea object model into the scene, locate and orient it according to the actual position and posture, and apply normal smoothing to optimize the object model to improve rendering performance and visual effects; According to the size and object distribution of the deep-sea 3D scene, a strategy for evenly segmenting the scene is formulated so that the segmented sub-scene blocks contain the same number of terrain grids and object models. The segmentation tool provided by the 3D modeling software is used to evenly segment the deep-sea 3D scene to obtain several sub-scene blocks, and each sub-scene block is numbered for subsequent management and rendering; For each segmented sub-scene block, based on the visibility of the sub-scene block, calculate the Euclidean distance between the center point of the block and the current position of the user's perspective, and sort all the sub-scene blocks from near to far according to the distance, and then determine the rendering priority of each sub-scene block, and organize the rendering priority and related information of each sub-scene block into a block rendering sequence table, and give priority to rendering blocks that are closer to the observer to optimize rendering efficiency and visual experience, wherein the rendering sequence table contains the number, rendering priority and rendering parameter information of the sub-scene block; According to the observer's movement speed and direction change factors, the weight and distance factor of the sub-scene block sorting are dynamically adjusted, and the block rendering sequence table is updated in real time. Combined with the sorting position of the sub-scene blocks, the observer's viewing direction and the load of the rendering hardware, the rendering detail level is dynamically calculated for each sub-scene block. Then, according to the order of the block rendering sequence table, multiple small rendering slices are aggregated into batch renderings, and the rendering queue is managed using a rendering scheduler to ensure that rendering tasks are executed efficiently according to priority.

[0008] A further improvement of the technical solution of the present invention is that the process of dynamically calculating the rendering detail level is: Calculate the Euclidean distance between the observer and the center point of the sub-scene block, and calculate its minimum effective distance, and then use the logarithmic function combined with the distance weight coefficient to calculate the distance weight; Calculate the angle between the observer's viewing angle and the normal direction of the sub-scene block, and use the logarithmic function combined with the viewing angle weight coefficient to calculate the viewing angle weight; Get the current load of the rendering hardware, and use the logarithmic function combined with the hardware load weight coefficient to calculate the hardware load weight; The final rendering level of detail is obtained by adding the distance weight, viewing angle weight, and hardware load weight and comparing it with the rendering level of detail range limited by the maximum rendering level of detail.

[0009] A further improvement of the technical solution of the present invention is that in step 3, the texture mapping process is: Texture maps suitable for deep-sea environments are collected from multiple channels such as public ocean databases, multi-beam sonar systems, side-scan sonars, LiDARs, and satellite remote sensing. Different blocks in the deep-sea 3D scene are determined according to the block rendering sequence table. Each block contains corresponding model and texture information for targeted texture mapping. Use 3D modeling software to perform UV splitting on the models in the deep-sea 3D scene, use UV splitting to unfold the surface of the 3D model into a 2D plane, and define texture coordinates for each object in the deep-sea 3D scene, ensuring that the texture coordinates after UV splitting correspond one-to-one with the model surface to avoid texture stretching or distortion; Map the prepared texture map to the corresponding model surface, use texture mapping tools (Photoshop) to adjust and optimize the texture to ensure the accuracy and fit of the texture, and apply texture filtering technology (bilinear interpolation, trilinear interpolation, etc.) to improve the clarity of texture mapping and reduce aliasing and moiré phenomena; According to the lighting conditions of the deep-sea environment, the lighting model is selected and the parameters of the lighting model are set. During the rendering process, the lighting effect of each pixel is calculated according to the lighting model and lighting parameters, including calculating the distance from the light source to the pixel, and the angle between the light and the normal of the pixel, to determine the lighting intensity and color of the pixel. The lighting models include the Phong lighting model, the Cook-Torrance lighting model, etc.

[0010] A further improvement of the technical solution of the present invention is that in step 4, the process of rendering each sub-scene block node is: According to the characteristics and rendering requirements of deep-sea 3D scenes, combined with the available hardware configuration, select the renderer required for deep-sea 3D scene rendering, including CPU renderer (3ds Max's built-in scanline renderer) and GPU renderer (Redshift, OctaneRender, etc.). Among them, for deep-sea scenes that require high-quality rendering and complex light and shadow effects, GPU renderer can provide faster and more realistic rendering effects; According to the requirements of deep-sea scenes, adjust the global settings of the renderer, including resolution, aspect ratio and frame rate, ensure that the output format and color space meet the project requirements, and adjust the lighting settings of the renderer according to the lighting conditions of the deep-sea environment, including light source type, light source position, light source color, light intensity parameters, as well as ambient light and shadow effects. According to the material requirements of the deep-sea scene, adjust the material settings of the renderer, set the reflectivity, refractive index and texture mapping parameters of the material to simulate the real underwater material effect; Import the pre-processed deep-sea 3D scene data into the renderer, load the prepared texture map into the renderer, associate it with the corresponding model, and ensure that the texture map path is correct and matches the UV coordinates of the model; According to the block rendering sequence table, organize the scene structure, assign the models to different sub-scene blocks, create nodes for each sub-scene block, and set the corresponding rendering order and priority; According to the order of the block rendering sequence list, traverse the nodes of each sub-scene block, and for each node, check whether it is in the view area. If so, render it; For nodes outside the viewport, culling is performed to reduce unnecessary rendering calculations and improve rendering efficiency. For nodes within the viewport, the corresponding model data is loaded and the node similarity is analyzed. The batch processing function of the renderer is used to merge multiple model nodes with high similarity into one batch for rendering to improve rendering performance. Monitor the rendering progress, adjust the rendering settings or pause / resume rendering as needed. After rendering is completed, save the rendering results, select different output formats (JPEG, PNG, EXR, etc.), and set the output path and file name.

[0011] A further improvement of the technical solution of the present invention is that the process of analyzing node similarity is: According to the camera's viewing angle and viewing distance, the six planes of the cone (left, right, top, bottom, near, and far) are analyzed in combination with the frustum culling technology. For each node, it is determined whether it is completely outside the frustum. If the bounding box of the node does not intersect the frustum, the node is culled, and the nodes outside the frustum are removed from the rendering queue to avoid unnecessary rendering calculations for them. For the nodes in the viewport, load the corresponding model data, including vertex coordinates, normals, and texture coordinates, and check whether the data format meets the requirements of the renderer to ensure the integrity and correctness of the model data; Calculate based on the model's geometry, texture map and material parameters, analyze node similarity, set a similarity threshold, and group nodes with similarity above the threshold for batch rendering; Use the batch processing function of the renderer to merge the data of model nodes with high similarity into a data structure, create mappers and actors, pass the merged data to the mappers, associate the mappers to the actors, and then add the actors to the renderer for batch rendering.

[0012] A further improvement of the technical solution of the present invention is that the calculation process of the node similarity is: For node i and node j, extract the vertex coordinates of their geometric shapes respectively, calculate the Euclidean distance between each vertex, and sum and average them to obtain the geometric shape difference; For node i and node j, extract the pixel values ​​of their texture maps respectively, calculate the Euclidean distance between each pixel, and sum and average them to get the texture map difference; For nodes i and j, extract their material parameters respectively, calculate the absolute difference between each material parameter, and perform weighted summation to obtain the material parameter difference; The geometric shape differences, texture map differences, and material parameter differences are added together and the square root is taken. The square root result plus 1 is then used as the denominator to calculate the final node similarity.

[0013] A further improvement of the technical solution of the present invention is that in step 5, the process of comprehensively evaluating the rendering result is: Based on the rendering requirements of the deep-sea environment, the evaluation indicators for rendering quality evaluation are determined, including image clarity, image authenticity, light and shadow effects, material texture, resource consumption, rendering efficiency, stability and compatibility; Combined with historical data of deep-sea environment rendering, the baseline value of each evaluation indicator is determined, and a quality evaluation system is established by integrating various evaluation indicators; Assign corresponding weights to each evaluation indicator, calculate the difference between each evaluation indicator and its baseline value, and then comprehensively calculate the rendering quality evaluation coefficient, conduct a comprehensive evaluation of the rendering results, and analyze the trend of the rendering results; Compare the calculated comprehensive evaluation coefficient with the expected target to determine whether the rendering quality meets the expected requirements. If the evaluation result does not meet the expected target, conduct an in-depth analysis of the rendering process, find out the problem, and take corresponding improvement measures; Based on the evaluation results and analysis, adjust the rendering parameters to improve the rendering quality and realism, and repeat the evaluation and optimization process until the rendering quality meets the expected requirements.

[0014] A further improvement of the technical solution of the present invention is that the calculation process of the rendering quality evaluation coefficient is: For each evaluation metric , get its current value and baseline values ,For each evaluation indicator, calculate the relative deviation between its current value and the baseline value; Add the weighted square deviations of each indicator to calculate the weighted square sum of the deviations, then take the square root of the weighted square sum of the deviations, add 1 to the square root result as the denominator, and calculate the rendering quality evaluation coefficient; According to the value of the rendering quality assessment coefficient, analyze the trend of the rendering results. If the rendering quality assessment coefficient is close to 1, it means that the rendering quality is good. If the rendering quality assessment coefficient is small, it is necessary to further analyze the deviation of specific indicators to find out the problem.

[0015] Due to the adoption of the above technical solution, the present invention has the following technical advances compared with the prior art: The present invention provides a three-dimensional scene loading and rendering method for deep-sea three-dimensional environment deduction. By adopting the view frustum culling technology and the batch rendering strategy, the rendering efficiency of the deep-sea three-dimensional scene is significantly improved. Not only the rendering speed is improved, but also the dependence on hardware resources is reduced, so that the rendering task can be efficiently completed even when resources are limited. In addition, the strategy of dynamically adjusting the rendering detail level further balances the details and performance, ensuring that the optimal rendering effect can be provided under different observation distances and hardware loads.

[0016] The present invention provides a three-dimensional scene loading and rendering method for deep-sea three-dimensional environment deduction. Through a comprehensive evaluation system and a dynamic optimization strategy, the stability and reliability of the rendering results are significantly improved. By establishing a quality evaluation system, the rendering results are monitored and analyzed in real time, and problems in the rendering process can be discovered and solved in time, which not only improves the stability of the rendering results, but also ensures the reliability of the rendering quality. In addition, through multiple iterative optimizations and repeated evaluations, the rendering method can gradually approach the expected goal and ultimately generate high-quality rendering results. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0018] Figure 1 It is a schematic diagram of the method flow of the present invention; Figure 2 A schematic diagram of the workflow of rendering each sub-scene block node of the present invention; Figure 3 The figure is a schematic diagram of the workflow of the present invention for comprehensively evaluating rendering results. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0020] Embodiment 1, as Figure 1 As shown, the present invention provides a three-dimensional scene loading and rendering method for deep-sea three-dimensional environment deduction, comprising the following steps: Step 1: Acquire and preprocess various types of data of the deep-sea environment, and then grid the terrain and objects in the deep-sea environment. Use a variety of data sources to obtain deep-sea environment data, including public ocean databases, multi-beam sonar systems (for seafloor topography mapping), side-scan sonars (for seafloor geomorphological feature analysis), laser radar (LiDAR) and satellite remote sensing, etc., to ensure the diversity and integrity of the data, clean the acquired deep-sea environment data, remove noise and outliers, use standard data calibration methods to calibrate sensor data to ensure data accuracy, and integrate data from different data sources to form a unified data set. Grid the deep-sea environment data including terrain and objects after preprocessing. For terrain gridding, use the Delaunay triangulation algorithm to connect terrain data points into triangular meshes, and adjust the resolution of the mesh through the subdivision algorithm (Loop subdivision) to balance details and performance. For object gridding, use a point cloud-based modeling method to generate a three-dimensional model of the object, and embed the object model into the terrain mesh through Boolean operations to ensure its natural interaction with the terrain. Step 2: Establish a deep-sea 3D scene based on the pre-processed deep-sea environment data, divide the scene evenly, obtain several sub-scene blocks, and obtain a block rendering sequence list. Import the pre-processed deep-sea environment data into the 3D modeling software to ensure data format compatibility, and use the geographic coordinate system to define the coordinate system of the scene, set the scene range and resolution, generate a 3D terrain grid based on the pre-processed terrain data, use the Kriging interpolation algorithm to convert discrete terrain data points into a continuous terrain surface, map the terrain grid with the pre-processed landform texture (texture obtained by the side-scan sonar) to enhance the realism of the terrain, and load the pre-processed deep-sea object model into the scene, locate and orient it according to the actual position and posture, and apply the method Line smoothing is used to optimize object models to improve rendering performance and visual effects. According to the size of the deep-sea 3D scene and the distribution of objects, a strategy for evenly segmenting the scene is formulated so that the segmented sub-scene blocks contain the same number of terrain grids and object models. The segmentation tool provided by the 3D modeling software is used to evenly segment the deep-sea 3D scene to obtain several sub-scene blocks, and each sub-scene block is numbered for subsequent management and rendering. For each segmented sub-scene block, based on the visibility of the sub-scene block, the Euclidean distance between the center point of the block and the current position of the user's perspective is calculated, and all sub-scene blocks are sorted from near to far according to the distance, thereby determining the rendering priority of each sub-scene block, and comparing the rendering priority of each sub-scene block with the corresponding The relevant information is sorted into a block rendering sequence table, and blocks closer to the observer are rendered first to optimize rendering efficiency and visual experience. The rendering sequence table contains the number, rendering priority and rendering parameter information of the sub-scene block. According to the observer's movement speed and direction change factors, the weight and distance factor of the sub-scene block sorting are dynamically adjusted, and the block rendering sequence table is updated in real time. In combination with the sorting position of the sub-scene block, the observer's viewing direction and the load of the rendering hardware, the rendering detail level is dynamically calculated for each sub-scene block, and then according to the order of the block rendering sequence table, multiple small rendering slices are aggregated into batch rendering, and the rendering queue is managed by the rendering scheduler to ensure that rendering tasks are executed efficiently according to priority. Among them, the observer's movement speed is Influence, set multiple speed thresholds and multiple intervals for adjustment, namely low speed interval, medium speed interval and high speed interval, divide the observer's movement speed into different intervals, low speed interval is 0-1m / s, medium speed interval is 1-3m / s, high speed interval is >3m / s. When the observer moves faster, the human eye's perception of distant details decreases. At this time, it is necessary to appropriately reduce the rendering priority of distant blocks and reduce unnecessary detail rendering, thereby improving the overall rendering performance. On the contrary, when the movement speed is slower, the observer has more time to pay attention to the details of the scene, and it is necessary to increase the rendering priority of distant blocks to provide richer visual information. In different speed intervals, adjust the weight of the sub-scene block sorting. In the high-speed interval, increase the distance weight.Reduce the sorting priority of distant blocks. In the low-speed range, reduce the distance weight to increase the sorting priority of distant blocks. Regarding the influence of the observer's direction change, the change of the observer's direction will change his visual focus area. When the direction changes greatly, the block originally at the edge of the field of view may quickly enter the center of the field of view, while the block originally in the center of the field of view may move out of the field of view. In order to ensure visual continuity and rendering efficiency, it is necessary to dynamically adjust the block sorting weight according to the direction change. By calculating the change angle of the observer's perspective per unit time, the rate of change of the observer's direction is analyzed and calculated. When the direction change rate is high, increase the perspective weight to increase the sorting priority of the blocks in the new field of view, so as to quickly render the blocks entering the field of view. When the direction change rate is low, reduce the perspective weight to make the block sorting more dependent on distance and other factors; The process of dynamically calculating the rendering detail level is: Calculate the Euclidean distance between the observer and the center point of the sub-scene block, and calculate its minimum effective distance, and then use the logarithmic function combined with the distance weight coefficient to calculate the distance weight, calculate the angle between the observer's viewing direction and the normal direction of the sub-scene block, and use the logarithmic function combined with the viewing weight coefficient to calculate the viewing weight, obtain the current load of the rendering hardware, and use the logarithmic function combined with the hardware load weight coefficient to calculate the hardware load weight, add the distance weight, viewing weight and hardware load weight, and compare them with the rendering detail level range limited by the maximum rendering detail level to obtain the final rendering detail level; The final rendering detail level is calculated as: ; In the formula, is the final rendering detail level, LOD is the rendering detail level, D is the Euclidean distance between the observer and the center point of the sub-scene block, is the minimum effective distance, used to avoid singularities in logarithmic calculations, is the angle between the observer's viewing angle and the normal direction of the sub-scene block, L is the current load of the rendering hardware (ranging from 0 to 1, where 1 indicates full load), is the distance weight coefficient, is the viewing angle weight coefficient, is the hardware load weight coefficient, is the maximum rendering detail level, The range is ; Step 3, texture mapping of the deep-sea 3D scene is performed in combination with the block rendering sequence table, and the prepared texture map is mapped to the 3D scene to ensure the accuracy and fit of the texture, and according to the lighting conditions of the deep-sea environment, the real lighting effect is simulated to ensure the accuracy and realism of the lighting, and texture maps suitable for the deep-sea environment are collected from multiple channels such as public ocean databases, multi-beam sonar systems, side-scan sonars, laser radars (LiDAR) and satellite remote sensing. According to the block rendering sequence table, different blocks in the deep-sea 3D scene are determined, and each block contains corresponding model and texture information for targeted texture mapping. The model in the deep-sea 3D scene is UV split using 3D modeling software, and the surface of the 3D model is unfolded into a 2D plane using UV splitting, and texture coordinates are defined for each object in the deep-sea 3D scene, ensuring that the texture coordinates after UV splitting correspond to the model surface one by one to avoid texture stretching or distortion, and the prepared texture map is mapped to the corresponding model surface. Use texture mapping tools (Photoshop) to adjust and optimize textures to ensure accuracy and fit of textures, and apply texture filtering techniques (bilinear interpolation, trilinear interpolation, etc.) to improve texture mapping clarity and reduce jagged and moiré phenomena. According to the lighting conditions of the deep-sea environment, select the lighting model and set the parameters of the lighting model. During the rendering process, calculate the lighting effect of each pixel according to the lighting model and lighting parameters, including calculating the distance from the light source to the pixel, the angle between the light and the normal of the pixel, to determine the lighting intensity and color of the pixel. Among them, the lighting models include the Phong lighting model and the Cook-Torrance lighting model. The Phong lighting model is suitable for simulating specular reflection and diffuse reflection, while the Cook-Torrance lighting model is more suitable for simulating complex lighting effects, such as subsurface scattering. The parameters of the lighting model include light source position, light source color, light intensity, ambient light, diffuse reflection coefficient, specular reflection coefficient, etc. Step 4, select and adjust the settings of the renderer, then load the deep sea 3D scene, and render the nodes of each sub-scene block one by one; Step 5: Establish a quality assessment system to conduct a comprehensive assessment of the rendering results to ensure that the rendering quality and realism meet the expected requirements.

[0021] Embodiment 2, as Figure 2 As shown, based on Example 1, the present invention provides a technical solution: Preferably, in step 4, the process of rendering each sub-scene block node is: According to the characteristics and rendering requirements of the deep-sea 3D scene, the renderer required for deep-sea 3D scene rendering is selected in combination with the available hardware configuration, including CPU renderer (scanline renderer that comes with 3ds Max) and GPU renderer (Redshift, OctaneRender, etc.). Among them, for deep-sea scenes that require high-quality rendering and complex light and shadow effects, GPU renderer can provide faster and more realistic rendering effects. According to the requirements of the deep-sea scene, adjust the global settings of the renderer, including resolution, aspect ratio and frame rate, to ensure that the output format and color space meet the project requirements, and adjust the lighting settings of the renderer according to the lighting conditions of the deep-sea environment, including light source type, light source position, light source color, light intensity parameters, as well as ambient light and shadow effects. According to the material requirements of the deep-sea scene, adjust the material settings of the renderer, set the reflectivity, refractive index and texture map parameters of the material to simulate the real underwater material effect, import the pre-processed deep-sea 3D scene data into the renderer, and load the prepared texture map into the renderer, associate it with the corresponding model, and ensure the texture map. The path is correct and matches the UV coordinates of the model. According to the block rendering sequence table, the scene structure is organized and the model is assigned to different sub-scene blocks. A node is created for each sub-scene block, and the corresponding rendering order and priority are set. For each node, check whether it is in the viewport. If so, render it. For nodes outside the viewport, remove them to reduce unnecessary rendering calculations and improve rendering efficiency. For nodes in the viewport, load their corresponding model data and analyze the node similarity. Use the batch processing function of the renderer to merge multiple model nodes with high similarity into a batch for rendering to improve rendering performance. Monitor the rendering progress, adjust the rendering settings or pause / continue rendering as needed. After rendering is completed, save the rendering results, select different output formats (JPEG, PNG, EXR, etc.), and set the output path and file name. The process of analyzing node similarity is: According to the camera's viewing angle and viewing distance, the cone's six planes (left, right, top, bottom, near, and far) are analyzed in combination with the cone culling technology. For each node, determine whether it is completely outside the cone. If the node's bounding box does not intersect the cone, the node is culled, and the nodes outside the cone are removed from the rendering queue to avoid unnecessary rendering calculations. For the nodes in the view area, load their corresponding model data, including vertex coordinates, normals, and texture coordinates, and check whether the data format meets the requirements of the renderer to ensure the integrity and correctness of the model data. Calculate based on the model's geometry, texture map, and material parameters, analyze node similarity, and set a similarity threshold. Group nodes with similarity higher than the threshold into a group for batch rendering. Use the renderer's batch processing function to merge the data of model nodes with high similarity into a data structure, create a mapper and an actor, pass the merged data to the mapper, and associate the mapper with the actor, and then add the actor to the renderer for batch rendering. The calculation process of node similarity is: For node i and node j, extract the vertex coordinates of their geometric shapes respectively, calculate the Euclidean distance between each vertex, and sum and average them to obtain the geometric shape difference. For node i and node j, extract the pixel values ​​of their texture maps respectively, calculate the Euclidean distance between each pixel, and sum and average them to obtain the texture map difference. For node i and node j, extract their material parameters respectively, calculate the absolute difference between each material parameter, and perform weighted summation to obtain the material parameter difference. Add the geometric shape difference, texture map difference and material parameter difference, take the square root, and then use the square root result plus 1 as the denominator to calculate the final node similarity. The expression of node similarity is: ; ; ; ; In the formula, is the similarity between node i and node j, ranging from 0 to 1. The closer the value is to 1, the more similar the two nodes are. is the difference in geometric shapes, indicating the degree of difference between the geometric shapes of nodes i and j. and are the coordinates of the u-th vertex of node i and node j respectively, N is the number of vertices, is the difference in texture maps, indicating the degree of difference between the texture maps of node i and node j. and are the y-th texture pixel values ​​of nodes i and j respectively, M is the number of texture pixels, is the difference in material parameters, indicating the degree of difference between the material parameters of node i and node j. and are the lth material parameter values ​​of node i and node j respectively, is the weight coefficient used to adjust the importance of different material parameters, K is the number of material parameters, Represents the Euclidean distance (L2 norm), which is used to calculate the distance between two vectors. , , All are zero time, =1, indicating that nodes i and j are completely similar. When the difference increases, Approaching zero, the more similar the geometry, texture map and material parameters of nodes i and j are, , , The smaller, the The larger it is, the higher the similarity is.

[0022] Embodiment 3, as Figure 3 As shown, based on Embodiment 1-2, the present invention provides a technical solution: Preferably, in step 5, the process of comprehensively evaluating the rendering result is: Based on the rendering requirements of the deep-sea environment, the evaluation indicators for rendering quality evaluation are determined, namely image clarity, image authenticity, light and shadow effects, material texture, resource consumption, rendering efficiency, stability and compatibility. Among them, image clarity measures the detail performance and anti-aliasing effect of the rendered image. Image authenticity evaluates the similarity between the rendered image and the real deep-sea environment, including color restoration, object proportion and shape, etc. Light and shadow effects evaluate the simulation effect of the light source, such as the propagation, reflection, refraction of light and the naturalness of shadows. Material texture determines whether the material of the surface of the rendered object is realistic, such as the softness of seaweed and the roughness of rocks. Resource consumption measures the usage of computing resources (such as CPU, GPU, and memory) by the rendering process. Rendering efficiency evaluates the rendering speed, that is, the time required to render a frame. Stability determines whether the rendering process is stable and whether it is prone to crashes or errors. Compatibility evaluates the compatibility of the rendering system in different hardware and software environments. Combined with historical data of deep-sea environment rendering, the baseline value of each evaluation indicator is determined. A quality evaluation system is established by combining various evaluation indicators. Image clarity is determined by comparing historical rendered images to an acceptable resolution and anti-aliasing level. Image authenticity is evaluated by expert review. Determine a benchmark for the similarity with the real deep-sea environment. For light and shadow effects, determine a benchmark for natural light and shadow effects by analyzing the light and shadow performance in historical renderings. For material texture, determine a benchmark for material texture by comparing real materials and rendered materials. For resource consumption, determine a reasonable resource consumption range by monitoring the resource usage of historical rendering processes. For rendering efficiency, determine an acceptable rendering time range by measuring historical rendering speeds. For stability, determine a stability benchmark by analyzing crashes or errors in historical rendering processes. For compatibility, determine a compatibility benchmark by testing the performance of the rendering system in different environments. Assign corresponding weights to each evaluation indicator, calculate the difference between each evaluation indicator and its baseline value, and then comprehensively calculate the rendering quality evaluation coefficient, conduct a comprehensive evaluation of the rendering results, analyze the trend of the rendering results, compare the calculated comprehensive evaluation coefficient with the expected target, and determine whether the rendering quality meets the expected requirements. If the evaluation results do not meet the expected targets, conduct an in-depth analysis of the rendering process, find out the problems, and take corresponding improvement measures. According to the evaluation results and analysis, adjust the rendering parameters to improve the rendering quality and realism, and repeat the evaluation and optimization process until the rendering quality meets the expected requirements. The calculation process of the rendering quality evaluation coefficient is: For each evaluation metric , get its current value and baseline values , for each evaluation indicator, calculate the relative deviation between its current value and the baseline value, add the weighted deviation squares of each indicator, calculate the weighted square sum of deviations, and then take the square root of the weighted square sum of deviations, add 1 to the square root result as the denominator, and calculate the rendering quality evaluation coefficient. According to the value of the rendering quality evaluation coefficient, analyze the trend of the rendering result. If the rendering quality evaluation coefficient is close to 1, it means that the rendering quality is good. If the rendering quality evaluation coefficient is small, it is necessary to further analyze the deviation of the specific indicator to find out the problem; The expression of the rendering quality evaluation coefficient is: ; Where Q is the rendering quality evaluation coefficient, which is used to comprehensively evaluate the quality of the rendering results, n is the total number of evaluation indicators, is the weight of the kth evaluation indicator, indicating the importance of this indicator in the comprehensive evaluation. is the current value of the kth evaluation indicator, is the baseline value of the kth evaluation indicator, which is the standard value set according to the expected goal. The value range of Q is between 0 and 1. Equal to their baseline values When Q=1, it means that the rendering result fully meets the expected goal. When the deviation between the indicator value and the baseline value increases, Q approaches 0. The closer to its baseline value When Q is closer to 1, the rendering quality is higher. Conversely, when the deviation between the indicator value and the baseline value increases, the smaller Q is, the lower the rendering quality is.

[0023] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A three-dimensional scene loading and rendering method for deep-sea three-dimensional environment deduction, characterized in that: The following steps are involved: Step 1, acquiring and preprocessing various types of data of the deep-sea environment, and then gridding the terrain and objects in the deep-sea environment; Step 2: establish a deep-sea 3D scene based on the pre-processed deep-sea environment data, and perform even segmentation of the scene to obtain a number of sub-scene blocks, and obtain a block rendering sequence list; Step 3, texture mapping is performed on the deep-sea 3D scene in combination with the block rendering sequence table, the prepared texture map is mapped to the 3D scene, and the real lighting effect is simulated according to the lighting conditions of the deep-sea environment; Step 4, select and adjust the settings of the renderer, then load the deep sea 3D scene, and render the nodes of each sub-scene block one by one; Step 5: Establish a quality assessment system to conduct a comprehensive assessment of the rendering results.

2. The method for loading and rendering a three-dimensional scene for deep-sea three-dimensional environment deduction according to claim 1, characterized in that: In step 1, the process of gridding the terrain and objects in the deep sea environment is as follows: Use multiple data sources to obtain deep-sea environmental data, including public ocean databases, multi-beam sonar systems, side-scan sonar, lidar, and satellite remote sensing; Clean the acquired deep-sea environmental data and integrate the data from different data sources to form a unified data set; The deep-sea environment data including terrain and objects after preprocessing are gridded. For terrain gridding, the Delaunay triangulation algorithm is used to connect the terrain data points into a triangular mesh, and the resolution of the mesh is adjusted by the subdivision algorithm. For object gridding, a point cloud-based modeling method is used to generate a three-dimensional model of the object, and the object model is embedded in the terrain mesh through Boolean operations.

3. The method for loading and rendering a three-dimensional scene for deep-sea three-dimensional environment deduction according to claim 2 is characterized in that: In step 2, the process of obtaining the block rendering sequence table is as follows: Import the pre-processed deep-sea environment data into the 3D modeling software, and use the geographic coordinate system to define the coordinate system of the scene, and set the scene range and resolution; Generate a 3D terrain mesh based on the preprocessed terrain data, use the Kriging interpolation algorithm to convert discrete terrain data points into a continuous terrain surface, map the terrain mesh with the preprocessed landform texture, load the preprocessed deep-sea object model into the scene, locate and orient it according to the actual position and posture, and apply normal smoothing to optimize the object model; According to the size and object distribution of the deep-sea 3D scene, a strategy for evenly segmenting the scene is formulated so that the segmented sub-scene blocks contain the same number of terrain grids and object models. The segmentation tool provided by the 3D modeling software is used to evenly segment the deep-sea 3D scene to obtain several sub-scene blocks, and each sub-scene block is numbered; For each segmented sub-scene block, based on the visibility of the sub-scene block, the Euclidean distance between the center point of the block and the current position of the user's perspective is calculated, and all sub-scene blocks are sorted from near to far according to the distance, and then the rendering priority of each sub-scene block is determined, and the rendering priority and related information of each sub-scene block are sorted into a block rendering sequence table, and blocks closer to the observer are rendered first, wherein the rendering sequence table includes the number, rendering priority and rendering parameter information of the sub-scene block; According to the observer's movement speed and direction change factors, the weight and distance factor of the sub-scene block sorting are dynamically adjusted, and the block rendering sequence table is updated in real time. Combined with the sorting position of the sub-scene blocks, the observer's viewing direction and the load of the rendering hardware, the rendering detail level is dynamically calculated for each sub-scene block. Then, according to the order of the block rendering sequence table, multiple small rendering slices are aggregated into batch rendering, and the rendering queue is managed using a rendering scheduler.

4. The method for loading and rendering a three-dimensional scene for deep-sea three-dimensional environment deduction according to claim 3 is characterized in that: The process of dynamically calculating the rendering detail level is as follows: Calculate the Euclidean distance between the observer and the center point of the sub-scene block, and calculate its minimum effective distance, and then use the logarithmic function combined with the distance weight coefficient to calculate the distance weight; Calculate the angle between the observer's viewing angle and the normal direction of the sub-scene block, and use the logarithmic function combined with the viewing angle weight coefficient to calculate the viewing angle weight; Get the current load of the rendering hardware and calculate the hardware load weight using a logarithmic function combined with the hardware load weight coefficient; The final rendering level of detail is obtained by adding the distance weight, viewing angle weight, and hardware load weight and comparing it with the rendering level of detail range limited by the maximum rendering level of detail.

5. The method for loading and rendering a three-dimensional scene for deep-sea three-dimensional environment deduction according to claim 4, characterized in that: In step 3, the texture mapping process is: Texture maps suitable for deep-sea environments are collected from public ocean databases, multi-beam sonar systems, side-scan sonars, lidars, and satellite remote sensing. Different blocks in the deep-sea 3D scene are determined according to the block rendering sequence table. Each block contains corresponding model and texture information. Use 3D modeling software to perform UV splitting on the model in the deep-sea 3D scene, use UV splitting to unfold the surface of the 3D model into a 2D plane, and define texture coordinates for each object in the deep-sea 3D scene to ensure that the texture coordinates after UV splitting correspond to the model surface one by one; Map the prepared texture maps to the corresponding model surface, use texture mapping tools to adjust and optimize the texture, and apply texture filtering technology to improve the clarity of texture mapping; According to the lighting conditions of the deep-sea environment, the lighting model is selected and the parameters of the lighting model are set. During the rendering process, the lighting effect of each pixel is calculated according to the lighting model and lighting parameters, including calculating the distance from the light source to the pixel, and the angle between the light and the normal of the pixel, to determine the lighting intensity and color of the pixel.

6. The method for loading and rendering a three-dimensional scene for deep-sea three-dimensional environment deduction according to claim 5, characterized in that: In step 4, the process of rendering each sub-scene block node is as follows: According to the characteristics and rendering requirements of the deep-sea 3D scene, and combined with the available hardware configuration, select the renderer required for deep-sea 3D scene rendering, including CPU renderer and GPU renderer; According to the requirements of deep-sea scenes, adjust the global settings of the renderer, including resolution, aspect ratio and frame rate. According to the lighting conditions of the deep-sea environment, adjust the lighting settings of the renderer, including light source type, light source position, light source color, light intensity parameters, as well as ambient light and shadow effects. According to the material requirements of the deep-sea scene, adjust the material settings of the renderer, set the reflectivity, refractive index and texture mapping parameters of the material to simulate the real underwater material effect. Import the pre-processed deep-sea 3D scene data into the renderer, load the prepared texture map into the renderer, associate it with the corresponding model, and match it with the UV coordinates of the model; According to the block rendering sequence table, organize the scene structure, assign the models to different sub-scene blocks, create nodes for each sub-scene block, and set the corresponding rendering order and priority; According to the order of the block rendering sequence list, traverse the nodes of each sub-scene block, and for each node, check whether it is in the view area. If so, render it; For nodes outside the viewport, remove them. For nodes within the viewport, load their corresponding model data, analyze the node similarity, and use the batch processing function of the renderer to merge multiple model nodes with high similarity into one batch for rendering. Monitor rendering progress, adjust rendering settings or pause / resume rendering as needed. After rendering is completed, save the rendering results, select different output formats, and set the output path and file name.

7. The method for loading and rendering a three-dimensional scene for deep-sea three-dimensional environment deduction according to claim 6, characterized in that: The process of analyzing node similarity is as follows: According to the camera's viewing angle and viewing distance, the six planes of the cone are analyzed in combination with the frustum culling technology. For each node, it is determined whether it is completely outside the frustum. If the bounding box of the node does not intersect the frustum, the node is culled, and the nodes outside the frustum are removed from the rendering queue. For the nodes in the viewport, load the corresponding model data, including vertex coordinates, normals, and texture coordinates, and check whether the data format meets the requirements of the renderer; Calculate based on the geometry, texture map and material parameters of the model, analyze the node similarity, set a similarity threshold, and group nodes with similarity higher than the threshold; Use the batch processing function of the renderer to merge the data of model nodes with high similarity into a data structure, create mappers and actors, pass the merged data to the mappers, associate the mappers to the actors, and then add the actors to the renderer for batch rendering.

8. The method for loading and rendering a three-dimensional scene for deep-sea three-dimensional environment deduction according to claim 7, characterized in that: The calculation process of the node similarity is: For node i and node j, extract the vertex coordinates of their geometric shapes respectively, calculate the Euclidean distance between each vertex, and sum and average them to obtain the geometric shape difference; For node i and node j, extract the pixel values ​​of their texture maps respectively, calculate the Euclidean distance between each pixel, and sum and average them to get the texture map difference; For nodes i and j, extract their material parameters respectively, calculate the absolute difference between each material parameter, and perform weighted summation to obtain the material parameter difference; The geometric shape differences, texture map differences, and material parameter differences are added together and the square root is taken. The square root result plus 1 is then used as the denominator to calculate the final node similarity.

9. The method for loading and rendering a three-dimensional scene for deep-sea three-dimensional environment deduction according to claim 8, characterized in that: In step 5, the process of comprehensively evaluating the rendering results is as follows: Based on the rendering requirements of the deep-sea environment, the evaluation indicators for rendering quality evaluation are determined, which are image clarity, image authenticity, light and shadow effects, material texture, resource consumption, rendering efficiency, stability and compatibility; Combined with historical data of deep-sea environment rendering, the baseline value of each evaluation indicator is determined, and a quality evaluation system is established by integrating various evaluation indicators; Assign corresponding weights to each evaluation indicator, calculate the difference between each evaluation indicator and its baseline value, and then comprehensively calculate the rendering quality evaluation coefficient, conduct a comprehensive evaluation of the rendering results, and analyze the trend of the rendering results; Compare the calculated comprehensive evaluation coefficient with the expected target to determine whether the rendering quality meets the expected requirements. If the evaluation result does not meet the expected target, conduct an in-depth analysis of the rendering process, find out the problem, and take corresponding improvement measures; Based on the evaluation results and analysis, adjust the rendering parameters and repeat the evaluation and optimization process until the rendering quality meets the expected requirements.

10. The method for loading and rendering a three-dimensional scene for deep-sea three-dimensional environment deduction according to claim 9, characterized in that: The calculation process of the rendering quality evaluation coefficient is: For each evaluation metric , get its current value and baseline values ,For each evaluation indicator, calculate the relative deviation between its current value and the baseline value; Add the weighted square deviations of each indicator to calculate the weighted square sum of the deviations, then take the square root of the weighted square sum of the deviations, add 1 to the square root result as the denominator, and calculate the rendering quality evaluation coefficient; According to the value of the rendering quality assessment coefficient, analyze the trend of the rendering results. If the rendering quality assessment coefficient is close to 1, it means that the rendering quality is good. If the rendering quality assessment coefficient is small, it is necessary to further analyze the deviation of specific indicators to find out the problem.

Citation Information

Patent Citations

  • Mass data object plotting method based on three-dimensional grain hardware acceleration

    CN101286225A

  • Multi-source marine geological information fusion and three-dimensional visualization modeling method

    CN118918283A

  • Ocean digital twin platform

    CN119129421A

  • Three-dimensional graph rendering method and equipment based on graph theory

    CN119540430A

  • Rendering method and device based on ray tracing and rasterization, equipment and medium

    CN119648881A

Cited By

  • VR-based rendering method and system

    CN120431231A

  • Automatic rendering method and system of building block model, medium and product

    CN120672924A

  • Urban Beidou cubic grid rapid rendering method

    CN121482242A

  • Multi-stereoscopic view volume rendering method and system based on 3D Gaussian sputtering

    CN121482243A

  • Processing surface quality visualization method based on GPU and grid search algorithm

    CN121544778A