Real-time rendering optimization method, device and electronic equipment for building information model

By analyzing and processing the building information model data, forming rendering data and metadata organization, and selecting appropriate rendering strategies, the problem of low real-time rendering performance of building information models in the existing technology is solved, and the lightweight rendering effect optimization of large-scale building information models is achieved.

CN117115327BActive Publication Date: 2025-05-13中建三局信息科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311096254.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-25
Publication Date
2025-05-13
Estimated Expiration
2043-08-25

AI Technical Summary

Technical Problem

It is difficult for the prior art to realize real-time rendering while retaining details and accuracy in building information models, especially in large-scale building information models. Traditional rendering solutions lead to high number of DrawCalls, affecting rendering performance.

Method used

By obtaining building information model data, analytical processing obtains rendered data and metadata, and instantiate them and ID buried processing to form a rendered data organization and metadata organization. Then, using the rendering data management module and the metadata management module, select the static combined batch strategy or dynamic combined batch strategy to process the rendering data, realize the combination of dynamic batch processing and static batch processing, and optimize the rendering performance.

Benefits of technology

It has achieved lightweight rendering effect optimization for large-scale building information models, reduced the number of DrawCalls, improved rendering performance and scene bearing capacity, and supported component-level operations, improving rendering efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117115327B_ABST
    Figure CN117115327B_ABST
Patent Text Reader

Abstract

This invention relates to a real-time rendering optimization method, apparatus, electronic device, and storage medium for Building Information Modeling (BIM). The method includes: acquiring an optimization processing module comprising a rendering data management module and a metadata management module; acquiring BIM data and parsing it to obtain rendering data and metadata; processing the rendering data to obtain rendering data organization; processing the metadata to obtain metadata organization; inputting the rendering data organization into the optimization processing module; processing the rendering data organization through the rendering data management module to obtain processed rendering data; receiving external instructions and selecting operation strategies to perform corresponding rendering operations; inputting the metadata organization into the optimization processing module; processing the metadata organization through the metadata management module to obtain processed metadata information; receiving external instructions and displaying the processed metadata information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of architectural design and engineering technology, and in particular to a real-time rendering optimization method, device, electronic equipment and storage medium for a building information model. Background Art

[0002] Building Information Modeling (BIM) has become a crucial technical tool in architectural design and engineering. BIM integrates multiple aspects of building data, including geometry, material properties, and construction details. BIM rendering is the process of converting BIMs into realistic images or animations. However, due to their typically complex nature, rendering consumes significant computing resources and time.

[0003] One of the main challenges in real-time rendering of building information models (BIMs) is achieving real-time rendering while preserving the detail and accuracy of the BIM. BIMs typically contain rich structural details and material properties, but real-time rendering requires generating high-quality images in a relatively short time, which poses challenges to both computing resources and algorithms. With the development of modern computers and hardware, the computing power of central processing units (CPUs) and GPUs has increased rapidly, and the bottleneck of the number of triangles required for real-time rendering has also increased. In this context, the number of draw calls is a key indicator that restricts the performance of real-time BIM rendering.

[0004] Because of the large number of components in building information models, the use of traditional rendering solutions will result in extremely high DrawCalls. The current main solution is static batching: combining multiple objects or primitives into a large DrawCall. This can reduce communication overhead and scheduling overhead, and improve rendering efficiency. However, this solution will cause multiple components to become a whole, making it impossible to operate on a single component, causing the building information model to lose its original accuracy. In addition, there is a method of constructing a multi-level level of detail (LOD) for the building information model, which reduces rendering complexity and the number of DrawCalls through hierarchical rendering technology. However, if this method is not manually checked and adjusted, it is easy for the constructed LOD to have broken surfaces, affecting the rendering visual effect. Existing technical solutions make it difficult to optimize the lightweight rendering effect of large-scale building information models. Summary of the Invention

