Three-dimensional scene generation method, system, electronic device and storage medium

By lightweight processing and component editing of the configuration data in the three-dimensional scene generation method, the problems of large resource occupation and low data integration are solved, and efficient and flexible three-dimensional scene generation and real-time monitoring effects are achieved.

CN114037793BActive Publication Date: 2025-02-18SHANGHAI ELECTRICGROUP CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110805303.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-16
Publication Date
2025-02-18
Estimated Expiration
2041-07-16

AI Technical Summary

Technical Problem

The existing three-dimensional scene generation methods have problems such as large resource occupancy and low data integration, resulting in slow rendering, inflexible component editing and high device requirements.

Method used

By lightening the original configuration data, redundant information is removed, and component sets are generated based on the lightweight processing results, component editing and rendering are achieved, and the target scene is quickly rendered and integrated.

Benefits of technology

Reduces resource usage, improves the efficiency of three-dimensional scene generation, can run smoothly on low-performance devices, and achieves integration and real-time monitoring of data from different sources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114037793B_ABST
    Figure CN114037793B_ABST
Patent Text Reader

Abstract

The present invention discloses a three-dimensional scene generation method, system, electronic device and storage medium, wherein the three-dimensional scene generation method comprises the steps of: performing lightweight processing on first configuration data to obtain second configuration data; generating a component set based on the second configuration data, wherein the component set includes at least one component; and rendering a target scene based on the component set. The present invention performs lightweight processing on the original configuration data, obtains a component set based on the result of the lightweight processing, and then renders the components in the component set to the target scene, thereby greatly reducing the resources required for three-dimensional scene generation, improving the efficiency of three-dimensional scene generation, integrating different original data into the same target scene, and greatly expanding the relevant application scope of three-dimensional scene generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional models, and in particular to a three-dimensional scene generation method, system, electronic equipment and storage medium. Background Art

[0002] In current industrial production, some target scenes need to be monitored through a visual operation and maintenance platform to monitor the production process, diagnose equipment, and collect and manage relevant data. In particular, using visualization tools to display target scenes in three-dimensional scenes can effectively improve the efficiency of operation and maintenance management. Typical applications include the WebSIS (Web-Safety interlocking System, a web-based safety interlocking system) system, which is an important component of automatic control in power plants and other scenes as the alarm and interlocking part of the factory control system to implement alarm actions, adjustments, or shutdown controls based on the results of detection in the control system. However, traditional three-dimensional scene generation methods have defects such as large resource usage and low data integration, which leads to various limitations in their application. Taking the WebSIS system as an example, there are problems such as slow and unsmooth rendering, many restrictions and inflexibility in component editing, and high requirements for running equipment.

[0003] For example, a heavyweight engine is used to render data, and its processing takes up a lot of resources. In actual use, it will lead to high usage costs and high application barriers.

[0004] For another example, most of the commonly stored data are executable files, which can only be edited by the local client and cannot support network transmission editing operations on the network side, which makes it difficult to integrate data with the system.

[0005] For example, traditional data editing tools are limited and single, can only run on a specific system, and cannot perform editing operations on the network, which makes the application inconvenient to operate, that is, it cannot be used on lightweight platforms such as mobile terminals and browsers.

[0006] In addition, the current component data content is heavy, requiring high subsequent rendering and computing resources, and cannot run smoothly on low-performance devices.

[0007] Finally, traditional 3D model generation methods find it difficult to integrate 3D file model data from multiple different sources and file formats, resulting in the inability to integrate the above data and display them in the same target scene during the subsequent rendering process. Summary of the invention

[0008] The technical problem to be solved by the present invention is to overcome the defects of the prior art that the three-dimensional scene generation process occupies a large number of resources and has low data integration, and to provide a three-dimensional scene generation method, system, electronic device and storage medium.

[0009] The present invention solves the above technical problems through the following technical solutions:

[0010] The present invention provides a three-dimensional scene generation method, comprising the following steps:

[0011] Performing lightweight processing on the first configuration data to obtain second configuration data;

[0012] generating a component set based on the second configuration data, the component set comprising at least one component;

[0013] The target scene is rendered based on the component set.

[0014] Preferably, the step of performing lightweight processing on the first configuration data includes:

[0015] Obtaining file format information corresponding to the first configuration data;

[0016] Preprocessing the first configuration data according to the file format information;

[0017] Deduplication processing is performed on the preprocessed first configuration data to delete redundant information in the first configuration data.

[0018] Preferably, the step of performing deduplication processing on the preprocessed first configuration data to delete redundant information in the first configuration data includes:

[0019] Performing semantic analysis on the preprocessed first configuration data to obtain a semantic analysis result;

[0020] According to a first preset rule, redundant information in the semantic analysis result is extracted and deleted;

[0021] and / or,

[0022] Acquire the spatial data in the first configuration data after preprocessing;

[0023] According to a second preset rule, redundant information in the spatial data is deleted.

[0024] Preferably, after the step of generating a component set based on the second configuration data, the step further includes:

[0025] The components in the component set are subjected to file format compression processing to generate a file format that can be loaded on a web page.

[0026] Preferably, the step of generating a component set based on the second configuration data comprises:

[0027] merging several configurations in the second configuration data into at least one new configuration to generate third configuration data;

