Digital twin city spatial positioning method, device and storage medium based on Unreal Engine
Through Unreal Engine, the planar space coordinate system and three-dimensional three-dimensional layer are established in digital twin cities, the x, y, and z-axis coordinates of the physical address are calculated, and the cube is constructed for display is solved, which solves the problem of inefficiency of the existing two-dimensional plane positioning method. Achieve fast and variable accuracy three-dimensional spatial positioning.
Patent Information
- Application Number
- CN202011630208.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2040-12-30
AI Technical Summary
The existing digital twin urban spatial positioning method is mainly based on two-dimensional plane positioning, which leads to the three-dimensional physical spatial address being projected to a point when the large data volume is located in multiple points, resulting in a large amount of overlap, which is inefficient and cannot meet the needs of three-dimensional spatial positioning.
Unreal Engine designed a spatial positioning method for digital twin cities. By establishing the plane spatial coordinate system of Unreal Engine, a three-dimensional three-dimensional layer is constructed, and a building is found in the digital twin city based on the physical address, and the x and y of the locations that need to be located are calculated. , z-axis coordinates are constructed to display.
Real three-dimensional spatial positioning is achieved, reducing resource occupancy (saving more than 70%), reducing construction workload (reducing 60%), fast positioning methods, variable accuracy, and support click and event interaction.
Smart Images