[0005] In view of this, it is necessary to provide a real-time rendering optimization method, device, electronic device and storage medium for building information models, so as to optimize the lightweight rendering effect of large-scale building information models.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] In a first aspect, the present invention provides a real-time rendering optimization method for a building information model, comprising:

[0008] Obtain an optimization processing module, wherein the optimization processing module includes: a rendering data management module and a metadata management module;

[0009] Acquiring building information model data, parsing the building information model data to obtain rendering data and metadata, obtaining a component ID of the rendering data, instantiating and embedding the rendering data and the component ID of the rendering data to obtain a rendering data organization, and formatting and associating the metadata and the component ID of the rendering data to obtain a metadata organization;

[0010] Inputting the rendering data organization into the optimization processing module, parsing, saving, and component management processing the rendering data organization through the rendering data management module to obtain processed rendering data, and receiving external instructions, selecting an operation strategy based on the external instructions, and performing corresponding rendering operations on the processed rendering data based on the operation strategy; the operation strategy is: a static batching strategy or a dynamic batching strategy;

[0011] The metadata organization is input into the optimization processing module, and the metadata organization is parsed and saved by the metadata management module to obtain processed metadata information, and external instructions are received, and the processed metadata information is displayed based on the external instructions.

[0012] Furthermore, the rendering data and the component ID of the rendering data are instantiated and ID embedded to obtain the rendering data organization, including:

[0013] Instantiate the material description rendering data and triangle face rendering data to obtain the header file rendering data organization;

[0014] Data ID embedding processing is performed on the triangular face rendering data and the component ID of the rendering data to obtain file rendering data organization.

[0015] Furthermore, the metadata and the component ID of the rendering data are formatted and associated with each other to obtain a metadata organization, including:

[0016] The attribute metadata and the hierarchical metadata are stored in Json format to obtain storage metadata, and the storage metadata is associated with the component ID and data of the rendering data to obtain metadata organization.

[0017] Furthermore, the rendering data management module includes: a model manager, a rendering management unit and a rendering unit; the rendering data management module parses, saves and manages the rendering data to obtain the processed rendering data, including:

[0018] Parsing, saving, and component management processing the rendering data organization by the model manager to obtain processed rendering data;

[0019] Selecting an operation strategy based on the external instruction, controlling the rendering management unit based on the operation strategy, generating an overall building information model rendering instruction, sending the processed rendering data to the rendering unit, and controlling the rendering unit to perform a static batch rendering operation on the processed rendering data based on the overall building information model rendering instruction;

[0020] The operation strategy is: static batching strategy or dynamic batching strategy.

[0021] Furthermore,

[0022] Based on the dynamic batch operation strategy and through the rendering management unit, a building information model dynamic optimization batch rendering instruction is generated, and the processed rendering data is sent to the rendering unit. Based on the building information model dynamic optimization batch rendering instruction, the rendering unit is controlled to perform component highlighting, hiding and Gizmo rendering operations on the processed rendering data.

[0023] Furthermore, the static batch rendering operation includes:

[0024] Static batch rendering operations for LOD switching, distance culling, and occlusion culling.

[0025] Furthermore, the receiving of external instructions and displaying the processed metadata information based on the external instructions further includes:

[0026] Based on external instructions, a hierarchical structure is constructed for the processed metadata information through a hierarchical structure tree unit to obtain a hierarchical structure, and the hierarchical structure is used for front-end display of the processed metadata information.

[0027] In a second aspect, the present invention further provides a real-time rendering optimization device for a building information model, comprising:

[0028] A first acquisition unit is configured to acquire an optimization processing module, wherein the optimization processing module includes a rendering data management module and a metadata management module;

[0029] a parsing and processing unit configured to obtain building information model data, parse the building information model data to obtain rendering data and metadata, obtain a component ID of the rendering data, instantiate and perform ID embedding processing on the rendering data and the component ID of the rendering data to obtain a rendering data organization, and format and perform data association processing on the metadata and the component ID of the rendering data to obtain a metadata organization;