[0028] The component set is updated according to the third configuration data.

[0029] Preferably, the step of generating a component set based on the second configuration data comprises:

[0030] Performing configuration editing processing on the second configuration data to obtain fourth configuration data, wherein the configuration editing processing includes at least one processing method of translation, rotation, scaling, and attribute modification;

[0031] The component set is updated according to the fourth configuration data.

[0032] Preferably, the step of generating a component set based on the second configuration data further comprises:

[0033] Editing the measuring point information and the logical attributes of the second configuration data to obtain fifth configuration data;

[0034] updating the component set according to the fifth configuration data;

[0035] The measuring point information is used to characterize the measurement information corresponding to the physical components in the target scene; the logical attributes are used to characterize the logical association relationship between different components in the target scene.

[0036] Preferably, the step of generating a component set based on the second configuration data further comprises:

[0037] Based on the measuring point information interface, the association information between the measuring point information and the entity component is adjusted by using a preset instruction to obtain sixth configuration data; the association information includes at least one of binding information, unbinding information and modified binding information;

[0038] The component set is updated according to the sixth configuration data.

[0039] Preferably, the step of rendering the target scene based on the component set comprises:

[0040] Acquiring parameter information of the target scene;

[0041] Dividing the components in the component set into visible components and invisible components according to the parameter information;

[0042] The visible component is rendered to the target scene.

[0043] The present invention also provides a three-dimensional scene generation system, comprising:

[0044] A lightweight processing module, used for performing lightweight processing on the first configuration data to obtain second configuration data;

[0045] A component generation module, configured to generate a component set based on the second configuration data, wherein the component set includes at least one component;

[0046] A rendering module is used to render the target scene based on the component set.

[0047] Preferably, the lightweight processing module includes:

[0048] A file format acquiring unit, used to acquire file format information corresponding to the first configuration data;

[0049] A preprocessing unit, configured to preprocess the first configuration data according to the file format information;

[0050] A deduplication unit is used to perform deduplication processing on the preprocessed first configuration data to delete redundant information in the first configuration data.

[0051] Preferably, the deduplication unit comprises:

[0052] A semantic analysis subunit, used for performing semantic analysis on the preprocessed first configuration data to obtain a semantic analysis result;

[0053] A first deletion subunit, configured to extract and delete redundant information from the semantic analysis result according to a first preset rule;

[0054] and / or,

[0055] A spatial data subunit, used for acquiring the spatial data in the first configuration data after preprocessing;

[0056] The second deleting subunit is used to delete the redundant information in the spatial data according to a second preset rule.

[0057] Preferably, the component generation module includes:

[0058] The file compression unit is used to perform file format compression processing on the components in the component set to generate a file format that can be loaded on a web page.

[0059] Preferably, the component generation module further includes:

[0060] a merging unit, configured to merge several configurations in the second configuration data into at least one new configuration to generate third configuration data;

[0061] A first updating unit is used to update the component set according to the third configuration data.

[0062] Preferably, the component generation module further includes:

[0063] A first editing unit, configured to perform configuration editing processing on the second configuration data to obtain fourth configuration data, wherein the configuration editing processing includes at least one processing method of translation, rotation, scaling, and attribute modification;

[0064] The second updating unit is configured to update the component set according to the fourth configuration data.

[0065] Preferably, the component generation module further includes:

[0066] A second editing unit, used for editing the measuring point information and the logical attributes of the second configuration data to obtain fifth configuration data;

[0067] a third updating unit, configured to update the component set according to the fifth configuration data;

[0068] The measuring point information is used to characterize the measurement information corresponding to the physical components in the target scene; the logical attributes are used to characterize the logical association relationship between different components in the target scene.

[0069] Preferably, the component generation module further includes:

[0070] The third editing module is used to adjust the association information between the measuring point information and the entity component based on the measuring point information interface by using preset instructions; the association information includes at least one of binding information, unbinding information and modified binding information.

[0071] A fourth updating unit is used to update the component set according to the sixth configuration data.

[0072] Preferably, the rendering module includes:

[0073] A parameter information unit, used to obtain parameter information of the target scene;

[0074] A component division unit, used for dividing the components in the component set into visible components and invisible components according to the parameter information;

[0075] A component rendering unit is used to render the visible component to the target scene.

[0076] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned three-dimensional scene generation method when executing the computer program.

[0077] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the three-dimensional scene generation method is implemented.

[0078] The positive progressive effect of the present invention is that the three-dimensional scene generation method, system, electronic device and storage medium provided by the present invention perform lightweight processing on original configuration data from different sources, timely and effectively remove redundant repeated information without affecting the rendering effect, and obtain a component set based on the result of the lightweight processing, and then based on various editing operations on the component set and gradually rendering the components to the target scene, the entire scene generation process not only greatly reduces the resources required and improves the efficiency of three-dimensional scene generation, but also can integrate original data from different users into the same target scene, so that the system can quickly present the scene on mobile devices with limited bandwidth and low performance. In addition, by adding logical attributes to the components and binding them to the corresponding entity components, flexible and real-time monitoring of the target scene is achieved, thereby greatly expanding the application scope of operation and maintenance management based on three-dimensional scenes. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Figure 1 It is a flowchart of the three-dimensional scene generation method of embodiment 1 of the present invention.

