Construction method and device of digital twin platform base
By combining Geographic Information System (GIS) and Unreal Engine, a digital twin platform foundation is constructed, which solves the problem of limited performance in large-scale data loading in existing technologies, and achieves efficient geospatial data integration and rich application scenario support.
Patent Information
- Application Number
- CN202410944977.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-12
AI Technical Summary
Existing digital twin platform foundations suffer from performance limitations, insufficient scalability, and inadequate data representation capabilities when loading large-scale data, requiring optimization and performance tuning.
By combining Geographic Information System (GIS) and Unreal Engine, geographic data is processed through GIS, and the rendering capabilities of Unreal Engine are used to build the foundation of a digital twin platform. Real-time data access, interaction, and visualization interfaces are configured to realize the integration and processing of geospatial data.
It improves the performance and applicability of the digital twin platform, enabling it to efficiently process large-scale geographic information data, provide rich geospatial information support, and is suitable for a variety of application scenarios.
Smart Images

Figure CN118941726A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of digital twin technology, and in particular to a method and device for constructing a digital twin platform base. Background Art
[0002] Digital twin technology is an advanced technology that makes full use of data such as physical models, sensor updates, and operation history, integrates multi-disciplinary, multi-physical, multi-scale, and multi-probability simulation processes, and completes mapping in virtual space, thereby reflecting the entire life cycle of the corresponding physical equipment. The digital twin platform base uses the fusion technology of three-dimensional geographic information to associate the target object with the collected data to obtain a digital twin scene, which can then be visualized.
[0003] However, the performance of the existing digital twin platform base is limited when loading large-scale data, which affects the application of the digital twin platform base. For example, the digital twin platform base construction solution based on Cesium (Cesium is an open source framework for IoT digital twins) can directly load the target format data after converting two-dimensional and three-dimensional data such as terrain, vector data, image data, and oblique photography data, and display it on the three-dimensional earth according to the real geographic coordinates, thereby building a digital twin platform base. However, this method has relatively weak data representation capabilities and limited scalability. When processing large-scale data, its performance may be limited and may require additional optimization and performance adjustments. Summary of the invention
[0004] In order to solve the above problems, this application provides the following technical solutions:
[0005] A method for constructing a digital twin platform base, the method comprising:
[0006] Obtain scenario requirement information of the digital twin platform for the target application scenario;
[0007] Using the geographic information system to process the collected target geographic information data to obtain a three-dimensional data model of the target;
[0008] Calling an Unreal Engine that matches the scene requirement information, and processing the target three-dimensional data model through the Unreal Engine to obtain a digital twin platform base, wherein the digital twin platform base is used to obtain a digital twin virtual scene;
[0009] Configure the target interface of the digital twin platform base to obtain the target digital twin platform base, the target interface at least includes a real-time data access interface, an interaction interface between the geographic information system and the Unreal Engine, and a visualization interaction interface, wherein the target digital twin platform base is applied to the digital twin platform of the target application scenario.
[0010] Optionally, the method further comprises:
[0011] Based on the target digital twin platform base, generating an initial digital twin platform corresponding to the target application scenario;
[0012] Testing the initial digital twin platform, and determining a target digital twin platform corresponding to the target application scenario based on the test results;
[0013] Deploying the target digital twin platform into the application scenario of the target application scenario to obtain feedback information for the target digital twin platform;
[0014] The target digital twin platform is adjusted based on the feedback information so that the adjusted digital twin platform can meet the needs of the target application scenario.
[0015] Optionally, obtaining scenario requirement information of the digital twin platform of the target application scenario includes:
[0016] Determine the target information for creating the digital twin platform for the target application scenario;
[0017] Determining data processing requirement information of the digital twin platform;
[0018] Based on the creation target information and the data processing requirement information, the scenario requirement information of the digital twin platform is determined.
[0019] Optionally, the method of processing the acquired geographic information data using a geographic information system to obtain a target three-dimensional data model includes:
[0020] Collect geographic data of the target area to obtain initial geographic information data;
[0021] Performing data preprocessing on the initial geographic information data to obtain preprocessed geographic information data;
[0022] Based on the geographic information system, the preprocessed geographic information data is processed using a data processing mode that matches the data type of the preprocessed geographic information data to obtain a target three-dimensional data model.
[0023] Optionally, the geographic information system adopts a data processing mode that matches the data type of the preprocessed geographic information data to process the preprocessed geographic information data to obtain a target three-dimensional data model, including:
[0024] If the data type of the pre-processed geographic information data is terrain data, converting the terrain data using the geographic information system to obtain three-dimensional tile data;
[0025] If the data type of the pre-processed geographic information data is raster image data, slicing the raster image data using the geographic information system to obtain tile data;
[0026] If the data type of the preprocessed geographic information data is vector data, the vector data is processed by the geographic information system to obtain three-dimensional format data;
[0027] If the data type of the pre-processed geographic information data is oblique photography data, converting the oblique photography data using the geographic information system to obtain three-dimensional tile data;
[0028] If the preprocessed geographic information data is building information model data, the building information model data is processed using the geographic information system to obtain target three-dimensional format data.
[0029] Optionally, the processing of the target three-dimensional data model by the Unreal Engine to obtain a digital twin platform base includes:
[0030] In response to starting the Unreal Engine, adding a lighting weather system to a target application scene, the lighting weather system being used to simulate weather changes and lighting changes;
[0031] Adding terrain data to the Unreal Engine, wherein the terrain data is used to simulate terrain characteristics of actual application scenarios;
[0032] The target three-dimensional data model is loaded based on a plug-in that matches the type of the Unreal Engine and the target three-dimensional data model, and the loaded target three-dimensional data model is adjusted so that the target in the target three-dimensional data model coincides with the actual position in the terrain data, thereby obtaining a digital twin platform base, wherein the digital twin platform base is provided with configuration information of an image acquisition module.
[0033] Optionally, adding terrain data to the Unreal Engine comprises:
[0034] Creating a basic terrain using the Unreal Engine;
[0035] According to data features corresponding to the terrain data to be added, the basic terrain is adjusted to achieve adding the terrain data to the Unreal Engine;
[0036] Alternatively, creating terrain data based on the three-dimensional tile data generated from the target geographic information data;
[0037] Adding the terrain data to the Unreal Engine.
[0038] Optionally, the interaction interface between the geographic information system and the Unreal Engine is configured as follows:
[0039] Importing the basic geographic data layer corresponding to the geographic information system into the Unreal Engine through a target plug-in to adjust the basic geographic data layer;
[0040] The fusion of the geographic information system data and the target three-dimensional data model is realized in the Unreal Engine.
[0041] Optionally, the visual interaction interface is configured as:
[0042] Using the visualization module of the Unreal Engine, creating a user interface;
[0043] Displaying functional configuration components corresponding to the digital twin platform;
[0044] Provide optimization functions for the visualization information of the digital twin platform.
[0045] A device for constructing a digital twin platform base, the device comprising:
[0046] An acquisition unit, used to obtain scenario requirement information of the digital twin platform of the target application scenario;
[0047] The first processing unit is used to process the collected target geographic information data using a geographic information system to obtain a target three-dimensional data model;
[0048] A second processing unit is used to call an Unreal Engine that matches the scene requirement information, and process the target three-dimensional data model through the Unreal Engine to obtain a digital twin platform base, where the digital twin platform base is used to obtain a digital twin virtual scene;
[0049] A configuration unit is used to configure a target interface of the digital twin platform base to obtain the target digital twin platform base, wherein the target interface includes at least a real-time data access interface, an interaction interface between the geographic information system and the Unreal Engine, and a visualization interaction interface, wherein the target digital twin platform base is applied to the digital twin platform of the target application scenario.
[0050] Compared with the prior art, the present application provides a method and device for constructing a digital twin platform base, including: obtaining the scene requirement information of the digital twin platform of the target application scenario; using the geographic information system to process the collected target geographic information data to obtain the target three-dimensional data model; calling the Unreal Engine that matches the scene requirement information, and processing the target three-dimensional data model through the Unreal Engine to obtain the digital twin platform base, the digital twin platform base is used to obtain the digital twin scene; configuring the target interface of the digital twin platform base to obtain the target digital twin platform base. In the process of creating the digital twin platform base in the present application, the Unreal Engine is combined with the Geographic Information System (GIS), and the rendering capability of the Unreal Engine is used in combination with the Geographic Information System to achieve accurate integration and efficient processing of geographic spatial data, providing rich geographic spatial information support for the digital twin platform, with wider applicability and higher performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0052] Figure 1 A schematic diagram of a process for constructing a digital twin platform base provided in an embodiment of the present application;
[0053] Figure 2 A schematic diagram of a digital twin platform base construction process in an application scenario provided in an embodiment of the present application;
[0054] Figure 3 A schematic diagram of a process flow for setting up a scenario provided in an embodiment of the present application;
[0055] Figure 4 A schematic diagram of the structure of a device for constructing a digital twin platform base provided in an embodiment of the present application. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0057] The terms "first" and "second" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may include steps or units that are not listed.
[0058] In the embodiment of the present application, a method for constructing a digital twin platform base is provided, which can build a highly visualized digital twin visualization base based on large-scale geographic information data and large quantities of three-dimensional models. Among them, the digital twin platform base is the basis for building a digital twin platform. The digital twin platform base can carry data access, storage and display. When the digital twin platform base processes and renders the geographic data collected in real time, a digital twin platform corresponding to the current application scenario is obtained.
[0059] See also Figure 1 , is a flow chart of a method for constructing a digital twin platform base provided in an embodiment of the present application, and the method may include the following steps:
[0060] S101. Obtain scenario requirement information of the digital twin platform of the target application scenario.
[0061] The target application scenario is the scenario where the digital twin platform needs to be deployed, such as the target application scenario can be an urban planning scenario, a park management scenario, or an intelligent transportation scenario. The digital twin platform is able to form a virtual scene corresponding to the target application scenario, and map the collected real-time data of the target application scenario to the virtual scene, so as to visualize the scene. Specifically, the scenario requirement information can be the goal of building the digital twin platform and the data requirements.
[0062] In one implementation of an embodiment of the present application, the scenario requirement information of the digital twin platform of the target application scenario is obtained, including: determining the creation target information of the digital twin platform of the target application scenario; determining the data processing requirement information of the digital twin platform; and determining the scenario requirement information of the digital twin platform based on the creation target information and the data processing requirement information.
[0063] In the process of determining the creation target information of the digital twin platform, you can communicate with the demanders of the target application scenario to determine the construction goals of the digital twin platform, for example, it can be to improve urban planning efficiency, optimize park management, etc. Analyze the specific needs of the target application scenario, including what geographic information needs to be displayed, what interactive functions need to be realized, etc. In the process of determining the data processing demand information, you can determine the accuracy requirements of the data, such as resolution, error range, etc., according to the required data types, such as terrain data, building data, traffic data, etc. And according to the data collection method, you can determine the matching data collection module, such as selecting suitable aerial photography, satellite remote sensing or drone technologies for data collection. In this way, according to the creation target information and data processing demand information, the scene demand information corresponding to the target application scenario can be determined, so that the subsequently generated digital twin platform base can match the target application scenario and have better applicability.
[0064] S102: Using a geographic information system to process the collected target geographic information data to obtain a target three-dimensional data model.
[0065] Geographic Information System (GIS) is a specific spatial information system that not only includes various basic functions for processing spatial or geographic information, but also combines geography and cartography as well as remote sensing and computer science to provide users with location information and geographic environment analysis, helping users to better understand and apply geographic information. Its specific functions may include data collection and editing, data processing and storage management, graphic display, spatial query and analysis, and map making.
[0066] Geographic information data can be collected by aerial photography, satellite remote sensing, drones and other technologies, and the collected data can be identified as target geographic information data, which can include topography, road and building data, vegetation and water data, etc. Then, the target geographic information data is integrated and processed using a geographic information system (GIS) to generate a target three-dimensional data model, which represents the collected two-dimensional and three-dimensional data through a three-dimensional model for subsequent application in the digital twin platform. Correspondingly, the target three-dimensional data model can be used as a basic geographic data layer.
[0067] S103: Calling an Unreal Engine that matches the scene requirement information, and processing the target three-dimensional data model through the Unreal Engine to obtain a digital twin platform base.
[0068] Unreal Engine is a comprehensive and powerful game development engine that can provide a large number of core technologies, data generation tools and basic support, and can be applied to games, virtual reality, augmented reality and other fields. When calling the Unreal Engine, it is necessary to determine the current Unreal Engine development environment according to the scene requirement information, install and configure the Unreal Engine development environment, ensure that the Unreal Engine version matches the requirements, and create the basic framework and layout of the virtual scene according to the requirements. According to the characteristics and requirements of the built digital twin scene, the base of the digital twin platform is configured, which can include planning of various aspects such as terrain layout, building distribution, transportation facilities, and personnel flow. Then the target three-dimensional data model is imported into the Unreal Engine, and the tools provided by the engine are used to edit and adjust it. The import and editing of the target three-dimensional data model is to build a data base in the Unreal Engine, that is, to obtain the digital twin platform base. The digital twin platform base is used to obtain the digital twin virtual scene, which is convenient for the subsequent mapping of real-time collected data to the virtual scene to obtain the digital twin platform corresponding to the target application scenario.
[0069] S104. Configure the target interface of the digital twin platform base to obtain the target digital twin platform base.
[0070] The target interface includes at least a real-time data access interface, an interaction interface between the geographic information system and the Unreal Engine, and a visualization interaction interface, wherein the target digital twin platform base is applied to the digital twin platform of the target application scenario.
[0071] Among them, the real-time data access interface is used to deploy sensors and data acquisition equipment to collect key data in real time, such as temperature, humidity, traffic flow, etc. The real-time data is connected to the digital twin platform through the data access interface, and is associated and integrated with the target three-dimensional data model. Specifically, various types of data in the target area, such as pedestrian flow, traffic flow, ambient temperature, etc., can be collected in real time using sensors, cameras and other equipment. Ensure that the data acquisition equipment can transmit data to the digital twin platform in real time. Establish a data interface in the digital twin platform to receive real-time data. Connect the collected real-time data to the platform and associate it with the virtual scene. Integrate the real-time data with the model in the virtual scene to realize dynamic update and visual display of the data. Ensure the accuracy and real-time nature of the data to provide users with real decision support.
[0072] Among them, the interactive interface between the geographic information system and the Unreal Engine is configured as follows: the basic geographic data layer corresponding to the geographic information system is imported into the Unreal Engine through the target plug-in to adjust the basic geographic data layer; and the fusion of the geographic information system data and the target three-dimensional data model is realized in the Unreal Engine. Specifically, the basic geographic data layer provided by the geographic information system (GIS) is used to create an accurate geographic background and environment in the Unreal Engine. The fusion of GIS data and the Unreal Engine model is realized to ensure that the digital twin platform can truly reflect the real world. The basic geographic data layer provided by the GIS system is imported into the Unreal Engine through the AIMapForUnreal plug-in. The position and size of the layer are adjusted to ensure accurate matching with the virtual scene. The fusion of GIS data and the three-dimensional model is realized in the Unreal Engine. The spatial analysis capabilities of GIS data are used to provide rich geographic information support for virtual scenes.
[0073] The visual interaction interface is configured to: create a user interface using the visualization module of the Unreal Engine; display the functional configuration components corresponding to the digital twin platform; and provide optimization functions for the visualization information of the digital twin platform. Specifically, use the visualization tools of the Unreal Engine to create an intuitive user interface for the digital twin platform. Develop interactive functions such as query, analysis, and control to improve the platform's usability and user experience. Among them, in the process of interface design, an intuitive and easy-to-use user interface can be designed, including menus, buttons, toolbars, etc. Ensure that the interface style is coordinated with the virtual scene to improve the user experience. Develop interactive logic according to needs to realize the interaction between users and the platform. Develop interactive functions such as query, analysis, and control to improve the platform's usability. Optimize the rendering effect and interactive performance of the interface to ensure fluency and stability. Adjust the interface design and interactive logic according to user feedback to improve the user experience.
[0074] In an embodiment of the present application, a method for constructing a digital twin platform base is provided, including: obtaining scene requirement information of a digital twin platform of a target application scene; using a geographic information system to process the collected target geographic information data to obtain a target three-dimensional data model; calling an Unreal Engine that matches the scene requirement information, and processing the target three-dimensional data model through the Unreal Engine to obtain a digital twin platform base, the digital twin platform base is used to obtain a digital twin scene; configuring the target interface of the digital twin platform base to obtain the target digital twin platform base. In the process of creating a digital twin platform base in the present application, the Unreal Engine is combined with a geographic information system (GIS), and the rendering capability of the Unreal Engine is used in combination with the geographic information system to achieve accurate integration and efficient processing of geographic spatial data, providing rich geographic spatial information support for the digital twin platform, with wider applicability and higher performance.
[0075] The following describes the implementation methods in the embodiments of the present application in detail in combination with specific application scenarios. Figure 2 , is a schematic diagram of a digital twin platform base construction process in an application scenario provided in an embodiment of the present application. Figure 2 The corresponding preliminary preparation and demand analysis process has been Figure 1 The embodiment shown is described in detail. Figure 2 For related content, see Figure 1 Description of the illustrated embodiments and various implementations described below.
[0076] In one implementation of the embodiment of the present application, the method further includes:
[0077] Based on the target digital twin platform base, generating an initial digital twin platform corresponding to the target application scenario;
[0078] Testing the initial digital twin platform, and determining a target digital twin platform corresponding to the target application scenario based on the test results;
[0079] Deploying the target digital twin platform into the application scenario of the target application scenario to obtain feedback information for the target digital twin platform;
[0080] The target digital twin platform is adjusted based on the feedback information so that the adjusted digital twin platform can meet the needs of the target application scenario.
[0081] The digital twin platform base generated in the embodiment of the present application can be a universal base applied to various scenarios, and then mapped to the virtual scene corresponding to the digital twin platform base in combination with the real-time collected data to achieve visual display. And the target digital twin platform can be adjusted according to the information fed back by the user to meet the needs of the current target application scenario. Specifically, the testing of the digital twin platform mainly includes functional testing, performance testing and stability testing. The platform is optimized and adjusted according to the test results to ensure the stability and reliability of the platform. Among them, the functional test is a comprehensive test of the various functions of the digital twin platform to ensure that the functions are normal and meet expectations. Record and repair problems and defects found during the test. Performance testing is to test the rendering performance, response speed, etc. of the platform. Optimize the model, scene and code according to the test results to improve performance. Stability testing refers to long-term running tests on the platform in different scenarios to check the stability and reliability of the platform. Adjust the configuration and code according to the test results to ensure the stable operation of the platform. Deploy the qualified digital twin platform to the actual application environment and provide it to users. Continuous optimization and improvement are carried out according to user feedback and needs.
[0082] In one implementation of the present application, in order to create an accurate digital twin platform base, the collected data needs to be pre-processed to ensure the accuracy of the data. At the same time, different processing modes are used for different types of geographic data to obtain the corresponding target three-dimensional data model, which can better match the data type and achieve efficient and accurate conversion. For example, when different types of data are superimposed and displayed, their locations or original data formats are different, resulting in different processing rules. For example, when raster image data and building models are superimposed, the raster image data only needs to be displayed as a ground texture, similar to the Baidu map image we see, but the building data needs to be displayed in three dimensions, so it needs to be processed into a three-dimensional model. Similarly, different types of data have different original data formats. For example, image data are generally in tif format, and building data are generally in vector data format. .shp, and their processing rules will also be different.
[0083] Specifically, the method of using a geographic information system to process the collected geographic information data to obtain a target three-dimensional data model includes:
[0084] Collect geographic data of the target area to obtain initial geographic information data;
[0085] Performing data preprocessing on the initial geographic information data to obtain preprocessed geographic information data;
[0086] Based on the geographic information system, the preprocessed geographic information data is processed using a data processing mode that matches the data type of the preprocessed geographic information data to obtain a target three-dimensional data model.
[0087] Among them, the data collection process is to use aerial photography, satellite remote sensing, drones and other technical means to collect geographic information data of the target area. Ensure that the collected data includes key information such as topography, roads, buildings, vegetation and water bodies. Pay attention to the accuracy and completeness of the data during the collection process to ensure data quality. The data preprocessing process is to clean the collected raw data and remove duplicate, erroneous or invalid data. Format the data to meet the project requirements and the needs of subsequent processing tools. Including terrain data (DEM), raster image data (DOM), vector data (buildings, roads, rivers, pipe networks, etc.), oblique photography data, BIM data and two-dimensional data required in the construction platform base (i.e. preprocessed geographic information data). Then use geographic information system (GIS) software to integrate and manage the data and build a unified geographic database. Ensure that the data structure in the database is clear and the logic is rigorous, which is convenient for subsequent data analysis and application. According to the acquired two-dimensional and three-dimensional data, it is converted into a three-dimensional model. Different types of data are processed differently according to their own attribute information and application in the scene. For example, the vector data of buildings, roads, rivers, and pipelines need to be customized according to their attribute information such as height, width, floors, depth, diameter, burial depth, and accessories, as well as whether they need to be individualized in the scene.
[0088] Furthermore, the geographic information system uses a data processing mode that matches the data type of the preprocessed geographic information data to process the preprocessed geographic information data to obtain a target three-dimensional data model, including:
[0089] If the data type of the pre-processed geographic information data is terrain data, converting the terrain data using the geographic information system to obtain three-dimensional tile data;
[0090] If the data type of the pre-processed geographic information data is raster image data, slicing the raster image data using the geographic information system to obtain tile data;
[0091] If the data type of the preprocessed geographic information data is vector data, the vector data is processed by the geographic information system to obtain three-dimensional format data;
[0092] If the data type of the pre-processed geographic information data is oblique photography data, converting the oblique photography data using the geographic information system to obtain three-dimensional tile data;
[0093] If the preprocessed geographic information data is building information model data, the building information model data is processed using the geographic information system to obtain target three-dimensional format data.
[0094] For example, terrain data DEM is converted into 3DTiles (3D tile) data. Raster image data is generally generated into tile data through map slicing tools. Vector data is generally generated into 3D models through 3D modeling tools or automated tools and saved in formats such as FBX and OBJ. If the vector data does not participate in the interaction, collision, deformation and other operations in the scene, the model generated by the entire vector data can be saved as a whole or generated into 3DTiles data through tools. Oblique photography data is generally converted into 3DTiles data. Since BIM data contains attachments and attribute information, the model composition is more complex than that of ordinary models, so it is necessary to use a dedicated Datasmith plug-in to convert BIM data into Datasmith format. Among them, the Datasmith plug-in is a tool and plug-in officially provided by Unreal Engine to import content into Unreal Engine, supporting a wide range of 3D design applications and file formats. It uses a file-based workflow to import designs into Unreal Engine. Users need to save or export design data in a format that Datasmith can handle. Datasmith can read the native file formats of many common CAD applications. 3D Tiles is a format designed specifically for streaming and rendering massive 3D geospatial data. It supports multiple levels of LOD (Level of Detail) and uses Tilesets to organize and manage data.
[0095] In one implementation of the embodiments of the present application, the target three-dimensional data model is processed by the Unreal Engine to obtain a digital twin platform base, including: in response to starting the Unreal Engine, adding a lighting weather system to the target application scene, the lighting weather system is used to simulate weather changes and lighting changes; adding terrain data to the Unreal Engine, the terrain data is used to simulate the terrain characteristics of the actual application scene; loading the target three-dimensional data model based on a plug-in that matches the type of the Unreal Engine and the target three-dimensional data model, and adjusting the loaded target three-dimensional data model so that the target in the target three-dimensional data model coincides with the actual position in the terrain data, to obtain a digital twin platform base, wherein the digital twin platform base is provided with configuration information of an image acquisition module.
[0096] For example, through the GIS plug-in AIMapForUnreal that supports the UE game engine, real-world geospatial data can be imported into the Unreal Engine to achieve a realistic earth scene display. It has powerful geospatial data processing capabilities. It supports the import of geospatial data in various formats, including terrain data, vector data, satellite images, etc. Data can be directly imported through this plug-in without complex data processing operations, thus saving development time and effort. The AIMapForUnreal plug-in sets which longitude and latitude coordinates are used as the origin of the scene by creating an AIMapGeoreference blueprint class, and subsequent data will use this coordinate as the origin for coordinate transformation. 3DTiles data is loaded through the AIMap3DTileset blueprint class, and raster image data is loaded through the AIMapRasterOverlay component class. By setting local or online 3DTiles data as the data source in the AIMap3DTileset blueprint object, the AIMapGeoreference blueprint object is set as the spatial reference blueprint for this data. The plug-in uses the maximum rendering pixel difference to determine the level of data to be loaded based on the data format characteristics of 3DTiles. When the distance from the camera viewpoint is far, a low-level, low-precision model file is rendered. When the distance from the camera viewpoint is close, a high-level, high-precision model file is rendered. The difference in the camera setting height and posture will also result in different display scene area ranges. The demand for the number of loaded tiles will change according to the change in the screen display range. For the display accuracy of the model, the closer the viewpoint is, the higher the display accuracy of the model is generally required, and the model in the farther area has lower accuracy requirements. This can reduce the loss of computer performance and relieve the pressure of front-end rendering. The calculation formula for the maximum rendering pixel difference is as follows:
[0097]
[0098] Among them, SSE represents screen space error, geometricError is the geometric error of the model, BufferHeight is the actual height of the current drawing buffer, distance refers to the closest distance between the bounding volume of the tile and the camera, and fovy is the tilt angle of the camera in the vertical direction.
[0099] When the AIMapForUnreal plug-in loads geographic information data, it needs to convert the spatial coordinate system into the Unreal Engine coordinate system. Taking longitude and latitude coordinates as an example, it first needs to be converted into the geocentric rectangular coordinate system (ECEF), and then converted into the spatial rectangular coordinate system of the Unreal Engine. The specific conversion formula is as follows: Taking longitude and latitude coordinates (lon, lat, alt) as an example:
[0100]
[0101] Where a represents the major axis of the ellipsoid, b represents the minor axis of the ellipsoid, e represents the eccentricity of the ellipsoid, and N represents the radius of curvature of the reference ellipsoid.
[0102] The earth coordinates (X, Y, Z) of the ECEF point are calculated as follows:
[0103] X=(N+alt)cos(lat)cos(lon)(4)
[0104] Y=(N+alt)cos(lat)sin(lon)(5)
[0105] Z=(N(1-e 2 )+alt)sin(lat)(6)
[0106] When converting from ECEF coordinates to the Unreal Engine coordinate system, you need to translate first and then rotate. The rotation is to rotate around the Z axis first by -(π / 2+lon), and then around the X axis by -(π / 2-lat). The translation matrix is as follows:
[0107]
[0108] The rotation matrix around the X axis is:
[0109]
[0110] The rotation matrix around the Z axis is:
[0111]
[0112] Therefore, the rotation matrix from ECEF coordinates to Unreal Engine is:
[0113] R=R x (-(π / 2-lat))·R z (-(π / 2+lon))(10) is
[0114]
[0115] Combined with the translation matrix, the transformation matrix from the geocentric rectangular coordinate system (ECEF) to the rectangular coordinate system of the Unreal Engine is:
[0116]
[0117] Through the above processing, real-world geospatial data can be imported into the Unreal Engine to achieve realistic earth scene display.
[0118] See also Figure 3, a flow chart of a scene construction provided by an embodiment of the present application. In order to make the scene closer to the real scene, you can also adjust the material, set the light source, add shadows, etc. Specifically, after opening the Unreal Engine, first add the weather and lighting system blueprint object to the scene to simulate weather changes and lighting changes. After adding the weather and lighting blueprint objects to the scene, you can set the year, month, day, time, northern and southern hemispheres, and time zones to display the actual lighting effects. At the same time, the weather system can also simulate weather conditions such as sunny, cloudy, a few clouds, light rain, moderate rain, heavy rain, light snow, moderate snow, heavy snow, blizzards, haze, sandstorms, etc., and you can also set various parameters such as wind speed and cloud cover, and you can adjust the weather system according to actual conditions.
[0119] Add terrain data to the Unreal Engine, the terrain data is used to simulate the terrain characteristics of the actual application scene, and the process may include using the Unreal Engine to create a basic terrain; adjusting the basic terrain according to the data characteristics corresponding to the terrain data to be added, so as to realize adding the terrain data to the Unreal Engine; or, creating terrain data based on the three-dimensional tile data generated by the target geographic information data; adding the terrain data to the Unreal Engine. Specifically, according to the project and scene requirements, it is determined whether it is necessary to add terrain to the scene. In scenes that do not involve terrain, terrain data may not be added. However, in some scenes, such as flooding, rain and snow, spatial analysis and measurement, pollution diffusion, etc., terrain must be added and must be accurate, otherwise it will be a little bit wrong and have a huge impact on the actual application. Currently, terrain can be added in the following two ways. One is to use the terrain tool of the Unreal Engine to create a basic terrain. That is, in the "Terrain" tool of the Unreal Engine, create a new terrain object and select the height map as the height data source of the terrain. Then adjust various parameters of the terrain, such as size, height range, etc., as needed. You can also apply different materials and textures to enhance the visual effect of the terrain. The second is to create terrain through the 3D Tiles data generated by the terrain. The GIS plug-in AIMapForUnreal that supports the UE game engine is developed to load local or online 3D tiles data to create terrain. Ground textures can also be used as terrain textures by loading image raster data.
[0120] After the terrain is created, the target 3D data model will be added. The target 3D data model includes entity models in real scenes such as buildings, roads, trees, rivers, vehicles, pedestrians, and street lights. In the content browser of Unreal Engine, select the "Import" function, then find the 3D model file and import it into the content browser. Then select and place 3D objects such as models and characters from the content browser into the scene. And by adjusting the position, rotation, and scale of the object, make the model coincide with the actual position in the terrain. For 3D Tiles data and tile data, you can load it into the scene through the AIMapForUnreal GIS plug-in developed to support the UE game engine. For Datasmith data, you can load it into the scene through the Datasmith plug-in of Unreal Engine.
[0121] Furthermore, the digital twin platform base is provided with configuration information of the image acquisition module. Specifically, a Pawn-based blueprint class BP_Pawn is created, BP_Pawn is added to the scene, the position, rotation and scaling of the camera are set, and the camera operation and the axis mapping of the mouse are set as needed. According to the project requirements and the scene size, the frame rate, world scene range and world partition, and exposure and other parameters are set.
[0122] In the embodiments of the present application, the Unreal Engine is combined with the Geographic Information System, and the powerful rendering capabilities of the Unreal Engine are utilized in combination with the Geographic Information System to achieve accurate integration and efficient processing of geospatial data, thereby achieving innovative integration in technology and providing rich geospatial information support for the digital twin platform, with higher technical integration and practicality. The digital twin platform base of the present application has a wide range of application scenarios, can adapt to the needs of different industries and fields, and has a wider range of applicability. During the platform construction process, attention is paid to algorithm optimization and performance improvement, so that the platform performs well in real-time rendering, interactive response, etc., especially with higher performance and efficiency when dealing with large-scale geospatial data.
[0123] In another embodiment of the present application, a construction device for a digital twin platform base is also provided, see Figure 4 , the device comprises:
[0124] An acquisition unit 401 is used to obtain scenario requirement information of a digital twin platform of a target application scenario;
[0125] The first processing unit 402 is used to process the collected target geographic information data using a geographic information system to obtain a target three-dimensional data model;
[0126] The second processing unit 403 is used to call an Unreal Engine that matches the scene requirement information, and process the target three-dimensional data model through the Unreal Engine to obtain a digital twin platform base, where the digital twin platform base is used to obtain a digital twin virtual scene;
[0127] The configuration unit 404 is used to configure the target interface of the digital twin platform base to obtain the target digital twin platform base, wherein the target interface at least includes a real-time data access interface, an interaction interface between the geographic information system and the Unreal Engine, and a visualization interaction interface, wherein the target digital twin platform base is applied to the digital twin platform of the target application scenario.
[0128] Optionally, the device further comprises:
[0129] A generating unit, configured to generate an initial digital twin platform corresponding to the target application scenario based on the target digital twin platform base;
[0130] A testing unit, configured to test the initial digital twin platform and determine a target digital twin platform corresponding to the target application scenario based on the test result;
[0131] A deployment unit, configured to deploy the target digital twin platform into an application scenario of the target application scenario to obtain feedback information for the target digital twin platform;
[0132] An adjustment unit is used to adjust the target digital twin platform based on the feedback information so that the adjusted digital twin platform can meet the needs of the target application scenario.
[0133] Optionally, the acquiring unit includes:
[0134] A first determination subunit is used to determine the creation target information of the digital twin platform of the target application scenario;
[0135] A second determination subunit is used to determine data processing requirement information of the digital twin platform;
[0136] The third determination subunit is used to determine the scenario requirement information of the digital twin platform based on the creation target information and the data processing requirement information.
[0137] Optionally, the first processing unit includes:
[0138] The acquisition subunit is used to collect geographic data of the target area to obtain initial geographic information data;
[0139] A preprocessing subunit, used for performing data preprocessing on the initial geographic information data to obtain preprocessed geographic information data;
[0140] The first processing subunit is used to process the preprocessed geographic information data based on a geographic information system using a data processing mode that matches the data type of the preprocessed geographic information data to obtain a target three-dimensional data model.
[0141] Optionally, the first processing subunit is configured to:
[0142] If the data type of the pre-processed geographic information data is terrain data, converting the terrain data using the geographic information system to obtain three-dimensional tile data;
[0143] If the data type of the pre-processed geographic information data is raster image data, slicing the raster image data using the geographic information system to obtain tile data;
[0144] If the data type of the preprocessed geographic information data is vector data, the vector data is processed by the geographic information system to obtain three-dimensional format data;
[0145] If the data type of the pre-processed geographic information data is oblique photography data, converting the oblique photography data using the geographic information system to obtain three-dimensional tile data;
[0146] If the preprocessed geographic information data is building information model data, the building information model data is processed using the geographic information system to obtain target three-dimensional format data.
[0147] Optionally, the second processing unit includes:
[0148] A first adding subunit is used to add a lighting weather system to a target application scene in response to starting the Unreal Engine, wherein the lighting weather system is used to simulate weather changes and lighting changes;
[0149] A second adding subunit is used to add terrain data to the Unreal Engine, wherein the terrain data is used to simulate terrain characteristics of an actual application scenario;
[0150] A data loading subunit is used to load the target three-dimensional data model based on a plug-in that matches the type of the target three-dimensional data model of the Unreal Engine, and adjust the loaded target three-dimensional data model so that the target in the target three-dimensional data model coincides with the actual position in the terrain data, thereby obtaining a digital twin platform base, wherein the digital twin platform base is provided with configuration information of an image acquisition module.
[0151] Optionally, the second adding subunit is configured as
[0152] Creating a basic terrain using the Unreal Engine;
[0153] According to data features corresponding to the terrain data to be added, the basic terrain is adjusted to achieve adding the terrain data to the Unreal Engine;
[0154] Alternatively, creating terrain data based on the three-dimensional tile data generated from the target geographic information data;
[0155] Adding the terrain data to the Unreal Engine.
[0156] Optionally, the interaction interface between the geographic information system and the Unreal Engine is configured as follows:
[0157] Importing the basic geographic data layer corresponding to the geographic information system into the Unreal Engine through a target plug-in to adjust the basic geographic data layer;
[0158] The fusion of the geographic information system data and the target three-dimensional data model is realized in the Unreal Engine.
[0159] Optionally, the visual interaction interface is configured as:
[0160] Using the visualization module of the Unreal Engine, creating a user interface;
[0161] Displaying functional configuration components corresponding to the digital twin platform;
[0162] Provide optimization functions for the visualization information of the digital twin platform.
[0163] Specifically, the specific execution process of the unit and sub-unit of the device can refer to the processing process of the construction method of the digital twin platform base mentioned above, which will not be described in detail here.
[0164] Based on the aforementioned embodiments, an embodiment of the present application provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement a method for constructing a digital twin platform base as described in any of the above items.
[0165] An embodiment of the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and a method for constructing a digital twin platform base implemented when the processor executes the program.
[0166] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0167] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0168] The above description of the disclosed embodiments enables those skilled in the art to implement or use the application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the application. Therefore, the application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for constructing a digital twin platform base, characterized in that: The method comprises: Obtain scenario requirement information of the digital twin platform for the target application scenario; Using the geographic information system to process the collected target geographic information data to obtain a three-dimensional data model of the target; Calling an Unreal Engine that matches the scene requirement information, and processing the target three-dimensional data model through the Unreal Engine to obtain a digital twin platform base, wherein the digital twin platform base is used to obtain a digital twin virtual scene; Configure the target interface of the digital twin platform base to obtain the target digital twin platform base, the target interface at least includes a real-time data access interface, an interaction interface between the geographic information system and the Unreal Engine, and a visualization interaction interface, wherein the target digital twin platform base is applied to the digital twin platform of the target application scenario.
2. The method according to claim 1, characterized in that: The method further comprises: Based on the target digital twin platform base, generating an initial digital twin platform corresponding to the target application scenario; Testing the initial digital twin platform, and determining a target digital twin platform corresponding to the target application scenario based on the test results; Deploying the target digital twin platform into the application scenario of the target application scenario to obtain feedback information for the target digital twin platform; The target digital twin platform is adjusted based on the feedback information so that the adjusted digital twin platform can meet the needs of the target application scenario.
3. The method according to claim 1, characterized in that: The step of obtaining the scenario requirement information of the digital twin platform of the target application scenario includes: Determine the target information for creating the digital twin platform for the target application scenario; Determining data processing requirement information of the digital twin platform; Based on the creation target information and the data processing requirement information, the scenario requirement information of the digital twin platform is determined.
4. The method according to claim 1, characterized in that: The method of using a geographic information system to process the acquired geographic information data to obtain a target three-dimensional data model includes: Collect geographic data of the target area to obtain initial geographic information data; Performing data preprocessing on the initial geographic information data to obtain preprocessed geographic information data; Based on the geographic information system, the preprocessed geographic information data is processed using a data processing mode that matches the data type of the preprocessed geographic information data to obtain a target three-dimensional data model.
5. The method according to claim 4, characterized in that The method of processing the preprocessed geographic information data using a data processing mode that matches the data type of the preprocessed geographic information data based on the geographic information system to obtain a target three-dimensional data model includes: If the data type of the pre-processed geographic information data is terrain data, converting the terrain data using the geographic information system to obtain three-dimensional tile data; If the data type of the pre-processed geographic information data is raster image data, slicing the raster image data using the geographic information system to obtain tile data; If the data type of the preprocessed geographic information data is vector data, the vector data is processed by the geographic information system to obtain three-dimensional format data; If the data type of the pre-processed geographic information data is oblique photography data, converting the oblique photography data using the geographic information system to obtain three-dimensional tile data; If the preprocessed geographic information data is building information model data, the building information model data is processed using the geographic information system to obtain target three-dimensional format data.
6. The method according to claim 5, characterized in that The process of processing the target three-dimensional data model by the Unreal Engine to obtain a digital twin platform base includes: In response to starting the Unreal Engine, adding a lighting weather system to a target application scene, the lighting weather system being used to simulate weather changes and lighting changes; Adding terrain data to the Unreal Engine, wherein the terrain data is used to simulate terrain characteristics of actual application scenarios; The target three-dimensional data model is loaded based on a plug-in that matches the type of the Unreal Engine and the target three-dimensional data model, and the loaded target three-dimensional data model is adjusted so that the target in the target three-dimensional data model coincides with the actual position in the terrain data, thereby obtaining a digital twin platform base, wherein the digital twin platform base is provided with configuration information of an image acquisition module.
7. The method according to claim 6, characterized in that The adding terrain data to the Unreal Engine comprises: Creating a basic terrain using the Unreal Engine; According to data features corresponding to the terrain data to be added, the basic terrain is adjusted to achieve adding the terrain data to the Unreal Engine; Alternatively, creating terrain data based on the three-dimensional tile data generated from the target geographic information data; Adding the terrain data to the Unreal Engine.
8. The method according to claim 1, characterized in that The interactive interface between the geographic information system and the Unreal Engine is configured as follows: Importing the basic geographic data layer corresponding to the geographic information system into the Unreal Engine through a target plug-in to adjust the basic geographic data layer; The fusion of the geographic information system data and the target three-dimensional data model is realized in the Unreal Engine.
9. The method according to claim 1, characterized in that: The visual interaction interface is configured as follows: Using the visualization module of the Unreal Engine, creating a user interface; Displaying functional configuration components corresponding to the digital twin platform; Provide optimization functions for the visualization information of the digital twin platform.
10. A device for constructing a digital twin platform base, characterized in that: The device comprises: An acquisition unit, used to obtain scenario requirement information of the digital twin platform of the target application scenario; The first processing unit is used to process the collected target geographic information data using a geographic information system to obtain a target three-dimensional data model; A second processing unit is used to call an Unreal Engine that matches the scene requirement information, and process the target three-dimensional data model through the Unreal Engine to obtain a digital twin platform base, where the digital twin platform base is used to obtain a digital twin virtual scene; A configuration unit is used to configure a target interface of the digital twin platform base to obtain the target digital twin platform base, wherein the target interface includes at least a real-time data access interface, an interaction interface between the geographic information system and the Unreal Engine, and a visualization interaction interface, wherein the target digital twin platform base is applied to the digital twin platform of the target application scenario.
Citation Information
Cited By
Digital twinborn irrigation area visualization method and browser based on network graphical processing
CN119206135A
Digital twin irrigation district visualization method and browser based on network graphics processing
CN119206135B
Urban update project management platform and control method thereof
CN120355353A
Cerium and ThreeJS fusion engine and construction method
CN120707766A
Multi-factor exponential decay three-dimensional model precision control and loading method and system
CN121053274A