[0030] a rendering data management unit, configured to input the rendering data organization into the optimization processing module, parse, save, and manage the rendering data organization through the rendering data management module to obtain processed rendering data, receive external instructions, select an operation strategy based on the external instructions, and perform corresponding rendering operations on the processed rendering data based on the operation strategy; the operation strategy is: a static batching strategy or a dynamic batching strategy;

[0031] The metadata management unit is used to input the metadata organization into the optimization processing module, parse and save the metadata organization through the metadata management module to obtain processed metadata information, receive external instructions, and display the processed metadata information based on the external instructions.

[0032] In a third aspect, the present invention further provides an electronic device for executing the program stored in the memory to implement the steps in a real-time rendering optimization method for a building information model as described in any of the above implementations.

[0033] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium for storing a computer program capable of implementing the steps in a real-time rendering optimization method of a building information model in any of the above implementation modes.

[0034] The beneficial effects of adopting the above implementation are as follows: the present invention provides a real-time rendering optimization method, device, electronic device and storage medium of a building information model, obtains an optimization processing module, and the optimization processing module includes: a rendering data management module and a metadata management module, obtains building information model data, and parses and processes the building information model data to obtain rendering data and metadata, obtains the component ID of the rendering data, and instantiates and buries the rendering data and the component ID of the rendering data to obtain rendering data organization, formats and stores the metadata and the component ID of the rendering data and performs data association processing to obtain metadata organization, and converts the rendering data into the rendering data. The data organization is input into the optimization processing module, and the rendering data organization is parsed, saved, and component managed by the rendering data management module to obtain processed rendering data, and external instructions are received. An operation strategy is selected based on the external instructions, and corresponding rendering operations are performed on the processed rendering data based on the operation strategy; the operation strategy is a static batching strategy or a dynamic batching strategy, and the metadata organization is input into the optimization processing module, and the metadata organization is parsed and saved by the metadata management module to obtain processed metadata information, and external instructions are received, and the processed metadata information is displayed based on the external instructions. The present invention obtains rendering data and metadata by parsing the building information model data, thereby achieving complete separation of digital and model, and instantiating the rendering data and metadata and performing ID embedding processing to obtain rendering data organization and metadata organization, thereby achieving construction, processing the rendering data organization through the data management model and selecting the corresponding rendering operation, the rendering operation includes a static batching strategy or a dynamic batching strategy, realizing a rendering strategy that combines dynamic batching and static batching, greatly increasing the scene rendering carrying capacity, processing and displaying the metadata organization through the metadata management module, achieving component-level operation, the rendering strategy provided by the present application is based on the underlying rendering logic and the building information model rendering scene, and can be applied to a variety of front-end and back-end three-dimensional engines to achieve optimization of lightweight rendering effects of large-volume building information models. Compared with the prior art, the present invention proposes a real-time rendering optimization method for building information models, which can achieve optimization of lightweight rendering effects of large-volume building information models. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0036] Figure 1A method flow chart of an embodiment of a real-time rendering optimization method for a building information model provided by the present invention;

[0037] Figure 2 A flow chart of building information model data parsing and data organization according to an embodiment of a real-time rendering optimization method for a building information model provided by the present invention;

[0038] Figure 3 A flowchart of an algorithm for a rendering data management module of an embodiment of a real-time rendering optimization method for a building information model provided by the present invention;

[0039] Figure 4 A flowchart of an algorithm for a metadata management module of an embodiment of a real-time rendering optimization method for a building information model provided by the present invention;

[0040] Figure 5 A flowchart of a building information model rendering method according to an embodiment of the present invention;

[0041] Figure 6 A schematic structural diagram of an apparatus according to an embodiment of a method for optimizing real-time rendering of a building information model provided by the present invention;

[0042] Figure 7 This is a schematic structural diagram of an embodiment of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0043] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making any creative efforts shall fall within the scope of protection of the present invention.

[0044] In the description of the embodiments of the present application, unless otherwise specified, “plurality” means two or more.