[0080] Figure 2 The present invention is a flowchart of a method for generating a three-dimensional scene in a lightweight WebSIS system for power stations according to Embodiment 1 of the present invention.

[0081] Figure 3 This is a module diagram of a lightweight WebSIS system for power stations according to Embodiment 1 of the present invention.

[0082] Figure 4 This is a configuration scenario diagram of a lightweight WebSIS system for power stations according to Embodiment 1 of the present invention.

[0083] Figure 5 This is a module diagram of a three-dimensional scene generation system according to Embodiment 2 of the present invention.

[0084] Figure 6 This is a structural block diagram of an electronic device according to Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0085] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.

[0086] Example 1

[0087] See also Figure 1 This embodiment specifically provides a three-dimensional scene generation method, including the steps of:

[0088] S1. Perform lightweight processing on the first configuration data to obtain second configuration data.

[0089] S2. Generate a component set based on the second configuration data, where the component set includes at least one component.

[0090] S3. Render the target scene based on the component set.

[0091] In order to better illustrate the three-dimensional scene generation method of this embodiment, the online visualization of the target scene of the power plant plant is described in combination with a lightweight WebSIS system for power plants. Of course, those skilled in the art will know that the application of the method of this embodiment includes but is not limited to this kind of scene. In addition, the configuration data in this embodiment are all three-dimensional configuration data, and the target scene is a three-dimensional scene.

[0092] Step S1 performs lightweight processing on first configuration data from different sources. The first configuration data is usually a local file uploaded by each user, or may be an existing file on the server.

[0093] Based on the processing result of step S1, the second configuration data is obtained. Step S2 performs configuration management and editing processing on the second configuration data, thereby generating a component set including several components.

[0094] Step S3 renders the components in the component set to the target scene, thereby realizing the generation of a three-dimensional scene.

[0095] As a preferred implementation, step S1 includes:

[0096] Obtain file format information corresponding to the first configuration data.

[0097] The first configuration data is preprocessed according to the file format information.

[0098] The preprocessed first configuration data is deduplicated to delete redundant information in the first configuration data.

[0099] Step S1 performs lightweight processing on the configuration data. Taking the data uploaded by the user to the data server as an example, the exported file formats and contents may be different due to the different software used by different users, such as RVM, PRT, STP (all suffixes of model files) and other formats. These formats of files usually retain a lot of redundant information caused by operations and semantics such as software operation steps and hierarchical structures. Therefore, it can be classified and identified according to its file format information, and the parsed data can be exported as a preset three-dimensional model format file to achieve pre-processing work of data comparison and data cleaning, and delete some redundant information such as version numbers.

[0100] In an optional embodiment, step S1 performs deduplication processing on the preprocessed first configuration data to delete redundant information in the first configuration data, and the step specifically includes: performing semantic analysis on the preprocessed first configuration data to obtain a semantic analysis result; extracting and deleting redundant information in the semantic analysis result according to a first preset rule. In another optional embodiment, the above steps may be: obtaining spatial data in the preprocessed first configuration data; deleting redundant information in the spatial data according to a second preset rule. And, preferably, the above optional embodiments are used together to implement semantically guided driven geometry lightweight processing to effectively remove more redundant information, so as to further increase data loading speed and improve scene rendering efficiency.

[0101] Specifically, this embodiment performs structural and semantic analysis on the file, retains the information required for rendering, classifies and arranges the configuration information, and removes other irrelevant information. Specifically, the semantic guidance analysis can be comprehensively processed by using text recognition, semantic analysis, cleaning templates, etc., so as to compare and clean the text information in the configuration data to make it regular.

[0102] Geometry lightweight processing only retains the information of one component for components with different positions, and the remaining components are matrix-changed based on this component to achieve configuration reuse. That is, only one copy of geometry data is saved for the same geometric object, and the rendering effect of multiple similar geometric objects in the same frame is obtained by drawing them several times in the rendering pipeline, and applying different geometry changes and material information each time. For example, for a certain electrical equipment, only one copy of the configuration data of the electrical equipment is retained and multiple drawing is adopted, and the electrical equipment is placed in a different position each time, which greatly saves memory and processor computing overhead. The lightweight components are exported to generate new components, which remove redundant and repeated information compared to the original components.

[0103] As a preferred implementation, step S2 also includes: compressing the components in the component set into a file format to generate a file format that can be loaded into a web page, so that the components can be efficiently and smoothly loaded in the lightweight WebSIS system to achieve an online visual rendering effect.

[0104] The generated components can be classified according to certain rules, and then the classified new components are converted into lightweight web page-supported format files such as gltf and glb (both are three-dimensional model data formats) and stored in the data server and rendered into a three-dimensional scene. Through the lossless compression processing of this embodiment, resource consumption can be further reduced during the transmission process. The above-mentioned files supporting web page format can also enable more electronic devices with low processing performance to run this method, increasing the compatibility and universality of this method. It can also further improve the data loading speed and the rendering efficiency of the scene.

[0105] As a preferred implementation, step S2 further includes: merging several configurations in the second configuration data into at least one new configuration to generate third configuration data; and updating the component set according to the third configuration data.

