A visual 3D engine system integrating BIM and simulation data
By analyzing the construction complexity and dynamic characteristics of the BIM rendering module and dynamically adjusting the detail level for rendering, the problem of rendering module distortion in traffic simulation scenes is solved, and the accuracy of simulation analysis and the utilization rate of rendering resources are improved.
Patent Information
- Application Number
- CN202510953750.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-11
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2045-07-11
AI Technical Summary
In traffic simulation scenarios, the existing technology suffers from jitter and other distortion features in the BIM rendering module due to the degradation of rendering performance, making it difficult to reflect the detailed rendering performance of the system and affecting the accuracy of simulation analysis.
The rendering frame, position and color of the rendering module are obtained through the data acquisition module. The construction cost index acquisition module analyzes the construction complexity of the rendering module. The rendering visualization excellence acquisition module divides the module into dynamic and static modules, and adjusts the detail level for rendering according to the displacement amplitude and construction cost index.
It effectively avoids the problem of module morphology distortion caused by the reduction of detail level consistency during the rendering process, improves the utilization of rendering resources, and ensures the accuracy of simulation results.
Smart Images

Figure CN120472075B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional visualization processing, and in particular to a visualization three-dimensional engine system that integrates BIM and simulation data. Background Art
[0002] Traffic simulation is a traffic analysis technology and method that uses computer digital models to reflect complex road traffic phenomena. Currently, traffic simulation scenarios are often constructed by importing traffic-related BIM rendering modules into 3D visualization engine systems. Due to the excessive amount of structural information within traffic simulation scenarios, such as vehicles and traffic signs, some BIM traffic modules may exhibit distortion during the simulation process. Therefore, LOD (level of detail) technology is traditionally used to simplify the model. LOD technology classifies each BIM rendering module according to the rendering level of detail. If the model is distorted during the simulation, the LOD of the module is downgraded to ensure the overall frame rate is maintained.
[0003] Since the degradation of rendering performance in actual simulation scenarios can cause specific distortion features such as jitter in the BIM rendering module, it is difficult to reflect the detailed rendering performance of the system based solely on frame rate analysis, resulting in reduced simulation analysis accuracy. At the same time, there are many types of BIM rendering modules in traffic simulation scenarios. If all modules are downgraded to a consistent fixed depth, it will further affect the accuracy of the simulation results and reduce the rendering performance of the visualization engine for the simulation scene. Summary of the Invention
[0004] The present invention provides a visual three-dimensional engine system that integrates BIM and simulation data to solve the existing problems.
[0005] The present invention provides a three-dimensional visualization engine system for integrating BIM and simulation data using the following technical solutions:
[0006] One embodiment of the present invention provides a three-dimensional visualization engine system for integrating BIM and simulation data, the system comprising the following modules:
[0007] Data acquisition module: used to obtain several rendering frames of each rendering module in each voxel after voxel imaging using a visualization 3D engine system, as well as the position of each rendering module in the rendering frame and the color of each triangle inside;
[0008] Construction cost index acquisition module: used to analyze the surface triangle density and surface texture complexity of each rendering module in each rendering frame to obtain the texture complexity of each rendering module; according to the color difference of all triangles in each rendering module, combined with the texture complexity, the construction cost index of each rendering module in each rendering frame is obtained;
[0009] Rendering Visualization Excellence Acquisition Module: This module is used to use the visualization 3D engine system to a priori divide the rendering modules into dynamic modules and static modules. Based on the displacement amplitude of the dynamic modules and static modules in each rendering frame and the next rendering frame, the module obtains the variation intensity coefficient of each rendering module in each rendering frame in combination with the construction cost index. The module also analyzes the shape and color differences between the triangles of the same rendering module and the surrounding triangles in each rendering frame and the next rendering frame to obtain the rendering visual excellence of each rendering module.
[0010] Rendering module: used to simplify the model of the static module in each rendering frame by utilizing the rendering visual excellence of the rendering frame, and perform three-dimensional simulation data fusion rendering.
[0011] Preferably, the specific steps of obtaining the texture complexity include:
[0012] In each rendering frame, the ratio of the number of triangles of each rendering module to the maximum number of triangles of all rendering modules in the rendering frame is recorded as the local refinement level of each rendering module;
[0013] Obtain the number of edges of all triangles in the region of each rendering module in the rendering frame, and record it as the number of textures of each rendering module in each rendering frame;
[0014] The ratio of the number of textures of each rendering module to the maximum number of textures of all rendering modules in the rendering frame to which it belongs is recorded as the structural detail of each rendering module in each rendering frame;
[0015] The texture complexity of each rendering module in each rendering frame is obtained, where the texture complexity is in direct proportion to the structural detail and the local refinement.
[0016] Preferably, the specific steps of obtaining the construction cost indicator include:
[0017] In each rendering frame, the colors of all triangles of each rendering module are projected into the LAB color space to obtain the projection point of the color of each triangle of each rendering module in the LAB color space, which is recorded as the color position of each triangle of each rendering module;
[0018] The distance between the color position of each triangle of each rendering module and the centroid of the color positions of all triangles of each rendering module is recorded as the color deviation distance of each triangle of each rendering module in each rendering frame;
[0019] A construction cost index of each rendering module in each rendering frame is obtained, where the construction cost index is directly proportional to the average value of the color deviation distance of all triangles of the rendering module and the texture complexity.
[0020] Preferably, the prior division of the rendering modules by the visualization 3D engine system to obtain dynamic modules and static modules, and obtaining the variation intensity coefficient of each rendering module in each rendering frame based on the displacement amplitude of the dynamic modules and the static modules in each rendering frame and the next rendering frame in combination with the construction cost index include:
[0021] Read the simulation task input into the test phase of the visualization 3D engine system, record the dynamic rendering module in the simulation task as a dynamic module, and record the static rendering module as a static module;
[0022] Normalize the distance between the position of each dynamic module in each rendering frame and the next rendering frame, and record it as the displacement amplitude of each dynamic module;
[0023] The displacement amplitude of the static module is recorded as 0;
[0024] The construction cost index is corrected using the displacement amplitudes of the dynamic modules and the static modules to obtain a variation intensity coefficient of each rendering module in each rendering frame.
[0025] Preferably, the specific steps of obtaining the variation intensity coefficient include:
[0026] The displacement amplitude of the jth rendering module in the i-th rendering frame is recorded as ;
[0027] The construction cost of the jth rendering module in the i-th rendering frame is indicated as ;
[0028]
[0029] in, is the variable intensity coefficient of the jth rendering module in the i-th rendering frame, is the dynamic and static determination coefficient of the jth rendering module in the i-th rendering frame. If the jth rendering module in the i-th rendering frame is a dynamic module, ; If the jth rendering module in the i-th rendering frame is a static module, .
[0030] Preferably, analyzing the shape and color differences between the triangles of the same rendering module and the surrounding triangles in each rendering frame and the next rendering frame to obtain the rendering visual excellence of each rendering module includes:
[0031] The absolute value of the difference in the number of pixels of each triangle in voxel imaging between each rendering frame and the next frame of the same rendering module is recorded as the morphological difference of each triangle in each rendering module in each rendering frame;
[0032] The color difference of each triangle face of the same rendering module in each rendering frame and the next frame is recorded as the color distortion difference of each triangle face of each rendering module in each rendering frame;
[0033] Constructing a distortion code value of each triangle face of each rendering module in each rendering frame according to the color distortion difference and the morphological difference of the triangle face;
[0034] The rendering visual excellence of each rendering frame is obtained according to the distortion code values of all triangles of each rendering module in each rendering frame and the variation intensity coefficient of each rendering module in each rendering frame.
[0035] Preferably, the color distortion difference includes:
[0036] The Euclidean distance between the projection points of the colors of each triangle in each rendering frame and the next frame of the same rendering module in the LAB color space is recorded as the color distortion difference of each triangle in each rendering module in each rendering frame.
[0037] Preferably, the specific steps of obtaining the rendering visual excellence include:
[0038] The test distortion of the jth rendering module in the i-th rendering frame The calculation method is:
[0039]
[0040] in, is the displacement amplitude of the jth rendering module in the i-th rendering frame; is the degree of morphological distortion of the jth rendering module in the i-th rendering frame; is the variable intensity coefficient of the jth rendering module in the i-th rendering frame;
[0041] The average of the inversely proportional normalized values of the test distortion of each rendering module in all rendering frames is recorded as the rendering visual excellence of each rendering module.
[0042] Preferably, the specific steps of obtaining the distorted code value include:
[0043] The product of the color distortion difference and the morphological difference of each triangle face of each rendering module in each rendering frame is recorded as the distortion degree of each triangle face of each rendering module in each rendering frame;
[0044] The grayscale value difference of the pixel points in the LBP code algorithm is replaced by the distortion degree of each triangle face of each rendering module in each rendering frame, and the LBP code value of each triangle face of each rendering module in each rendering frame is obtained. After the LBP code value is linearly normalized, it is recorded as the distortion code value of each triangle face of each rendering module in each rendering frame.
[0045] Preferably, the method of simplifying the model of the static module in each rendering frame by utilizing the rendering visual excellence of the rendering frame and performing three-dimensional simulation data fusion rendering includes:
[0046] Preset a prior level of detail, obtain the product of the rendering visual excellence of each static module and the prior level of detail, and round up the product to an integer as the corrected level of detail of each static module;
[0047] During the experimental phase, each dynamic module is rendered using the prior level of detail, and each static module is rendered using the revised level of detail to obtain a visual 3D model.
[0048] The beneficial effects of the technical solution of the present invention are as follows: the present invention uses a visualization 3D engine system to obtain several rendering frames of each rendering module after voxel imaging, as well as the position of each rendering module in the rendering frames and the color of each internal triangle; and obtains the construction cost index of the rendering module by analyzing the complexity of the triangle density and texture of the rendering module surface and the color difference of each triangle on the surface in the rendering frame, reflecting the computing resource usage of the rendering module during rendering; further divides the rendering module into static modules and dynamic modules, analyzes the displacement of the static modules and dynamic modules in different frames, and obtains the variation intensity coefficient of each rendering module, which is used to reflect that the dynamic module occupies more resources and is used to not simplify the dynamic module when subsequently simplifying the model; further analyzes the morphological changes and color changes when the module has insufficient computing resources and produces morphological distortion, and obtains the rendering visual excellence of each rendering module, so as to modify the detail level of the static module according to the rendering visual excellence to avoid the static module from occupying too many computing resources. This not only avoids the problem of morphological distortion of the rendering module caused by reduced detail level consistency during the rendering process, but also improves the utilization rate of rendering resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0050] Figure 1 This is a structural block diagram of a visual three-dimensional engine system that integrates BIM and simulation data in the present invention. DETAILED DESCRIPTION
[0051] To further illustrate the technical means and effectiveness of the present invention in achieving its intended purpose, the following, in conjunction with the accompanying drawings and preferred embodiments, details the specific implementation, structure, features, and effectiveness of a visualization 3D engine system for integrating BIM and simulation data, as proposed in accordance with the present invention. In the following description, references to "one embodiment" or "another embodiment" do not necessarily refer to the same embodiment. Furthermore, specific features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
[0052] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0053] The following describes in detail a specific solution of a visualization three-dimensional engine system for integrating BIM and simulation data provided by the present invention with reference to the accompanying drawings.
[0054] See also Figure 1 , which shows a structural block diagram of a visualization 3D engine system for integrating BIM and simulation data provided by one embodiment of the present invention. The system includes the following modules:
[0055] The data acquisition module 101 is used to obtain, using a visualization 3D engine system, several rendering frames of each rendering module in each voxel after voxel imaging, as well as the position of each rendering module in the rendering frame and the color of each triangle inside.
[0056] It should be noted that the purpose of this embodiment is to analyze the distortion of the rendered data during rendering, so as to adaptively reduce the level of detail of the modules that have distortion during the rendering process, thereby avoiding the inaccurate rendering results caused by the consistency reduction of the detailed structure and reducing the load of the rendering model. Therefore, it is necessary to first collect the data to be rendered.
[0057] It should be noted that the simulation task includes a testing phase and an experimental phase when rendering. The testing phase is used to test the rendering effects of each rendering module, and the experimental phase is used to generate simulation results. Therefore, the analysis performed in this embodiment is all performed in the testing phase of the simulation task. After the data to be rendered is input into the test model to obtain the corrected detail level of each rendering module in each rendering frame, the corrected detail level is input into the experimental phase to obtain the simulation results.
[0058] Specifically, after the simulation task is input into the visualization 3D engine system, the visualization system will automatically divide the simulation task into several voxels and the rendering modules therein, where each voxel is the smallest unit of the simulation task in the 3D space division, and each voxel is also used as the smallest rendering unit for rendering.
[0059] Furthermore, each voxel is input into the test phase of the visualization 3D engine system, and voxel imaging is performed after rendering each voxel to obtain the position of each rendering module in each voxel in each rendering frame and the color of each triangle.
[0060] It should be noted that the position of the rendering module is the center of mass of the stitching area of all triangular faces in the rendering frame after the rendering module undergoes voxel imaging in the rendering frame presented by the voxels; since in three-dimensional data, each rendering module is a three-dimensional structure obtained by stitching together planes consisting of three corner points, there are still several triangular faces projected to two dimensions after voxel imaging, and each triangular face contains color data, and the color data is a preset parameter for the simulation task.
[0061] Construction cost index acquisition module 102: used to analyze the surface triangle density and surface texture complexity of each rendering module in each rendering frame to obtain the texture complexity of each rendering module; according to the color difference of all triangles in each rendering module, combined with the texture complexity, the construction cost index of each rendering module in each rendering frame is obtained.
[0062] It should be noted that during the rendering process of the BIM rendering module by the visualization engine, the higher the construction complexity of the BIM rendering module, the more computing resources will be consumed during rendering, and the greater the possibility of performance distortion during the simulation process. Therefore, we first analyze the underlying construction parameters of the BIM rendering module to preliminarily reflect the construction difficulty of the BIM rendering module.
[0063] It should be further explained that in rendering modeling, triangles are the smallest units that constitute the BIM rendering model. 3D programs use triangles to approximate the shape of objects. The more triangles there are, the smoother the surface is and the more detailed and realistic the object texture looks; the fewer triangles there are, the more angular the surface texture is and the rougher the object looks. At the same time, the rendering time reflects the difficulty level of building the BIM rendering module.
[0064] Preferably, in each rendering frame, the surface triangle density and surface texture complexity of each rendering module are analyzed to obtain the texture complexity of each rendering module. The specific steps include:
[0065] In each rendering frame, the ratio of the number of triangles of each rendering module to the maximum number of triangles of all rendering modules in the rendering frame is recorded as the local refinement level of each rendering module;
[0066] Obtain the number of edges of all triangles in the region of each rendering module in the rendering frame, and record it as the number of textures of each rendering module in each rendering frame;
[0067] The ratio of the number of textures of each rendering module to the maximum number of textures of all rendering modules in the rendering frame to which it belongs is recorded as the structural detail of each rendering module in each rendering frame;
[0068] The texture complexity of each rendering module in each rendering frame is obtained, where the texture complexity is in direct proportion to the structural detail and the local refinement.
[0069] As an example, in this embodiment, the product of the structural detail and the local detail of each rendering module in each rendering frame is recorded as the texture complexity of each rendering module in each rendering frame.
[0070] It should be noted that the more triangles there are in the rendering module, the more load the 3D software needs to invest in rendering each triangle during the rendering process. Therefore, in the same rendering frame, the more triangles there are in the rendering module, the finer it is. Similarly, since the triangles of the rendering module share edges, and the edges of the triangles are usually the intersections of the details of the rendering module, the more edges there are, the more details the rendering module has and the more refined the structure. Therefore, during the rendering process, the texture complexity of the rendering module is greater.
[0071] It should be noted that when rendering voxels, the voxel imaging result after each rendering indicates the result of that rendering. The rendering result includes not only the changes in the rendering module, but also the changes in color within each triangle. If the triangles of a rendering module have more colors involved during rendering and the color differences are more obvious, more resources will be required to process the color boundaries during rendering, and the cost of building the rendering module will be greater, thus avoiding the problem of uneven color transitions. Therefore, the construction cost index of each rendering module can be obtained by analyzing the color differences of the triangles in the rendering module and combining it with texture complexity.
[0072] Preferably, the specific steps of obtaining the construction cost index of each rendering module in each rendering frame according to the color difference of all triangles in each rendering module and combining the texture complexity are:
[0073] In each rendering frame, the colors of all triangles of each rendering module are projected into the LAB color space to obtain the projection point of the color of each triangle of each rendering module in the LAB color space, which is recorded as the color position of each triangle of each rendering module;
[0074] The distance between the color position of each triangle of each rendering module and the centroid of the color positions of all triangles of each rendering module is recorded as the color deviation distance of each triangle of each rendering module in each rendering frame;
[0075] A construction cost index of each rendering module in each rendering frame is obtained, where the construction cost index is directly proportional to the average value of the color deviation distance of all triangles of the rendering module and the texture complexity.
[0076] As an example, in this embodiment, the product of the average value of the color deviation distances of all triangles of each rendering module in each rendering frame and the texture complexity is recorded as the construction cost index of each rendering module in each rendering frame.
[0077] It should be noted that the centroid of the color positions of all triangles of each rendering module is used as the geometric center of each rendering module in the LAB color space, indicating the center around which the color of the rendering module revolves. Each rendering module has its own main color system. Therefore, if the color of a rendering module revolves around a main color system and is closer to the main color system, fewer colors will be called during rendering, and the rendering difficulty will be lower. Conversely, the construction cost index of constructing the rendering module will be greater.
[0078] Rendering visualization excellence acquisition module 103: used to use the visualization three-dimensional engine system to a priori divide the rendering modules to obtain dynamic modules and static modules, and obtain the variation intensity coefficient of each rendering module in each rendering frame based on the displacement amplitude of the dynamic modules and static modules in each rendering frame and the next rendering frame in combination with the construction cost index; analyze the shape and color differences between the triangles of the same rendering module and the surrounding triangles in each rendering frame and the next rendering frame to obtain the rendering visual excellence of each rendering module.
[0079] It should be noted that the construction cost index of each BIM rendering module is obtained from the static perspective of a single rendering frame. The larger the construction cost index, the more likely it is that the module will be distorted due to high consumption of computing resources during the simulation process. In traffic simulation scenes, there are mobile modules such as moving cars and pedestrians, as well as static modules such as road signs. During 3D rendering, mobile modules require a higher dynamic processing load than static modules. Therefore, this embodiment divides the rendering modules according to their displacement in adjacent frames, and analyzes them to obtain the variable intensity coefficient of each rendering module.
[0080] Preferably, the specific steps of using a visualization 3D engine system to a priori divide the rendering modules to obtain dynamic modules and static modules, and obtaining the variation intensity coefficient of each rendering module in each rendering frame based on the displacement amplitude of the dynamic modules and static modules in each rendering frame and the next rendering frame in combination with the construction cost index are as follows:
[0081] Read the simulation task input into the test phase of the visualization 3D engine system, record the dynamic rendering module in the simulation task as a dynamic module, and record the static rendering module as a static module;
[0082] Normalize the distance between the position of each dynamic module in each rendering frame and the next rendering frame, and record it as the displacement amplitude of each dynamic module;
[0083] The displacement amplitude of the static module is recorded as 0;
[0084] The construction cost index is corrected using the displacement amplitudes of the dynamic modules and the static modules to obtain a variation intensity coefficient of each rendering module in each rendering frame.
[0085] It should be noted that this embodiment uses a maximum-minimum normalization algorithm to normalize the distance of the positions, and the maximum value and minimum value are respectively the maximum value and minimum value of the distance of the positions of all rendering modules in each rendering frame in the next rendering frame.
[0086] Specifically, the construction cost index is modified by using the displacement amplitudes of the dynamic module and the static module to obtain the variation intensity coefficient of each rendering module in each rendering frame in the following manner:
[0087] As an example, the variable intensity coefficient of the jth rendering module in the i-th rendering frame is calculated as follows:
[0088] The displacement amplitude of the jth rendering module in the i-th rendering frame is recorded as ;
[0089] The construction cost of the jth rendering module in the i-th rendering frame is indicated as ;
[0090]
[0091] in, is the variable intensity coefficient of the jth rendering module in the i-th rendering frame, is the dynamic and static determination coefficient of the jth rendering module in the i-th rendering frame. If the jth rendering module in the i-th rendering frame is a dynamic module, ; If the jth rendering module in the i-th rendering frame is a static module, .
[0092] It should be noted that the analysis performed in this embodiment is all conducted during the testing phase. If the rendering module experiences a drop in rendering performance due to excessive consumption of computing resources during rendering, this can lead to jitter and distortion of the rendering module's morphological edges. Therefore, if the morphological distortion of the rendered model during the testing phase is stronger, and the variation intensity coefficient reflected by the rendering module's own construction cost index and dynamic and static movement is larger, then the BIM rendering module is more likely to experience simulation chaos and distortion during the experimental phase, and the rendering module needs to adjust its level of detail. Therefore, this embodiment obtains the rendering visual excellence of each rendering frame by analyzing the morphological differences of triangles and the color rendering of the same rendering module in adjacent rendering frames.
[0093] Preferably, the specific method of analyzing the shape and color differences between the triangles of the same rendering module and the surrounding triangles in each rendering frame and the next rendering frame to obtain the rendering visual excellence of each rendering module is:
[0094] The area difference of each triangle face of the same rendering module in each rendering frame and the next frame is recorded as the morphological difference of each triangle face of each rendering module in each rendering frame;
[0095] The color difference of each triangle face of the same rendering module in each rendering frame and the next frame is recorded as the color distortion difference of each triangle face of each rendering module in each rendering frame;
[0096] Constructing a distortion code value of each triangle face of each rendering module in each rendering frame according to the color distortion difference and the morphological difference of the triangle face;
[0097] The rendering visual excellence of each rendering frame is obtained according to the distortion code values of all triangles of each rendering module in each rendering frame and the variation intensity coefficient of each rendering module in each rendering frame.
[0098] It should be noted that if the same rendering module is distorted in different rendering frames, its shape will change, which is specifically manifested in the change of the shape and color of each triangle in the rendering module. In this case, the rendering module is more likely to have morphological distortion during the testing phase.
[0099] Specifically, the specific method of recording the area difference of each triangle face of the same rendering module in each rendering frame and the next frame as the morphological difference of each triangle face of each rendering module in each rendering frame is as follows:
[0100] The absolute value of the difference in the number of pixels of each triangle in voxel imaging between each rendering frame and the next frame of the same rendering module is recorded as the morphological difference of each triangle in each rendering module in each rendering frame.
[0101] Furthermore, the color difference of each triangle face of the same rendering module in each rendering frame and the next frame is recorded as the color distortion difference of each triangle face of each rendering module in each rendering frame as follows:
[0102] The Euclidean distance between the projection points of the colors of each triangle in each rendering frame and the next frame of the same rendering module in the LAB color space is recorded as the color distortion difference of each triangle in each rendering module in each rendering frame.
[0103] It should be noted that since adjacent triangles in the rendering module share the same edge and the triangles are the surface of the rendering module, whether the rendering module itself is dynamic or the rendering module undergoes morphological distortion, only the size and position of the triangles in the rendering module will change, and the neighborhood relationship of the triangles will not be changed. Therefore, this embodiment uses the LBP code value in the image to reflect the shape and color changes of each triangle and its neighboring triangles. The LBP code value can summarize the difference between a pixel point and its neighboring pixel points into one value. If the value is larger, it indicates that the neighborhood of the pixel point has changed. Similarly, if the LBP code value of the triangle is larger, it indicates that morphological distortion is more likely to occur.
[0104] Furthermore, according to the color distortion difference and the morphological difference of the triangular face, a specific method of constructing the distortion code value of each triangular face of each rendering module in each rendering frame is as follows:
[0105] The product of the color distortion difference and the morphological difference of each triangle face of each rendering module in each rendering frame is recorded as the distortion degree of each triangle face of each rendering module in each rendering frame;
[0106] The grayscale value difference of the pixel points in the LBP code algorithm is replaced by the distortion degree of each triangle face of each rendering module in each rendering frame, and the LBP code value of each triangle face of each rendering module in each rendering frame is obtained. After the LBP code value is linearly normalized, it is recorded as the distortion code value of each triangle face of each rendering module in each rendering frame;
[0107] It should be noted that the LBP code algorithm for obtaining the LBP code value is a known technique and will not be described in detail in this embodiment.
[0108] Furthermore, based on the distortion code values of all triangles of each rendering module in each rendering frame and the variation intensity coefficient of each rendering module in each rendering frame, the specific method for obtaining the rendering visual excellence of each rendering module is as follows:
[0109] Obtain the average value of the distortion code values of all triangles of each rendering module in each rendering frame, and record it as the morphological distortion degree of each rendering module in each rendering frame;
[0110] The test distortion of the jth rendering module in the i-th rendering frame The calculation method is:
[0111]
[0112] in, is the displacement amplitude of the jth rendering module in the i-th rendering frame; is the degree of morphological distortion of the jth rendering module in the i-th rendering frame; is the variable intensity coefficient of the jth rendering module in the i-th rendering frame; is the dynamic and static determination coefficient of the jth rendering module in the i-th rendering frame. If the jth rendering module in the i-th rendering frame is a dynamic module, ; If the jth rendering module in the i-th rendering frame is a static module, .
[0113] It should be noted that since the dynamic module itself will change in different rendering frames, it will cause errors in the degree of morphological distortion of the jth rendering module in the i-th rendering frame. Therefore, the displacement amplitude is used to satisfy The morphological distortion of the dynamic module is corrected to avoid interference from the dynamic module itself. The larger the value of the variation intensity coefficient, the more important the jth rendering module in the i-th rendering frame is between two adjacent frames. Its rendering is more likely to require more computing resources. Insufficient computing resources will lead to test distortion.
[0114] Furthermore, the average of the inversely proportional normalized values of the test distortion of each rendering module in all rendering frames is recorded as the rendering visual excellence of each rendering module.
[0115] It should be noted that the The model only shows negative correlation and the output of the constraint model is in In the interval, As the input of this model, it can be replaced by other models with the same purpose in specific implementation. This embodiment is just based on The model is used as an example for description without any specific limitation.
[0116] It should be noted that if the test distortion of all rendering modules in each rendering frame is greater, it means that the rendering frame is more stable, contains more static modules that are less complex, and does not require more computing resources for rendering. The smaller the value, the more it indicates that the static modules in the rendering frame that require less computing resources need to have their detail levels lowered, thereby transferring more computing resources to the dynamic modules.
[0117] Rendering module 104: used to simplify the model by utilizing the rendering visual excellence of each rendering module and perform 3D simulation data fusion rendering.
[0118] It should be noted that the above obtains the rendering visual excellence of each rendering module. The smaller the value, the worse the rendering visual condition of the rendering module. Therefore, it is necessary to allocate computing resources more reasonably to avoid allocating more computing resources to static modules with less computing power, resulting in a waste of computing resources, and the dynamic module cannot obtain sufficient computing resources, resulting in distorted rendering results. Therefore, this embodiment uses the rendering visual excellence of each rendering module to simplify the model and perform three-dimensional simulation data fusion rendering.
[0119] Specifically, a prior level of detail is preset. This embodiment uses four levels as an example of a prior level of detail. The product of the rendering visual excellence of each static module and the prior level of detail is obtained, and the product is rounded up to an integer to be used as the corrected level of detail for each static module.
[0120] During the experimental phase, each dynamic module is rendered using the prior level of detail, and each static module is rendered using the revised level of detail to obtain a visual 3D model.
[0121] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A three-dimensional visualization engine system integrating BIM and simulation data, characterized in that: The system includes the following modules: Data acquisition module: used to obtain several rendering frames of each rendering module in each voxel after voxel imaging using a visualization 3D engine system, as well as the position of each rendering module in the rendering frame and the color of each triangle inside; Construction cost index acquisition module: used to analyze the surface triangle density and surface texture complexity of each rendering module in each rendering frame to obtain the texture complexity of each rendering module; according to the color difference of all triangles in each rendering module, combined with the texture complexity, the construction cost index of each rendering module in each rendering frame is obtained; Rendering Visualization Excellence Acquisition Module: This module is used to use the visualization 3D engine system to a priori divide the rendering modules into dynamic modules and static modules. Based on the displacement amplitude of the dynamic modules and static modules in each rendering frame and the next rendering frame, the module obtains the variation intensity coefficient of each rendering module in each rendering frame in combination with the construction cost index. The module also analyzes the shape and color differences between the triangles of the same rendering module and the surrounding triangles in each rendering frame and the next rendering frame to obtain the rendering visual excellence of each rendering module. Rendering module: used to simplify the model by utilizing the rendering visual excellence of each rendering module and perform 3D simulation data fusion rendering; The method uses the visualization 3D engine system to divide the rendering modules a priori to obtain dynamic modules and static modules, and obtains the variation intensity coefficient of each rendering module in each rendering frame based on the displacement amplitude of the dynamic modules and the static modules in each rendering frame and the next rendering frame in combination with the construction cost index, including: Read the simulation task input into the test phase of the visualization 3D engine system, record the dynamic rendering module in the simulation task as a dynamic module, and record the static rendering module as a static module; Normalize the distance between the position of each dynamic module in each rendering frame and the next rendering frame, and record it as the displacement amplitude of each dynamic module; The displacement amplitude of the static module is recorded as 0; Using the displacement amplitudes of the dynamic modules and the static modules, the construction cost index is modified to obtain a variation intensity coefficient of each rendering module in each rendering frame; The specific steps of obtaining the variation intensity coefficient include: The displacement amplitude of the jth rendering module in the i-th rendering frame is recorded as ; The construction cost of the jth rendering module in the i-th rendering frame is indicated as ; in, is the variable intensity coefficient of the jth rendering module in the i-th rendering frame, is the dynamic and static determination coefficient of the jth rendering module in the i-th rendering frame. If the jth rendering module in the i-th rendering frame is a dynamic module, ; If the jth rendering module in the i-th rendering frame is a static module, .
2. A three-dimensional visualization engine system for fusion of BIM and simulation data according to claim 1, characterized in that: The specific steps of obtaining the texture complexity include: In each rendering frame, the ratio of the number of triangles of each rendering module to the maximum number of triangles of all rendering modules in the rendering frame is recorded as the local refinement level of each rendering module; Obtain the number of edges of all triangles in the region of each rendering module in the rendering frame, and record it as the number of textures of each rendering module in each rendering frame; The ratio of the number of textures of each rendering module to the maximum number of textures of all rendering modules in the rendering frame is recorded as the structural detail of each rendering module in each rendering frame; The texture complexity of each rendering module in each rendering frame is obtained, where the texture complexity is in direct proportion to the structural detail and the local refinement.
3. The visualization 3D engine system for fusion of BIM and simulation data according to claim 1, characterized in that: The specific steps of obtaining the construction cost indicator include: In each rendering frame, the colors of all triangles of each rendering module are projected into the LAB color space to obtain the projection point of the color of each triangle of each rendering module in the LAB color space, which is recorded as the color position of each triangle of each rendering module; The distance between the color position of each triangle of each rendering module and the centroid of the color positions of all triangles of each rendering module is recorded as the color deviation distance of each triangle of each rendering module in each rendering frame; A construction cost index of each rendering module in each rendering frame is obtained, where the construction cost index is directly proportional to the average value of the color deviation distance of all triangles of the rendering module and the texture complexity.
4. The visualization 3D engine system for fusion of BIM and simulation data according to claim 1, characterized in that: The analyzing the shape and color differences between the triangles of the same rendering module and the surrounding triangles in each rendering frame and the next rendering frame to obtain the rendering visual excellence of each rendering module includes: The absolute value of the difference in the number of pixels of each triangle in voxel imaging between each rendering frame and the next frame of the same rendering module is recorded as the morphological difference of each triangle in each rendering module in each rendering frame; The color difference of each triangle face of the same rendering module in each rendering frame and the next frame is recorded as the color distortion difference of each triangle face of each rendering module in each rendering frame; Constructing a distortion code value of each triangle face of each rendering module in each rendering frame according to the color distortion difference and the morphological difference of the triangle face; The rendering visual excellence of each rendering module is obtained according to the distortion code values of all triangles of each rendering module in each rendering frame and the variation intensity coefficient of each rendering module in each rendering frame.
5. The three-dimensional visualization engine system for fusion of BIM and simulation data according to claim 4, characterized in that: The color distortion difference includes: The Euclidean distance between the projection points of the colors of each triangle in each rendering frame and the next frame of the same rendering module in the LAB color space is recorded as the color distortion difference of each triangle in each rendering module in each rendering frame.
6. The three-dimensional visualization engine system for integrating BIM and simulation data according to claim 4, characterized in that: The specific steps of obtaining the rendering visual excellence include: The test distortion of the jth rendering module in the i-th rendering frame The calculation method is: in, is the displacement amplitude of the jth rendering module in the i-th rendering frame; is the degree of morphological distortion of the jth rendering module in the i-th rendering frame; is the variable intensity coefficient of the jth rendering module in the i-th rendering frame; The average of the inversely proportional normalized values of the test distortion of each rendering module in all rendering frames is recorded as the rendering visual excellence of each rendering module.
7. The three-dimensional visualization engine system for fusion of BIM and simulation data according to claim 4, characterized in that: The specific steps of obtaining the distortion code value include: The product of the color distortion difference and the morphological difference of each triangle face of each rendering module in each rendering frame is recorded as the distortion degree of each triangle face of each rendering module in each rendering frame; The grayscale value difference of the pixel points in the LBP code algorithm is replaced by the distortion degree of each triangle face of each rendering module in each rendering frame, and the LBP code value of each triangle face of each rendering module in each rendering frame is obtained. After the LBP code value is linearly normalized, it is recorded as the distortion code value of each triangle face of each rendering module in each rendering frame.
8. The three-dimensional visualization engine system for integrating BIM and simulation data according to claim 1, characterized in that: The method of simplifying the model by utilizing the rendering visual excellence of each rendering module and performing 3D simulation data fusion rendering includes: Preset a prior level of detail, obtain the product of the rendering visual excellence of each static module and the prior level of detail, and round up the product to an integer as the corrected level of detail of each static module; During the experimental phase, each dynamic module is rendered using the prior level of detail, and each static module is rendered using the revised level of detail to obtain a visual 3D model.
Citation Information
Patent Citations
Multi-level detail model construction method and device
CN115512029A
Large BIM model optimization method and system based on intelligent loading
CN120030661A