[0045] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or device comprising a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products or devices.

[0046] The naming or numbering of the steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0047] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present invention. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute a separate or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0048] The present invention provides a real-time rendering optimization method, device, electronic device and storage medium for a building information model, which are described below respectively.

[0049] Figure 1 A method flow chart of an embodiment of a real-time rendering optimization method for a building information model provided by the present invention includes:

[0050] S110: Acquire an optimization processing module, where the optimization processing module includes: a rendering data management module and a metadata management module;

[0051] S120: Acquire building information model data, parse the building information model data to obtain rendering data and metadata, obtain component IDs of the rendering data, instantiate the rendering data and the component IDs of the rendering data, and perform ID embedding processing to obtain a rendering data organization. Format and associate the metadata and the component IDs of the rendering data to obtain a metadata organization.

[0052] S130: Input the rendering data organization into the optimization processing module, parse, save, and manage the rendering data organization through the rendering data management module to obtain processed rendering data, receive external instructions, select an operation strategy based on the external instructions, and perform corresponding rendering operations on the processed rendering data based on the operation strategy; the operation strategy can be: static batching strategy or dynamic batching strategy;

[0053] S140: Input the metadata organization into the optimization processing module, parse and save the metadata organization through the metadata management module to obtain processed metadata information, receive external instructions, and display the processed metadata information based on the external instructions.

[0054] It can be understood that the building information model is parsed into rendering data and metadata according to the components, wherein the rendering data includes: material description and triangular facets, and the metadata includes: attribute data and hierarchical structure, and the hierarchical structure is a tree structure; the dynamic batch processing principle of the building information model of this application is mainly to optimize the rendering of the building information model and manage the rendering data of the building information model. When the rendering object changes, such as a component is moved or hidden, a small amount of calculation is performed to obtain the batching scheme that needs to be adjusted for rendering, which solves the problem of excessive overhead of the traditional dynamic batching central processing unit (CPU); secondly, this application stores the component ID in an unused UV (texture mapping coordinate, U is horizontal direction, V is vertical direction) channel in an encoded manner. When the model is clicked, the selected triangular facets are obtained by ray intersection, and the component ID is obtained by decoding the UV data.

[0055] Figure 2 A flowchart of building information model data parsing and data organization according to an embodiment of a real-time rendering optimization method for a building information model provided by the present invention includes:

[0056] Instantiate the material description rendering data and triangle face rendering data to obtain the header file rendering data organization;

[0057] Perform data ID embedding processing on the triangle face rendering data and the component ID of the rendering data to obtain the file rendering data organization.

[0058] It can be understood that the material description rendering data and the triangle face rendering data are instantiated to obtain the instantiated components and mark them, and the Instance component ID and the transformation matrix are recorded. The data ID is a unique ID in a single building information model. In order to identify the component object operated in the batch data, the data ID is converted into a two-dimensional coordinate through encoding and then buried in the unused UV channel of the model; after the rendering data is processed, the header file rendering data organization and the file rendering data organization are obtained, wherein the header file rendering data organization includes: description of material information, Instance information, static batch processing data address and component list, etc., saved in XML format.

[0059] Furthermore, the metadata and the component IDs of the rendered data are formatted and associated with each other to obtain a metadata organization, including:

[0060] The attribute metadata and the hierarchical metadata are stored in Json format to obtain storage metadata, and the storage metadata and the component ID of the rendering data are subjected to data association processing to obtain metadata organization.

[0061] It can be understood that, with the component as the smallest unit, the attribute metadata and the hierarchical metadata are stored in Json format, the component ID is used as the unique key value, and each level of the hierarchical information is saved as a string array in the form of a label.

[0062] Figure 3 The flowchart of the algorithm of the rendering data management module of an embodiment of the real-time rendering optimization method of a building information model provided by the present invention includes:

[0063] The rendering data management module includes: model manager, rendering management unit and rendering unit;