[0106] In this embodiment, several configurations in the second configuration data can be combined and combined as needed, or even spliced ​​multiple times to form a new configuration, and an updated component set is formed accordingly, so that the new components generated after the combination are loaded into the target scene for rendering. For example, in the above-mentioned lightweight WebSIS system for power stations, several electrical pipelines located in the same monitoring area can be combined according to user-defined requirements and displayed as a whole in the scene of the power plant.

[0107] As a preferred implementation, step S2 also includes: performing configuration editing processing on the second configuration data to obtain fourth configuration data, wherein the configuration editing processing includes but is not limited to translation, rotation, scaling, property modification, etc.; updating the component set according to the fourth configuration data.

[0108] This implementation method is to edit and adaptively process the second configuration data, that is, to rotate, translate, scale and other operations for the spatial structure attributes of the configuration data, and to edit the attributes and parameter information corresponding to the configuration, such as size, positioning point, presentation angle, etc. And update the component set according to the edited fourth configuration data, thereby changing the original three-dimensional scene rendering effect. For example, in a lightweight WebSIS system for power stations, for a certain steam equipment, since its actual position does not need to be accurately calibrated, but the steam equipment is the focus of monitoring and is suitable for display in a prominent position in the target scene, it can be enlarged; and appropriate translation and rotation operations are performed to make it more intuitive and clear to be displayed in the target scene of the power station.

[0109] As a preferred implementation, step S2 further includes:

[0110] Editing the measurement point information and logic attributes of the second configuration data to obtain fifth configuration data; updating the component set according to the fifth configuration data;

[0111] The measurement point information is used to represent the measurement information corresponding to the physical components in the target scene; the logical attributes are used to represent the logical association relationship between different components in the target scene.

[0112] Since the newly generated component is independent and has no connection with the scene or other components, you need to add logical properties to it, or add logical properties to it as a whole after merging it with other components, so as to associate it with the scene.

[0113] Similarly, the newly generated component is isolated from external information and needs to add measurement points for it. In this way, after the component is added to the scene, due to the existence of the measurement point interface, the physical component corresponding to the component, such as some temperature measurement information on the temperature control device, can be fed back through the interface and finally displayed in real time on the system. In this way, the present embodiment establishes a connection with the physical component in the above manner, thereby achieving the purpose of obtaining external information, and can perform real-time monitoring and other operations, thereby expanding the scope of application and greatly increasing the practicality of the present method.

[0114] As a preferred implementation, step S2 also includes: based on the measuring point information interface, using preset instructions to adjust the association information between the measuring point information and the entity component to obtain the sixth configuration data; the association information includes at least one of binding information, unbinding information and modified binding information; updating the component set according to the sixth configuration data.

[0115] This embodiment synchronizes and visualizes the changes in the position, size and binding point information of the corresponding components according to different user operations, so that the system can update the system in real time according to the user operation. For example, the point information interface can be used to implement operations such as binding, unbinding, rebinding or changing the position of the point information and the entity, such as binding a component for displaying real-time temperature and the temperature measurement components of multiple entities, so that the temperature information obtained from multiple temperature measurement components can be displayed in real time. Of course, according to actual usage requirements, operations such as unbinding and changing binding can also be performed. At the same time, after the above operations are completed, the information obtained is synchronized and updated and stored in the database to ensure the correctness and consistency of user operations and system information. For example, in the power plant scene, the component is matched with the entity component according to its logical attributes and point information, and the numerical values ​​such as temperature, pressure, etc. measured and monitored by the sensor on the entity component are fed back to the system in real time and visualized on the corresponding component in the web page. At the same time, different components are added with different effects according to their types and scenes, such as adding gas flow effects to ventilation duct components, adding fluid flow effects to fluid ducts, etc.

[0116] As a preferred implementation, step S3 includes:

[0117] Get the parameter information of the target scene.

[0118] The components in the component set are divided into visible components and invisible components according to parameter information.

[0119] Renders the visible components to the target scene.

[0120] This implementation is designed for the application dimension of the three-dimensional scene, that is, for the needs of operation and maintenance management, the initial interface of the target scene and the intermediate interface at a subsequent node can be defined by the user, or automatically determined based on interest or other means. Parameter information includes but is not limited to viewing angle height and angle, so that the user can see the most information, the most important information, or the information he wants to see in the above-mentioned initial interface and intermediate interface. Based on this, the components are concentrated and divided into visible components, which are rendered to the target scene for presentation at the first time. Conversely, components that are not within the user's viewing angle are treated as invisible components, so that they are not rendered at the first time, and the background rendering is performed after the initial interface rendering is completed, thereby reducing the time the user waits for the interface to be presented, greatly improving the user experience.

[0121] See also Figure 2-4 As shown, the following still takes the lightweight WebSIS system for power plants as an example, and describes the generation process of the three-dimensional scene of the power plant plant to specifically illustrate the working principle of the three-dimensional scene generation method of this embodiment:

[0122] The technical route steps of the lightweight WebSIS system online visualization method for power stations are as follows:

[0123] The configuration management and editing module is responsible for calling the lightweight processing module for data lightweight processing, calling the 3D visualization module for scene construction and configuration rendering, and managing and editing the configuration at the same time; the 3D visualization module is responsible for scene construction and update and real-time rendering and change of the configuration; the lightweight processing module is responsible for receiving data from the configuration management and editing module and returning the result after lightweight processing.