Figure CN112632683B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a digital twin city space technology based on Unreal Engine, and in particular to a digital twin city space positioning method, device and storage medium based on Unreal Engine. Background Art
[0002] With the development of science and technology, digital twin technology has gradually evolved from theoretical concepts to the stage of technical application. However, at present, there are many technical problems to be solved in mapping from the physical world to the virtual world. There is currently no technology that can perfectly solve all the problems existing in "digital twins". Under the current technical environment, the game industry and the GIS industry are most likely to become the leading industries of digital twins. However, whoever can take the lead in stepping out of the framework of their own field, integrate their own technical advantages from a more macro level, and put them into more diverse application scenarios will surely take the initiative in the field of "digital twins" in the future.
[0003] The implementation of spatial physical coordinate technology in game engines is an inevitable trend in the development of digital twins. The core advantage of game engines lies mainly in their powerful "scene expression". On the one hand, through real-time dynamic rendering, rich and detailed scene expressions can be constructed to better restore the world we "see"; on the other hand, powerful physical engines can truly simulate the operating rules of the real world. These technologies are also urgently needed by "digital twins". However, for digital twins, it is far from enough to only consider manual modeling. It is also necessary to process the city base obtained by other means. The purpose of processing is not only to "build scenes", but also to provide comprehensive support for data storage, exchange, and business analysis. These technical capabilities are not currently available to game companies, and this is exactly what the GIS industry is good at. The further development of digital twin technology has enhanced the technical interaction between data and scenes on the basis of scene expression and data integration analysis. In digital twins, finding a certain spatial location through data analysis has become the basis for the technical interaction between data and scenes. In the traditional two-dimensional digital twin city implementation, geographic spatial coordinates are converted into planar two-dimensional coordinates, and points are located in the two-dimensional plane to achieve interaction.
[0004] Since the positioning algorithm is based on a two-dimensional plane, the physical space address is converted on the plane map before the digital twin city space positioning is performed; because it is a two-dimensional plane positioning, when locating multiple points with large amounts of data, the three-dimensional physical space address will be projected to one point on the two-dimensional plane, and the digital twin city space positioning will have a lot of overlap. Positioning based on the BIM building model is three-dimensional space positioning, but the problem is that the internal structure of the BIM building model is complex and occupies too many resources. It cannot be applied to the construction of a three-dimensional digital twin, which will cause the entire digital twin to be so inefficient that it cannot be supported by the most advanced hardware. For this reason, it is necessary to further improve the digital twin city space positioning method. Summary of the invention
[0005] In order to overcome the deficiencies in the above-mentioned prior art, the purpose of the present invention is to design a digital twin city of Unreal Engine to realize a city space positioning method, which comprises the following steps:
[0006] 1) Establish the plane space coordinate system of Unreal Engine based on the current digital twin city;
[0007] 2) Construct a three-dimensional layer of the current city based on the coverage area of the digital twin city;
[0008] 3) Find the corresponding building in the digital twin city based on the physical address of the location to be located, and determine the coordinates of the building in the plane space coordinate system of the Unreal Engine;
[0009] 4) Calculate the x-axis and y-axis coordinates of the layer that needs to be located based on the coordinates of the building location and the building data information;
[0010] 5) Calculate the z-axis coordinate of the layer that needs to be located based on the number of floors and floor height of the building;
[0011] 6) Construct a cube based on the x-axis, y-axis, and z-axis coordinates, and display the cube through color changes.
[0012] Preferably, in step 2), when constructing a three-dimensional layer of the current city based on the coverage area of the digital twin city, the lowest point of the terrain of the digital twin city is extended downward by a certain distance m as the lowest point of the three-dimensional layer, and the highest point of the terrain of the digital twin city is extended upward by a certain distance n as the highest point of the three-dimensional layer.
[0013] Preferably, in step 6), the cube can be accessed with data and clicked with a mouse to achieve interactive operations after positioning.
[0014] Preferably, the accuracy of the three-dimensional layer is adjustable.
[0015] Preferably, the accuracy of the three-dimensional layer is adjustable.
[0016] This patent also discloses a product defect detection device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
[0017] This patent also discloses a computer storage medium for storing a computer program, which implements the steps of the method described in the claim when the computer program is executed by a processor.
[0018] The above technical solution has the following beneficial effects: compared with the traditional GIS digital twin technology, the digital twin city spatial positioning method based on Unreal Engine realizes a true three-dimensional space; compared with the algorithm of BIM system, it is no longer necessary to construct the model inside the building model, the resource occupancy rate of the twin city is saved by more than 70%, and the workload of twin city construction is reduced by 60%. The positioning method is fast and has variable accuracy, and the accuracy can be changed at will according to the different urban scenarios of the technology application. The digital twin city spatial positioning method based on Unreal Engine can be used to quickly locate according to the real address in the digital twin city, and the house, building or unit where the address is located can be highlighted, and click and event interaction can be supported; according to this method, the required building model can also be quickly constructed in the digital twin city. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a flow chart of an embodiment of the present patent.
[0020] Figure 2 A schematic diagram is provided for model establishment of an embodiment of the present patent. DETAILED DESCRIPTION
[0021] The following is a description of the implementation of the present invention by means of specific embodiments. Those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification.
[0022] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present invention will be more comprehensive and complete, and the concept of the example embodiments will be fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present invention. However, those skilled in the art will appreciate that the technical solutions of the present invention may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present invention.
[0023] like Figure 1 As shown, the digital twin city of the Unreal Engine implements a city space positioning method, which includes the following steps: First, the plane space coordinate system of the Unreal Engine is established based on the current digital twin city. The accuracy of the coordinate system can be adjusted. In this embodiment, the accuracy is 5m. Then, a three-dimensional layer of the current city is constructed based on the coverage area of the digital twin city. In order to better control the accuracy, when constructing the three-dimensional layer, the lowest point of the terrain of the digital twin city can be extended downward by a certain distance m as the lowest point of the three-dimensional layer, and the highest point of the terrain of the digital twin city can be extended upward by a certain distance n as the highest point of the three-dimensional layer, such as Figure 2 As shown, m is 10 meters, n is 50 meters, and the values of m and n are adjustable. The accuracy of the three-dimensional layer can also be adjusted, and the accuracy in this patent embodiment is 1 meter.
[0024] After the three-dimensional layer is constructed, the corresponding building is found in the digital twin city according to the physical address of the location to be located, and the coordinates of the building in the plane space coordinate system of the Unreal Engine are determined by coordinate mapping or other means. According to the coordinates of the building's location and the building data information, the x-axis and y-axis coordinates of the location layer to be located are calculated. The building data information mainly includes the floor and unit where the house is located and the corresponding floor plan. The x-axis and y-axis coordinates of the location layer can be calculated through this information and the location coordinates of the building. Then, according to the number of floors and floor heights of the building, the z-axis coordinates of the location layer to be located are calculated; in this way, a cube is constructed based on the x-axis, y-axis and z-axis coordinates to represent the location to be located. The cube can be displayed by color changes to determine the specific location. The specific color can be set according to the background and other conditions. After the cube is constructed, data access and mouse clicks can be performed, so that interactive operations after positioning can be realized.
[0025] In order to achieve the above-mentioned objectives, an embodiment of the present application also provides an Unreal Engine digital twin city that implements an urban space positioning device, which can specifically be a personal computer, a server, a network device, etc. The physical device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to implement the above-mentioned steps and methods.
[0026] Accordingly, this embodiment also provides a computer storage medium on which a computer program is stored, and the program implements the above steps when executed by the processor. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0027] Compared with the traditional GIS digital twin technology, the digital twin city spatial positioning method based on Unreal Engine realizes a true three-dimensional space; compared with the algorithm of the BIM system, it no longer needs to build models inside the building model, and the resource occupancy rate of the twin city is saved by more than 70%, and the workload of twin city construction is reduced by 60%. This positioning method is fast and has variable accuracy. The accuracy can be changed at will according to different urban scenarios where the technology is applied. The digital twin city spatial positioning method based on Unreal Engine can be used to quickly locate according to the real address in the digital twin city, and the house, building or unit where the address is located can be highlighted, and click and event interaction can be supported; this method can also be used to quickly build the required building model in the digital twin city.
[0028] The above embodiments are merely illustrative of the principles and effects of the present invention, and are not intended to limit the present invention. Anyone familiar with the art may modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by a person of ordinary skill in the art without departing from the spirit and technical concept disclosed by the present invention shall still be covered by the claims of the present invention.
Claims
1. A digital twin city spatial positioning method based on Unreal Engine, characterized in that: It includes the following steps: 1) Establish the plane space coordinate system of Unreal Engine based on the current digital twin city; 2) Construct a 3D layer of the current city based on the coverage area of the digital twin city, with the lowest point of the terrain of the digital twin city extending downward by a certain distance m as the lowest point of the 3D layer, and the highest point of the terrain of the digital twin city extending upward by a certain distance n as the highest point of the 3D layer; 3) According to the physical address of the location to be located, find the corresponding building in the digital twin city and determine the coordinates of the building in the plane space coordinate system of the Unreal Engine; 4) Calculate the x-axis and y-axis coordinates of the location layer to be located based on the coordinates of the building location and the building data information, wherein the building data information includes the floor and unit where the house is located and the corresponding floor plan; 5) Calculate the z-axis coordinate of the layer that needs to be located based on the number of floors and floor height of the building; 6) A cube is constructed based on the x-axis, y-axis and z-axis coordinates, and the cube is displayed through color changes. There is no need to construct a model inside the building model. The cube can be accessed by data and clicked by the mouse to achieve interactive operations after positioning.
2. The digital twin city spatial positioning method based on Unreal Engine according to claim 1 is characterized in that: The accuracy of the planar space coordinate system is adjustable.
3. The digital twin city spatial positioning method based on Unreal Engine according to claim 1 is characterized in that: The accuracy of the three-dimensional stereoscopic layer is adjustable.
4. A digital twin city space positioning device based on Unreal Engine, comprising a memory and a processor, wherein a computer program is stored in the memory, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
5. A computer storage medium for storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.