[0064] Parsing, saving, and component management processing the rendering data organization through a model manager to obtain processed rendering data;

[0065] Selecting an operation strategy based on the external instruction, controlling the rendering management unit based on the operation strategy, generating an overall building information model rendering instruction, sending the processed rendering data to the rendering unit, and controlling the rendering unit to perform a static batch rendering operation on the processed rendering data based on the overall building information model rendering instruction;

[0066] Among them, the operation strategy is: static batching strategy or dynamic batching strategy.

[0067] It can be understood that the static batching strategy is to classify the building information model element by element according to the material type and category, generate LOD data and save the rendering data, preload data and precompile materials for the target rendering platform and organize them into multiple binary files; the rendering data management module also includes a data input unit, whose main function is to: input the rendering data organization results of the previous stage; the model manager is mainly responsible for rendering data parsing and reading, rendering data backup and component management, and selects the operation strategy for the building information model according to external instructions; the rendering management unit is mainly divided into static batch rendering manager and dynamic batch manager according to the operation strategy, and is mainly responsible for rendering data submission.

[0068] Furthermore,

[0069] Based on the dynamic batch operation strategy and through the rendering management unit, a building information model dynamic optimization batch rendering instruction is generated, and the processed rendering data is sent to the rendering unit. Based on the building information model dynamic optimization batch rendering instruction, the rendering unit is controlled to perform component highlighting, hiding and Gizmo rendering operations on the processed rendering data.

[0070] It can be understood that the dynamic batch rendering manager is mainly used for dynamic batch data rendering of the entire model. When operating on components, the static batch rendering data will be unloaded. The dynamic batch rendering manager dynamically optimizes the batch processing scheme according to the operation instructions, keeps DrawCall at a low level, and optimizes rendering efficiency.

[0071] Furthermore, static batch rendering operations include:

[0072] Static batch rendering operations for LOD switching, distance culling, and occlusion culling.

[0073] It can be understood that the static batch rendering manager is mainly used for static batch data rendering of the entire model. This rendering method cannot support model component-level operations and can only operate on the model as a whole; LOD switching, distance culling and occlusion culling operations are performed while performing static batch rendering operations.

[0074] Figure 4 The flowchart of the algorithm of the metadata management module of an embodiment of the real-time rendering optimization method of a building information model provided by the present invention includes:

[0075] Based on external instructions, the processed metadata information is constructed into a hierarchical structure through a hierarchical structure tree unit to obtain a hierarchical structure, and the hierarchical structure is used to perform front-end display of the processed metadata information.

[0076] It can be understood that the metadata management module includes: a data input layer, a metadata management layer, and a hierarchical structure. The data input layer receives metadata organization; the metadata management layer parses the metadata organization, and the metadata manager stores the metadata in the database (this task is performed after data conversion is completed). It also retrieves metadata information from the database according to external instructions and displays it interactively. The hierarchical structure obtains data from the metadata manager and constructs a hierarchical structure based on customized options, which is then displayed on the front end. The hierarchical structure can synchronize components based on rendering data operations. Clicking on a component in the hierarchical structure obtains the corresponding ID, which is then provided to the rendering data management module for operation.

[0077] Figure 5 A flowchart of a building information model rendering method according to an embodiment of the present invention for optimizing real-time rendering of a building information model includes:

[0078] Building information model loading, obtaining component ID and component operation;

[0079] As can be understood, the rendering data management module is initialized, loading the rendering data organization by loading the header file, parsing the material information, instance information, and component list, and loading the static batched rendering data according to the address. The static batched model is then rendered: material loading and static batched rendering data submission for rendering. Static batched data offers high rendering performance. Dynamic batch caching: While rendering static batched data, a dynamic batched data cache is constructed. Component IDs can be obtained in two ways: first, by obtaining the component ID from the hierarchy tree. A query can be sent to the database based on the selected object. Second, the component ID can be obtained from the model. This is primarily done by intersecting the selected triangle using the mouse position, calculating the component ID based on the UV embedding data within the triangle, and returning the component ID. Component operations include: submitting a component operation by selecting an operation task and submitting the component object ID; automatic batch optimization, which calculates dynamic batch data changes based on the operation task and automatically optimizes the batching scheme; loading a dynamic batched model: if the current rendering is a static batched model, the model is unloaded; and submitting the dynamic batched model for rendering via the dynamic batch manager.