[0124] Specifically, the configuration management and editing module first calls the lightweight processing module to lightweight process the data; then calls the 3D visualization module to render the scene visualization. In addition, it is used to edit the measurement point information and logical attributes of the configuration, and synchronize the front and back ends for the edited scene information. The 3D visualization module can load the initial scene according to the best initial angle selected by the interest mode, and lightweight render the user-visible configuration in turn based on the initial scene; progressively render the invisible configuration and incrementally render the newly added configuration; and update the scene information.

[0125] The lightweight processing module of the lightweight WebSIS system for power stations mainly includes: using lightweight processing methods based on configuration semantics and geometric duplication checking in configuration management to lightweight the heavy three-dimensional scene model of the electrical power station, so as to progressively transmit it to the web page, and then perform online parsing, instantiation rendering, and caching (supporting large-scale online rendering of WebSIS scenes), so that the three-dimensional SIS system can call the lightweight SIS configuration data online and render the SIS configuration data into the scene in a lightweight manner. First, based on the interest level, find the optimal initial viewpoint in the three-dimensional SIS configuration scene and render the initial visible scene, and then use progressive loading and rendering of the remaining current visible incremental scenes until all scenes are loaded and rendered. During this period, establish an online connection with the entity and realize the display of real-time monitoring data.

[0126] The user data is uploaded to the data server for storage and sent to the lightweight server. The lightweight server processes the uploaded files in RVM, PRT, STP and other formats. Due to the different software used by different users, the exported file formats and contents are different. Files in these formats usually retain a lot of software operation steps or hierarchical operations and semantic information, which are useless for the display of components or scenes. Therefore, after uploading it to the lightweight engine, the engine is used to identify its format and content. The lightweight processing method with semantic guidance drive as the auxiliary and geometry as the main is used for lightweight processing. Only the information required for rendering is retained and repeated redundant information is removed to achieve the purpose of lightweight processing.

[0127] The lightweight components are exported to generate new components. Compared with the original components, the redundant and repeated information is removed. For components with only different positions, only one component's information is retained. The remaining components are reused by performing matrix changes based on this component. Then, they are classified according to certain rules and converted into lightweight web-supported format files such as gltf and glb, stored in the data server and rendered into a three-dimensional scene.

[0128] Configuration editing edits and adaptively processes configuration data, splices and merges different configurations into a new configuration, adds measurement point information corresponding to the entity and logical attributes corresponding to the physical world, and then uses incremental rendering to render the newly visible 3D component set and update it to the currently rendered 3D scene. According to different user operations, the corresponding components are synchronized to visualize the changes in position, size and bound measurement point information, so that the system can update the system's configuration information display in real time according to user operations.

[0129] Configuration Editing Edit the configuration (translation, rotation, scaling, property modification), or combine several different configurations into a new configuration, add measurement point information corresponding to the entity and logical properties corresponding to the physical world, and then use lightweight incremental rendering to update the newly visible component set to the 3D scene. Specifically, it includes:

[0130] The newly generated component is a separate object and is not connected to the scene or other components. To actually use it in the scene, you need to add logical properties to it, or merge it with other entities to add logical properties as a whole, or add measurement points to it. After the component is added to the scene, due to the existence of the measurement point interface, some measurement information on the entity can be displayed in real time on the system through the interface, so that it can establish a connection with the entity to achieve the purpose of real-time monitoring.

[0131] In the three-dimensional scene, the optimal initial interface rendering scene is found based on the interest level, and then the scene is fully loaded using progressive loading and connected to the entity for real-time monitoring. Specifically, the components with added logical attributes are rendered into the three-dimensional scene, that is, the power plant scene, and the components are matched with the entity components according to the logical attributes and measurement point information of the components. The values ​​measured and monitored by the sensors on the entity components, such as temperature, pressure, etc., are fed back to the system in real time and visualized on the corresponding components on the web page. At the same time, different effects are added to different components according to their types and scenes, such as adding gas flow effects to ventilation duct components, adding fluid flow effects to fluid ducts, etc. In the user interface, the optimal initialization angle is found based on the interest level to render the interface, so that the user can see the most and most important information on the initial interface. At the same time, the configuration that is not within the user's field of view is not rendered at the first time, and it is rendered in the background after the initial interface rendering is completed, which reduces the user's waiting time and improves the user experience.

[0132] According to different user operations, the corresponding components are synchronized to visualize the changes in position, size and binding measurement point information, so that the system can be updated in real time according to user operations, including: using controls such as transformcontrol to perform component scaling, angle, translation and other operations, using the measurement point information interface to implement operations such as binding, unbinding, rebinding or changing the position of the measurement point information and the entity, and using the three-dimensional visualization interface to realize process visualization. After the operation is completed, the calculation-related information is synchronously updated in the background and stored in the database to ensure the correctness and consistency of user operations and system information.

[0133] As part of the overall monitoring system of the power station, the lightweight WebSIS system for power stations relies on background services that mainly run in hardware server environments with different configurations. It serves as a basic system for data storage and front-end application operation, and also includes lightweight services for three-dimensional data. In addition, a management system is built as an entry system for management and operation personnel to interact with resources and hardware, which is mainly used for data management and maintenance, monitoring and aggregation of operating status, and management and operation of applications. As a front-end application, the lightweight WebSIS system for power stations is a visual interaction platform between the overall monitoring system of the power station and users, mainly including a configuration editing subsystem and a three-dimensional visualization subsystem; the two are interdependent and mutually supportive. Therefore, the lightweight WebSIS system for power stations implements the above-mentioned method of this embodiment to achieve fast and flexible rendering of the three-dimensional target scene of the power plant plant, so as to provide users with a good user experience and achieve reliable monitoring effects.