[0080] In order to better implement a real-time rendering optimization method of a building information model in an embodiment of the present invention, based on this method, correspondingly, please refer to Figure 6 , Figure 6 A schematic structural diagram of an embodiment of the apparatus 600 provided by the present invention includes:

[0081] A first acquiring unit 601 is configured to acquire an optimization processing module, the optimization processing module including a rendering data management module and a metadata management module;

[0082] The parsing and processing unit 602 is configured to obtain building information model data, parse the building information model data to obtain rendering data and metadata, obtain component IDs of the rendering data, instantiate the rendering data and the component IDs of the rendering data, perform ID embedding processing to obtain a rendering data organization, and format and store the metadata and the component IDs of the rendering data and perform data association processing to obtain a metadata organization.

[0083] The rendering data management unit 603 is used to input the rendering data organization into the optimization processing module, parse, save and manage the rendering data organization through the rendering data management module to obtain processed rendering data, receive external instructions, select an operation strategy based on the external instructions, and perform corresponding rendering operations on the processed rendering data based on the operation strategy; the operation strategy can be: static batching strategy or dynamic batching strategy;

[0084] The metadata management unit 604 is used to input the metadata organization into the optimization processing module, parse and save the metadata organization through the metadata management module to obtain processed metadata information, receive external instructions, and display the processed metadata information based on the external instructions.

[0085] The real-time rendering optimization device for a building information model provided in the above embodiment can implement the technical solution described in the above embodiment of a real-time rendering optimization method for a building information model. The specific implementation principles of the above modules or units can be found in the corresponding contents in the above embodiment of a real-time rendering optimization method for a building information model, which will not be repeated here.

[0086] like Figure 7 As shown, the present invention also provides an electronic device 700. The electronic device 700 includes a processor 701, a memory 702 and a display 703. Figure 7 Only some of the components of the electronic device 700 are shown, but it should be understood that it is not required to implement all of the shown components, and more or fewer components may be implemented instead.

[0087] In some embodiments, the memory 702 may be an internal storage unit of the electronic device 700, such as a hard disk or memory of the electronic device 700. In other embodiments, the memory 702 may also be an external storage device of the electronic device 700, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 700.

[0088] Furthermore, the memory 702 may include both an internal storage unit of the electronic device 700 and an external storage device. The memory 702 is used to store application software installed in the electronic device 700 and various data.

[0089] In some embodiments, the processor 701 can be a central processing unit (CPU), a microprocessor, or other data processing chip, used to run program codes or process data stored in the memory 702, such as a real-time rendering optimization method for a building information model in the present invention.

[0090] In some embodiments, the display 703 can be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. The display 703 is used to display information on the electronic device 700 and to display a visual user interface. Components 701-703 of the electronic device 700 communicate with each other via a system bus.

[0091] In some embodiments of the present invention, when the processor 701 executes the real-time rendering optimization program of the building information model in the memory 702, the following steps may be implemented:

[0092] Obtain an optimization processing module, the optimization processing module including: a rendering data management module and a metadata management module;

[0093] Acquire building information model data, parse and process the building information model data to obtain rendering data and metadata, obtain component IDs of the rendering data, instantiate and embed the rendering data and the component IDs of the rendering data to obtain a rendering data organization, format and store the metadata and the component IDs of the metadata and perform data association processing to obtain a metadata organization;

[0094] The rendering data organization is input into the optimization processing module, and the rendering data organization is parsed, saved and component managed by the rendering data management module to obtain the processed rendering data, and then receive external instructions, select an operation strategy based on the external instructions, and perform corresponding rendering operations on the processed rendering data based on the operation strategy; the operation strategy is: static batching strategy or dynamic batching strategy;

[0095] The metadata organization is input into the optimization processing module, and the metadata organization is parsed and saved by the metadata management module to obtain the processed metadata information, and external instructions are received, and the processed metadata information is displayed based on the external instructions.

[0096] It should be understood that, when the processor 701 executes the real-time rendering optimization program of the building information model in the memory 702 , in addition to the above functions, it can also implement other functions. For details, please refer to the description of the corresponding method embodiment above.

[0097] Furthermore, the embodiment of the present invention does not specifically limit the type of the electronic device 700 mentioned. The electronic device 700 may be a portable electronic device such as a mobile phone, a tablet computer, a personal digital assistant (PDA), a wearable device, or a laptop computer. Exemplary embodiments of portable electronic devices include but are not limited to portable electronic devices equipped with iOS, Android, Microsoft, or other operating systems. The above-mentioned portable electronic devices may also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of the present invention, the electronic device 700 may not be a portable electronic device, but a desktop computer with a touch-sensitive surface (e.g., a touch panel).

[0098] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform a real-time rendering optimization method for a building information model provided by the above methods, the method comprising:

[0099] Obtain an optimization processing module, the optimization processing module including: a rendering data management module and a metadata management module connected in series;

[0100] Acquire building information model data, parse and process the building information model data to obtain rendering data and metadata, obtain component IDs of the rendering data, instantiate the rendering data and the component IDs of the rendering data, and perform ID embedding processing to obtain rendering data organization, format and store the metadata and the component IDs of the rendering data and perform data association processing to obtain metadata organization;

[0101] The rendering data organization is input into the optimization processing module, and the rendering data organization is parsed, saved and component managed by the rendering data management module to obtain the processed rendering data, and then receive external instructions, select an operation strategy based on the external instructions, and perform corresponding rendering operations on the processed rendering data based on the operation strategy; the operation strategy is: static batching strategy or dynamic batching strategy;

[0102] The metadata organization is input into the optimization processing module, and the metadata organization is parsed and saved by the metadata management module to obtain processed metadata information, and external instructions are received, and the processed metadata information is displayed based on the external instructions.

[0103] Those skilled in the art will appreciate that all or part of the process steps of the above-described embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, such as a magnetic disk, an optical disk, a read-only memory, or a random access memory.

[0104] The above is a detailed introduction to the real-time rendering optimization method, device, electronic device and storage medium of a building information model provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A real-time rendering optimization method for a building information model, characterized in that: include: Acquire an optimization processing module, wherein the optimization processing module includes: a rendering data management module and a metadata management module; Acquire building information model data, parse and process the building information model data to obtain rendering data and metadata, acquire a component ID of the rendering data, instantiate and perform ID embedding processing on the rendering data and the component ID of the rendering data to obtain a rendering data organization, format and store the metadata and perform data association processing on the component ID of the rendering data to obtain a metadata organization; The rendering data organization is input into the optimization processing module, and the rendering data organization is parsed, saved, and component managed by the rendering data management module to obtain processed rendering data, and an external instruction is received, an operation strategy is selected based on the external instruction, and a corresponding rendering operation is performed on the processed rendering data based on the operation strategy; the operation strategy is: a static batching strategy or a dynamic batching strategy; Input the metadata organization into the optimization processing module, parse and save the metadata organization through the metadata management module to obtain processed metadata information, receive external instructions, and display the processed metadata information based on the external instructions; Wherein, the rendering data management module includes: a model manager, a rendering management unit and a rendering unit; Parsing, saving and component management processing the rendering data organization by the model manager to obtain processed rendering data; Selecting a static batching strategy based on the external instruction, controlling the rendering management unit based on the static batching strategy, generating an overall building information model rendering instruction, sending the processed rendering data to the rendering unit, and controlling the rendering unit to perform a static batch rendering operation on the processed rendering data based on the overall building information model rendering instruction; A dynamic batch operation strategy is selected based on the external instruction, a building information model dynamic optimization batch rendering instruction is generated based on the dynamic batch operation strategy and through the rendering management unit, and the processed rendering data is sent to the rendering unit, and the rendering unit is controlled to perform component highlighting, hiding and Gizmo rendering operations on the processed rendering data based on the building information model dynamic optimization batch rendering instruction.