[0134] The 3D scene generation method of this embodiment greatly reduces the resources required in the process of generating the 3D target scene by lightweight processing of the original configuration data and multiple ways of editing and rendering, improves the efficiency of 3D scene generation, can integrate different original data into the same target scene, monitor the running status of the equipment in real time, realizes the universality and real-time performance of the system, can run smoothly on the equipment with lower configuration, reduces the requirements for the equipment, and improves the experience of managers and users. At the same time, it realizes real-time monitoring of the equipment and improves the working conditions of the staff.

[0135] Example 2

[0136] See also Figure 5 As shown, this embodiment specifically provides a three-dimensional scene generation system, including:

[0137] A lightweight processing module 1, used for performing lightweight processing on the first configuration data to obtain second configuration data;

[0138] A component generation module 2, used to generate a component set based on the second configuration data, the component set including at least one component;

[0139] The rendering module 3 is used to render the target scene based on the component set.

[0140] The three-dimensional scene generation system of this embodiment still describes each step in conjunction with the target scene of the power plant. Of course, its application scope includes but is not limited to this scene, and the configuration data in this embodiment are all three-dimensional configuration data, and the target scene is a three-dimensional scene. Since the implementation principle of this embodiment is similar to that of Example 1, the relevant implementation process based on the above principle will not be repeated.

[0141] The lightweight processing module 1 performs lightweight processing on first configuration data from different sources. The first configuration data is usually a local file uploaded by each user, or may be a stock file on the server.

[0142] The component generation module 2 obtains the second configuration data, and step S2 performs configuration management and editing processing on the second configuration data, thereby generating a component set including a plurality of components.

[0143] The rendering module 3 renders the components in the component set to the target scene, thereby realizing three-dimensional scene generation.

[0144] As a preferred embodiment, the lightweight processing module 1 includes:

[0145] A file format acquisition unit, used to acquire file format information corresponding to the first configuration data;

[0146] A preprocessing unit, used for preprocessing the first configuration data according to the file format information;

[0147] The deduplication unit is used to perform deduplication processing on the preprocessed first configuration data to delete redundant information in the first configuration data.

[0148] The lightweight processing module 1 performs lightweight processing on the configuration data. Taking the data uploaded by the user to the data server as an example, the exported file formats and contents will be different due to the different software used by different users, such as files in RVM, PRT, STP and other formats. These files usually retain a lot of redundant information caused by operations and semantics such as software operation steps and hierarchical structures. Therefore, it can be classified and identified according to its file format information, and the parsed data can be exported as a preset three-dimensional model format file to achieve pre-processing work of data comparison and data cleaning, and delete some redundant information such as version numbers.

[0149] As an optional implementation, the deduplication unit includes:

[0150] A semantic analysis subunit, used for performing semantic analysis on the preprocessed first configuration data to obtain a semantic analysis result;

[0151] A first deletion subunit, configured to extract and delete redundant information from the semantic analysis result according to a first preset rule;

[0152] As another optional implementation, the deduplication unit includes:

[0153] A spatial data subunit, used to obtain spatial data in the preprocessed first configuration data;

[0154] The second deleting subunit is used to delete redundant information in the spatial data according to a second preset rule.

[0155] This embodiment performs structural and semantic analysis on the file, retains the information required for rendering, classifies the configuration information, and removes other irrelevant information. Specifically, the semantic guidance analysis can be comprehensively processed using text recognition, semantic analysis, cleaning templates, etc., to compare and clean the text information in the configuration data to make it regular.

[0156] Geometry lightweight processing only retains the information of one component for components with different positions, and the remaining components are matrix-changed based on this component to achieve configuration reuse. That is, only one copy of geometry data is saved for the same geometric object, and the rendering effect of multiple similar geometric objects in the same frame is obtained by drawing them several times in the rendering pipeline, and applying different geometry changes and material information each time. For example, for a certain electrical equipment, only one copy of the configuration data of the electrical equipment is retained and multiple drawing is adopted, and the electrical equipment is placed in a different position each time, which greatly saves memory and processor computing overhead. The lightweight components are exported to generate new components, which remove redundant and repeated information compared to the original components.

[0157] As a preferred implementation, the component generation module 2 further includes:

[0158] The file compression unit is used to compress the components in the component set into a file format to generate a file format that can be loaded on a web page.

[0159] The generated components can be classified according to certain rules, and then the classified new components are converted into lightweight web page-supported format files such as gltf and glb, stored in the data server and rendered into a three-dimensional scene. Through the lossless compression processing of this embodiment, resource consumption can be further reduced during the transmission process. The above files supporting web page format can also enable more electronic devices with low processing performance to run this method, which increases the compatibility and universality of this method.

[0160] As a preferred implementation, the component generation module 2 further includes:

[0161] a merging unit, configured to merge several configurations in the second configuration data into at least one new configuration to generate third configuration data;

[0162] The first updating unit is used to update the component set according to the third configuration data.

[0163] In this embodiment, several configurations in the second configuration data can be combined and combined as needed, or even spliced ​​multiple times to form a new configuration, and an updated component set is formed accordingly, so that the new components generated after the combination are loaded into the target scene for rendering. For example, several drainage pipes can be combined according to user-defined requirements.

[0164] As a preferred implementation, the component generation module 2 further includes:

[0165] A first editing unit, configured to perform configuration editing processing on the second configuration data to obtain fourth configuration data, wherein the configuration editing processing includes but is not limited to processing methods such as translation, rotation, scaling, and attribute modification;

[0166] The second updating unit is used to update the component set according to the fourth configuration data.

[0167] This implementation method is to edit and adapt the second configuration data, that is, to perform operations such as rotation, translation, and scaling on the spatial structure attributes of the configuration data, and to edit the attributes and parameter information corresponding to the configuration, such as size, positioning point, presentation angle, etc. The component set is updated according to the edited fourth configuration data, thereby changing the original three-dimensional scene rendering effect.

[0168] As a preferred implementation, the component generation module 2 further includes:

[0169] The second editing unit is used to edit the measurement point information and logical attributes of the second configuration data to obtain the fifth configuration data; the third updating unit is used to update the component set according to the fifth configuration data. The measurement point information is used to characterize the measurement information corresponding to the physical component in the target scene; the logical attributes are used to characterize the logical association relationship between different components in the target scene.

[0170] Since the newly generated component is independent and has no connection with the scene or other components, you need to add logical properties to it, or add logical properties to it as a whole after merging it with other components, so as to associate it with the scene.

[0171] Similarly, the newly generated component is isolated from external information and needs to add measurement points for it. In this way, after the component is added to the scene, due to the existence of the measurement point interface, the physical component corresponding to the component, such as some temperature measurement information on the temperature control device, can be fed back through the interface and finally displayed in real time on the system. In this way, the present embodiment establishes a connection with the physical component in the above manner, thereby achieving the purpose of obtaining external information, and can perform real-time monitoring and other operations, thereby expanding the scope of application and greatly increasing the practicality of the present method.

[0172] As a preferred implementation, the component generation module 2 further includes: a third editing module, which is used to adjust the association information between the measuring point information and the entity component based on the measuring point information interface using preset instructions; the association information includes but is not limited to binding information, unbinding information and modified binding information, etc. A fourth updating unit, which is used to update the component set according to the sixth configuration data.

[0173] For example, in a power plant scenario, components are matched with physical components according to their logical properties and measurement point information. The values ​​measured and monitored by sensors on physical components, such as temperature, pressure, and other information, are fed back to the system in real time and visualized on the corresponding components on the web page. At the same time, different effects are added to different components according to their types and scenarios, such as adding gas flow effects to ventilation duct components and fluid flow effects to fluid ducts.

[0174] As a preferred implementation, the rendering module 3 includes:

[0175] A parameter information subunit, used to obtain parameter information of a target scene;

[0176] A component division subunit, used for dividing the components in the component set into visible components and invisible components according to parameter information;

[0177] The component rendering subunit is used to render the visible components to the target scene.

[0178] This implementation is designed for the application dimension of the three-dimensional scene, that is, for the needs of operation and maintenance management, the initial interface of the target scene and the intermediate interface at a subsequent node can be defined by the user, or automatically determined based on interest or other means. Parameter information includes but is not limited to viewing angle height and angle, so that the user can see the most information, the most important information, or the information he wants to see in the above-mentioned initial interface and intermediate interface. Based on this, the components are concentrated and divided into visible components, which are rendered to the target scene for presentation at the first time. Conversely, components that are not within the user's viewing angle are treated as invisible components, so that they are not rendered at the first time, and the background rendering is performed after the initial interface rendering is completed, thereby reducing the time the user waits for the interface to be presented, greatly improving the user experience.

[0179] This implementation method synchronizes and visualizes the changes in the position, size, and bound measurement point information of the corresponding components according to different user operations, so that the system can update the system in real time according to user operations. For example, the measurement point information interface can be used to implement operations such as binding, unbinding, rebinding, or changing the position of the measurement point information with the entity, such as binding a component used to display real-time temperature with the temperature measurement components of multiple entities, so that the temperature information obtained from multiple temperature measurement components can be displayed in real time. Of course, according to actual usage requirements, operations such as unbinding and changing binding can also be performed. At the same time, the information obtained by synchronous update is stored in the database to ensure the correctness and consistency of user operations and system information.

[0180] The 3D scene generation system of this embodiment greatly reduces the resources required in the process of generating 3D target scenes by lightweight processing of the original configuration data and multiple ways of editing and rendering, improves the efficiency of 3D scene generation, can integrate different original data into the same target scene, monitor the running status of the equipment in real time, realize the universality and real-time performance of the system, can run smoothly on low-configuration equipment, reduce the requirements for equipment, and improve the experience of managers and users. At the same time, it realizes real-time monitoring of equipment and improves the working conditions of staff.

[0181] Example 3

[0182] Figure 6 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. The electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the three-dimensional scene generation method in Embodiment 1 is implemented when the processor executes the program. Figure 6 The electronic device 30 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0183] like Figure 6 As shown, the electronic device 30 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 30 may include, but are not limited to: at least one processor 31, at least one memory 32, and a bus 33 connecting different system components (including the memory 32 and the processor 31).