2. The real-time rendering optimization method of building information model according to claim 1 is characterized in that: The instantiation and ID embedding processing of the rendering data and the component ID of the rendering data to obtain the rendering data organization includes: Instantiate the material description rendering data and the triangle patch rendering data to obtain the header file rendering data organization; Data ID embedding processing is performed on the triangular face rendering data and the component ID of the rendering data to obtain a file rendering data organization.

3. The real-time rendering optimization method of building information model according to claim 1, characterized in that: The step of performing format storage and data association processing on the metadata and the component ID of the rendering data to obtain the metadata organization includes: The attribute metadata and the hierarchical metadata are stored in Json format to obtain storage metadata, and the storage metadata and the component ID of the rendering data are subjected to data association processing to obtain metadata organization.

4. The real-time rendering optimization method of building information model according to claim 1, characterized in that: The method further comprises: receiving an external instruction, and displaying the processed metadata information based on the external instruction, including: Based on external instructions, the processed metadata information is constructed into a hierarchical structure through a hierarchical structure tree unit to obtain a hierarchical structure, and the hierarchical structure is used for front-end display of the processed metadata information.

5. A real-time rendering optimization device for a building information model, characterized in that: include: A first acquisition unit is used to acquire an optimization processing module, wherein the optimization processing module includes: a rendering data management module and a metadata management module; A parsing and processing unit is used to obtain building information model data, parse the building information model data to obtain rendering data and metadata, obtain a component ID of the rendering data, instantiate the rendering data and the component ID of the rendering data and perform ID embedding processing to obtain a rendering data organization, and perform format storage and data association processing on the metadata and the component ID of the metadata to obtain a metadata organization; A rendering data management unit is used to input the rendering data organization into the optimization processing module, parse, save and manage the rendering data organization through the rendering data management module to obtain processed rendering data, receive external instructions, select an operation strategy based on the external instructions, and perform corresponding rendering operations on the processed rendering data based on the operation strategy; the operation strategy is: static batching strategy or dynamic batching strategy; A metadata management unit, configured to input the metadata organization into the optimization processing module, parse and save the metadata organization through the metadata management module to obtain processed metadata information, receive external instructions, and display the processed metadata information based on the external instructions; Wherein, the rendering data management module includes: a model manager, a rendering management unit and a rendering unit; Parsing, saving and component management processing the rendering data organization by the model manager to obtain processed rendering data; Selecting a static batching strategy based on the external instruction, controlling the rendering management unit based on the static batching strategy, generating an overall building information model rendering instruction, sending the processed rendering data to the rendering unit, and controlling the rendering unit to perform a static batch rendering operation on the processed rendering data based on the overall building information model rendering instruction; A dynamic batch operation strategy is selected based on the external instruction, a building information model dynamic optimization batch rendering instruction is generated based on the dynamic batch operation strategy and through the rendering management unit, and the processed rendering data is sent to the rendering unit, and the rendering unit is controlled to perform component highlighting, hiding and Gizmo rendering operations on the processed rendering data based on the building information model dynamic optimization batch rendering instruction.

6. An electronic device, characterized in that: comprising a memory and a processor, wherein: The memory is used to store programs; The processor is coupled to the memory and is used to execute the program stored in the memory to implement the steps in the real-time rendering optimization method of a building information model as described in any one of claims 1 to 4 above.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the real-time rendering optimization method of a building information model as claimed in any one of claims 1 to 4 is implemented.