[0184] The bus 33 includes a data bus, an address bus, and a control bus.

[0185] The memory 32 may include a volatile memory, such as a random access memory (RAM) 321 and / or a cache memory 322 , and may further include a read-only memory (ROM) 323 .

[0186] The memory 32 may also include a program / utility 325 having a set (at least one) of program modules 324, such program modules 324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0187] The processor 31 executes various functional applications and data processing by running the computer programs stored in the memory 32, such as the three-dimensional scene generation method in Embodiment 1 of the present invention.

[0188] The electronic device 30 may also communicate with one or more external devices 34 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 35. Furthermore, the model generating device 30 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 36. Figure 6 As shown, the network adapter 36 communicates with other modules of the model-generated device 30 via the bus 33. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated device 30, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.

[0189] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.

[0190] Example 4

[0191] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the three-dimensional scene generation method in Embodiment 1 are implemented.

[0192] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.

[0193] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps in the three-dimensional scene generation method in Example 1.

[0194] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.

[0195] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.

Claims

1. A three-dimensional scene generation method, characterized in that: The steps include: Performing lightweight processing on the first configuration data to obtain second configuration data; generating a component set based on the second configuration data, the component set comprising at least one component; Rendering a target scene based on the component set; The step of performing lightweight processing on the first configuration data comprises: Obtaining file format information corresponding to the first configuration data; Preprocessing the first configuration data according to the file format information; Performing deduplication processing on the preprocessed first configuration data to delete redundant information in the first configuration data; The step of generating a component set based on the second configuration data comprises: Merging several configurations in the second configuration data into at least one new configuration to generate third configuration data; updating the component set according to the third configuration data; and / or, performing configuration editing processing on the second configuration data to obtain fourth configuration data, wherein the configuration editing processing includes at least one processing method of translation, rotation, scaling, and attribute modification; updating the component set according to the fourth configuration data; And / or, edit the measurement point information and logical properties of the second configuration data to obtain fifth configuration data; update the component set according to the fifth configuration data; the measurement point information is used to characterize the measurement information corresponding to the entity components in the target scene; the logical properties are used to characterize the logical association relationship between different components in the target scene.

2. The three-dimensional scene generation method according to claim 1, characterized in that: The step of performing deduplication processing on the preprocessed first configuration data to delete redundant information in the first configuration data includes: Performing semantic analysis on the preprocessed first configuration data to obtain a semantic analysis result; According to a first preset rule, redundant information in the semantic analysis result is extracted and deleted; and / or, Acquire the spatial data in the first configuration data after preprocessing; According to a second preset rule, redundant information in the spatial data is deleted.

3. The three-dimensional scene generation method according to claim 1, characterized in that: After the step of generating a component set based on the second configuration data, the method further includes: The components in the component set are subjected to file format compression processing to generate a file format that can be loaded on a web page.

4. The three-dimensional scene generation method according to claim 1, characterized in that: The step of generating a component set based on the second configuration data further includes: Based on the measuring point information interface, the association information between the measuring point information and the entity component is adjusted by using a preset instruction to obtain sixth configuration data; the association information includes at least one of binding information, unbinding information and modified binding information; The component set is updated according to the sixth configuration data.

5. The three-dimensional scene generation method according to claim 1, characterized in that: The step of rendering the target scene based on the component set comprises: Acquiring parameter information of the target scene; Dividing the components in the component set into visible components and invisible components according to the parameter information; The visible component is rendered to the target scene.

6. A three-dimensional scene generation system, characterized in that: include: A lightweight processing module, used for performing lightweight processing on the first configuration data to obtain second configuration data; A component generation module, configured to generate a component set based on the second configuration data, wherein the component set includes at least one component; A rendering module, used for rendering a target scene based on the component set; The lightweight processing module includes: A file format acquiring unit, used to acquire file format information corresponding to the first configuration data; A preprocessing unit, configured to preprocess the first configuration data according to the file format information; a deduplication unit, configured to perform deduplication processing on the preprocessed first configuration data to delete redundant information in the first configuration data; The component generation module includes: a merging unit and a first updating unit, wherein the merging unit is used to merge several configurations in the second configuration data into at least one new configuration to generate third configuration data; and the first updating unit is used to update the component set according to the third configuration data; and / or, a first editing unit and a second updating unit, wherein the first editing unit is used to perform configuration editing processing on the second configuration data to obtain fourth configuration data, wherein the configuration editing processing includes at least one processing method of translation, rotation, scaling, and attribute modification; and the second updating unit is used to update the component set according to the fourth configuration data; And / or, a second editing unit and a third updating unit, the second editing unit is used to edit the measuring point information and logical properties of the second configuration data to obtain fifth configuration data; the third updating unit is used to update the component set according to the fifth configuration data; the measuring point information is used to characterize the measurement information corresponding to the entity components in the target scene; the logical properties are used to characterize the logical association relationship between different components in the target scene.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the three-dimensional scene generation method described in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the three-dimensional scene generation method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Visual industrial process management and control platform based on modeling technology

    CN112528525A

  • Building model compression processing method, device, equipment and medium

    CN112926119A