Display method and system of digital twinborn body and related equipment
By baking rendering and generating texture maps on the terminal device, the problem of high server performance consumption in the digital twin system is solved, efficient rendering and fast loading are achieved, and the user experience is improved.
Patent Information
- Application Number
- CN202410705251.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-17
AI Technical Summary
When ensuring the authenticity of rendering, the existing digital twin system consumes too much server-side performance and cannot meet the concurrent rendering needs of a large number of clients at the same time. Moreover, clients are prone to problems such as lagging and failure to load when rendering models.
By baking and rendering on the terminal device, the texture map is generated and sent to the server, which reduces the rendering pressure on the server, improves resource utilization, and improves rendering performance. At the same time, the texture of the area to be rendered is reloaded on the low-precision model. Texture to reduce the data loading burden on the client.
It effectively reduces the rendering pressure on the server, improves rendering performance, improves the loading and running experience of the user, and ensures the authenticity and fast loading speed of the digital twin.
Smart Images

Figure CN118657876A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, system and related equipment for displaying a digital twin. Background Art
[0002] In order to facilitate the management of objects such as computer room equipment, digital twin systems have emerged. Through the digital twins in the digital twin system, the status of the corresponding computer room equipment can be conveniently and efficiently displayed. The developers of the digital twin system will spend a lot of time and energy to create a highly realistic and detailed model to increase the authenticity of the rendering display. Due to the slow speed of transmitting model data to the client and the difficulty of rendering the model on the client, the current digital twin system often makes a dilemma between authenticity and data transmission and loading and running experience. For example, the closer the model is to reality, the more likely it is that the client will freeze and fail to load when rendering the model, and even cause the client to crash and the machine to heat up.
[0003] At present, in order to maintain the high authenticity of the rendering of digital twins, the rendering pressure on the client can be reduced by mixed rendering of the client and the server or all rendering by the server. However, as the number of clients increases, the performance consumption of the server is getting higher and higher, and the performance requirements of the server are getting higher and higher. There is even a phenomenon that the server cannot meet the concurrent rendering needs of a large number of clients at the same time.
[0004] Therefore, how to effectively improve the resource utilization of the server to improve rendering performance while ensuring the authenticity of the digital twin display has become an urgent problem to be solved. Summary of the invention
[0005] The embodiments of the present application provide a method, system and related equipment for displaying a digital twin, which can effectively reduce the rendering pressure on the server side, improve the rendering performance, and also improve the loading and running experience on the user side.
[0006] In a first aspect, an embodiment of the present application provides a method for displaying a digital twin, the method comprising:
[0007] When the digital twin of the target object meets a preset update condition on the first terminal device, a first display area of the digital twin on the first terminal device is obtained.
[0008] A first target area on the surface of a first representation model of the digital twin is baked and rendered according to the first display area to generate a first texture map.
[0009] The first texture map is sent to the first terminal device so that the first terminal device loads the first texture map into the first display area of the second representation model of the digital twin; wherein the precision of the first representation model is higher than the precision of the second representation model. It can be seen that according to the user-visible area of the digital twin on each terminal device, the high-precision model is rendered on demand to avoid directly rendering the entire surface area of the high-precision model for the terminal device, which can reduce the rendering pressure of the server, effectively improve the resource utilization of the server, and improve the rendering performance. At the same time, the server only needs to transmit the texture map of the area to be rendered to each terminal device, which also alleviates the data transmission pressure between the server and the client. In addition, the terminal device only needs to reload the texture map of the area to be rendered on the low-precision model, which can reduce the data loading burden of the client while ensuring the authenticity of the digital twin display, so that the client can provide a good loading and running experience.
[0010] Optionally, the digital twin of the target object satisfies a preset update condition on the first terminal device, including:
[0011] The display area of the digital twin of the target object on the first terminal device changes, and / or the state of the target object changes. It can be seen that the change of the display area of the digital twin on the terminal device and / or the change of the state of the target object can accurately determine whether the digital twin of the target object meets the preset update condition on the terminal device.
[0012] Optionally, obtaining a first display area of the digital twin on the first terminal device includes:
[0013] If the display area of the digital twin of the target object on the first terminal device changes, the first display area of the digital twin on the first terminal device is determined according to the first display parameter of the digital twin on the first terminal device.
[0014] If the display area of the digital twin of the target object on the first terminal device has not changed, the display area of the digital twin on the first terminal device obtained last time is used as the first display area. It can be seen that according to the change of the display area of the digital twin on the first terminal device, adaptively selecting a corresponding method to obtain the current display area of the digital twin on the terminal device helps to improve the efficiency of obtaining the current display area of the digital twin on each terminal device.
[0015] Optionally, determining a first display area of the digital twin on the first terminal device according to a first display parameter of the digital twin on the first terminal device includes:
[0016] Obtain a first display parameter of the digital twin on the first terminal device.
[0017] According to the first display parameter, the first display area of the digital twin on the first terminal device is determined from the cover corresponding to the digital twin; wherein the cover is generated based on the second representation model of the digital twin. It can be seen that the current display area of the digital twin on the terminal device can be accurately determined by using the display parameters of the digital twin on the terminal device and the cover corresponding to the digital twin, which helps to achieve accurate rendering of the corresponding area of the high-precision model surface.
[0018] Optionally, determining a first display area of the digital twin on the first terminal device from a cover corresponding to the digital twin according to the first display parameter includes:
[0019] A first viewing frustum is determined according to the first display parameters, wherein the first display parameters include camera parameters and screen position.
[0020] Determine the area of the cover corresponding to the digital twin included in the first visual frustum, and use the area as the first display area of the digital twin on the first terminal device. It can be seen that the visual frustum can be used to accurately find the current display area of the digital twin on the terminal device.
[0021] Optionally, the display area of the digital twin of the target object on the first terminal device changes, including:
[0022] The difference between the first display parameter and the second display parameter of the digital twin on the first terminal device is greater than or equal to a preset threshold, wherein the first display parameter is the current display parameter of the digital twin on the first terminal device, and the second display parameter is the display parameter of the digital twin on the first terminal device acquired last time; and / or,
[0023] The operation instructions for the digital twin sent by the first terminal device include display control instructions. It can be seen that whether the display parameters of the digital twin on the terminal device have changed and / or whether the terminal device has received the display control instructions for the digital twin can accurately determine whether the display area of the digital twin on the terminal device has changed, which helps to accurately determine whether the digital twin of the target object meets the preset update conditions on the first terminal device.
[0024] Optionally, baking and rendering a first target area on the surface of the first representation model of the digital twin according to the first display area to generate a first texture map includes:
[0025] A first target area on a surface of a first representation model of the digital twin corresponding to the first display area is determined.
[0026] The cover corresponding to the digital twin is baked and rendered according to the configuration parameters of the first target area on the surface of the first representation model to generate a first texture map; wherein the cover is generated based on the second representation model of the digital twin. It can be seen that by using the cover to bake and render the area that needs to be rendered corresponding to the surface of the high-precision model, a texture map that matches the skeleton of the low-precision model can be accurately rendered, which is conducive to ensuring that the front-end terminal device completely fits the texture map with the skeleton of the low-precision model. At the same time, it is only necessary to render the display area of the digital twin corresponding to the terminal device (i.e., the user-visible area), avoiding directly rendering the entire area of the high-precision model surface for the terminal device, which can reduce the rendering pressure on the server and effectively improve the resource utilization of the server.
[0027] Optionally, baking and rendering the cover body corresponding to the digital twin according to the configuration parameters of the first target area on the surface of the first representation model to generate a first texture map includes:
[0028] The cover body is covered on the surface of the first representation model according to the geometric center point and three-dimensional space coordinate axis of the cover body corresponding to the digital twin, and the geometric center point and three-dimensional space coordinate axis of the first representation model.
[0029] For each pixel point included in the first target area of the surface of the first representation model, obtain the configuration parameters of the first representation model; wherein the configuration parameters include the configuration parameters of each pixel point included in the first target area, and the current state of the target object corresponding to the digital twin is characterized based on the configuration parameters.
[0030] The area on the cover body that overlaps with the projection of the first target area is baked and rendered according to the configuration parameters to generate a first texture map. It can be seen that the cover body is accurately covered on the surface of the first representation model by three-dimensional positioning, and the cover body and the surface of the first representation model are also aligned, and then the cover body is baked and rendered using the configuration parameters of each pixel point on the surface of the high-precision model to obtain the first texture map of the digital twin, thereby accurately and efficiently baking and rendering the fine features of the target area on the surface of the high-precision model into the texture map.
[0031] Optionally, baking and rendering a first target area on the surface of the first representation model of the digital twin according to the first display area to generate a first texture map includes:
[0032] A first target area corresponding to the first display area on a surface of a first representation model of the digital twin is determined; wherein the first target area includes at least one sub-area.
[0033] Baking and rendering are performed on each sub-region included in the first target region of the surface of the first representation model to obtain a texture map corresponding to each sub-region.
[0034] A first texture map is generated according to the texture maps and the map identifiers corresponding to the respective sub-regions.
[0035] Optionally, the second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map.
[0036] Alternatively, the method further comprises:
[0037] A second target area on the surface of the first representation model of the digital twin is baked and rendered according to the initial display parameters of the digital twin to obtain a second texture map.
[0038] In a second aspect, an embodiment of the present application provides a method for displaying a digital twin, the method comprising:
[0039] Receive a first texture map sent by a server; wherein, when the digital twin of the target object meets a preset update condition on a first terminal device, the server bakes and renders a first target area on the surface of a first representation model of the digital twin according to a first display area of the digital twin on the first terminal device; wherein the first display area corresponds to the first target area.
[0040] The first texture map is loaded into the first display area of the second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model. It can be seen that the server renders the corresponding area of the surface of the high-precision model into a texture map according to the actual display area of the digital twin on the terminal device (i.e., the user-visible area). The terminal device can use the texture map to quickly load the user-visible area of the digital twin and ensure the authenticity of the digital twin display. In addition, since the terminal device only needs to load the texture map of the user-visible area, the loading speed of the digital twin is effectively improved, thereby optimizing the user experience.
[0041] Optionally, the second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map.
[0042] Alternatively, the second texture map is obtained by baking and rendering a second target area on the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin.
[0043] Optionally, loading the first texture map into a first display area of a second representation model of the digital twin includes:
[0044] The texture maps and map identifiers corresponding to each sub-area in the first target area included in the first texture map are obtained.
[0045] According to the map identifiers corresponding to the sub-areas, the texture maps corresponding to the sub-areas are loaded into the corresponding positions of the first display area of the second representation model of the digital twin. It can be seen that the terminal device using the map identifier can efficiently and accurately load the texture map onto the skeleton of the low-precision model.
[0046] In a third aspect, an embodiment of the present application provides a display device for a digital twin, the device comprising:
[0047] An acquisition module is used to acquire a first display area of the digital twin of the target object on the first terminal device when the digital twin of the target object meets a preset update condition on the first terminal device.
[0048] A processing module is used to bake and render a first target area on the surface of a first representation model of the digital twin according to the first display area to generate a first texture map.
[0049] A sending module is used to send the first texture map to the first terminal device so that the first terminal device loads the first texture map into a first display area of a second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0050] Optionally, the digital twin of the target object satisfies a preset update condition on the first terminal device, including:
[0051] The display area of the digital twin of the target object on the first terminal device changes, and / or the state of the target object changes.
[0052] Optionally, the acquisition module is specifically used to:
[0053] If the display area of the digital twin of the target object on the first terminal device changes, the first display area of the digital twin on the first terminal device is determined according to the first display parameter of the digital twin on the first terminal device.
[0054] If the display area of the digital twin of the target object on the first terminal device has not changed, the display area of the digital twin on the first terminal device acquired last time is used as the first display area.
[0055] Optionally, the acquisition module is specifically used to:
[0056] Obtain a first display parameter of the digital twin on the first terminal device.
[0057] Determine a first display area of the digital twin on the first terminal device from a cover corresponding to the digital twin according to the first display parameter; wherein the cover is generated based on a second representation model of the digital twin.
[0058] Optionally, the acquisition module is specifically used to:
[0059] A first viewing frustum is determined according to the first display parameters, wherein the first display parameters include camera parameters and screen position.
[0060] Determine an area of the cover corresponding to the digital twin contained in the first visual frustum, and use the area as a first display area of the digital twin on the first terminal device.
[0061] Optionally, the display area of the digital twin of the target object on the first terminal device changes, including:
[0062] The difference between the first display parameter and the second display parameter of the digital twin on the first terminal device is greater than or equal to a preset threshold, wherein the first display parameter is the current display parameter of the digital twin on the first terminal device, and the second display parameter is the display parameter of the digital twin on the first terminal device acquired last time; and / or,
[0063] The operation instructions for the digital twin sent by the first terminal device include display control instructions.
[0064] Optionally, the processing module is specifically used to:
[0065] determining a first target area on a surface of a first representation model of the digital twin corresponding to the first display area;
[0066] The cover corresponding to the digital twin is baked and rendered according to the configuration parameters of the first target area on the surface of the first representation model to generate a first texture map; wherein the cover is generated based on the second representation model of the digital twin.
[0067] Optionally, the processing module is specifically used to:
[0068] The cover body is covered on the surface of the first representation model according to the geometric center point and three-dimensional space coordinate axis of the cover body corresponding to the digital twin, and the geometric center point and three-dimensional space coordinate axis of the first representation model.
[0069] For each pixel point included in the first target area of the surface of the first representation model, obtain the configuration parameters of the first representation model; wherein the configuration parameters include the configuration parameters of each pixel point included in the first target area, and the current state of the target object corresponding to the digital twin is characterized based on the configuration parameters.
[0070] The area on the cover body that overlaps with the projection of the first target area is baked and rendered according to the configuration parameters to generate a first texture map.
[0071] Optionally, the processing module is specifically used to:
[0072] A first target area corresponding to the first display area on a surface of a first representation model of the digital twin is determined; wherein the first target area includes at least one sub-area.
[0073] Baking and rendering are performed on each sub-region included in the first target region of the surface of the first representation model to obtain a texture map corresponding to each sub-region.
[0074] A first texture map is generated according to the texture maps and the map identifiers corresponding to the respective sub-regions.
[0075] Optionally, the second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map.
[0076] Alternatively, the processing module is further used to bake and render a second target area on the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin to obtain a second texture map.
[0077] In a fourth aspect, an embodiment of the present application provides a display device for a digital twin, the device comprising:
[0078] A receiving module, used to receive a first texture map sent by a server; wherein, when the digital twin of the target object meets a preset update condition on a first terminal device, the server bakes and renders a first target area on the surface of a first representation model of the digital twin according to a first display area of the digital twin on the first terminal device; wherein the first display area corresponds to the first target area.
[0079] A loading module is used to load the first texture map into a first display area of a second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0080] Optionally, the second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map.
[0081] Alternatively, the second texture map is obtained by baking and rendering a second target area on the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin.
[0082] Optionally, the loading module is specifically used to:
[0083] Acquire a texture map and a map identifier corresponding to each sub-region in the first target region included in the first texture map;
[0084] According to the map identifiers corresponding to the sub-areas, the texture maps corresponding to the sub-areas are loaded into corresponding positions of the first display area of the second representation model of the digital twin.
[0085] In the fifth aspect, an embodiment of the present application provides a computing device, which includes a processor, a network interface and a storage device, wherein the processor, the network interface and the storage device are interconnected, wherein the network interface is used to send and receive data, and the storage device is used to store a computer program, and the computer program includes program instructions. The processor is configured to call the program instructions to execute the digital twin display method described in the first aspect.
[0086] In the sixth aspect, an embodiment of the present application provides a terminal device, which includes a processor, a display device, a network interface and a storage device, wherein the processor, the display device, the network interface and the storage device are interconnected, wherein the network interface is used to send and receive data, the display device is used to display image data, and the storage device is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the digital twin display method described in the second aspect.
[0087] In the seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program. The computer program includes program instructions, and the program instructions are executed by a processor to execute the digital twin display method described in the first aspect or the second aspect.
[0088] In an eighth aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a computer processor, implements the digital twin display method described in the first aspect or the second aspect.
[0089] In a ninth aspect, an embodiment of the present application provides a digital twin display system, the system comprising: a server and a terminal device, wherein:
[0090] The server is used to obtain a first display area of the digital twin of the target object on the terminal device when the digital twin of the target object meets a preset update condition on the terminal device.
[0091] The server is further used to bake and render a first target area on the surface of a first representation model of the digital twin according to the first display area to generate a first texture map.
[0092] The server is further configured to send the first texture map to the terminal device.
[0093] The terminal device is used to receive the first texture map and load the first texture map into a first display area of a second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model. BRIEF DESCRIPTION OF THE DRAWINGS
[0094] 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 some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0095] Figure 1a is a schematic diagram of a digital twin provided in an embodiment of the present application;
[0096] Figure 1b is a schematic diagram of another digital twin provided in an embodiment of the present application;
[0097] Figure 2a is a schematic diagram of a high-precision model provided in an embodiment of the present application;
[0098] Figure 2b is a schematic diagram of a low-precision model provided in an embodiment of the present application;
[0099] Figure 2c is a schematic diagram of another high-precision model provided in an embodiment of the present application;
[0100] Figure 2d is a schematic diagram of another low-precision model provided in an embodiment of the present application;
[0101] Figure 2e is a schematic diagram of another high-precision model provided in an embodiment of the present application;
[0102] Figure 2f is a schematic diagram of a high-precision model skeleton provided in an embodiment of the present application;
[0103] Figure 2g is a schematic diagram of a low-precision model skeleton provided in an embodiment of the present application;
[0104] Figure 2h is a schematic diagram of a cover body provided in an embodiment of the present application;
[0105] Figure 2i is a schematic diagram of a viewing cone provided in an embodiment of the present application;
[0106] Figure 2j is a schematic diagram showing a digital twin provided in an embodiment of the present application;
[0107] Figure 3 It is a schematic diagram of the architecture of a digital twin display system provided in an embodiment of the present application;
[0108] Figure 4 It is a flowchart of a method for displaying a digital twin provided in an embodiment of the present application;
[0109] Figure 5 It is a flowchart of another method for displaying a digital twin provided in an embodiment of the present application;
[0110] Fig. 6A is a schematic diagram of a texture map provided in an embodiment of the present application;
[0111] Figure 6B is a schematic diagram of another digital twin provided in an embodiment of the present application;
[0112] Figure 6C is another schematic diagram showing a digital twin provided in an embodiment of the present application;
[0113] Fig.6D is another schematic diagram showing a digital twin provided in an embodiment of the present application;
[0114] Fig. 6E is another schematic diagram showing a digital twin provided in an embodiment of the present application;
[0115] Fig. 6F It is a schematic diagram of dividing a texture map provided in an embodiment of the present application;
[0116] Figure 6G is a schematic diagram of dividing another texture map provided in an embodiment of the present application;
[0117] Figure 6H is another schematic diagram showing a digital twin provided in an embodiment of the present application;
[0118] Fig.6I is another schematic diagram showing a digital twin provided in an embodiment of the present application;
[0119] Figure 6J is another schematic diagram showing a digital twin provided in an embodiment of the present application;
[0120] Figure 6K is another schematic diagram showing a digital twin provided in an embodiment of the present application;
[0121] Figure 6L is a schematic diagram of displaying a digital twin in a multi-user scenario provided by an embodiment of the present application;
[0122] Figure 7 It is a flowchart of another method for displaying a digital twin provided in an embodiment of the present application;
[0123] Figure 8 It is a flowchart of another method for displaying a digital twin provided in an embodiment of the present application;
[0124] Fig. 9 It is a structural schematic diagram of a digital twin display device provided in an embodiment of the present application;
[0125] Fig.10 is a structural schematic diagram of another digital twin display device provided in an embodiment of the present application;
[0126] Fig.11 is a schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0127] Fig.12 It is a structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0128] 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.
[0129] It should be noted that the descriptions of "first", "second", etc. involved in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the technical features defined as "first" or "second" may explicitly or implicitly include at least one of the features.
[0130] In order to better understand the solutions of the embodiments of the present application, the relevant terms and concepts that may be involved in the embodiments of the present application are first introduced below.
[0131] Digital twin: Make full use of data such as physical models, sensor updates, and operation history, integrate multi-disciplinary, multi-physical, multi-scale, and multi-probability simulation processes, and complete mapping in virtual space to reflect the behavior and / or state changes of the corresponding physical equipment. Digital twin is a concept that transcends reality and can be regarded as a digital mapping system of one or more important, interdependent equipment systems.
[0132] Digital twin: A digital "clone" created based on a device or system, including a virtual representation of the real world including physical objects, processes, relationships and behaviors. Figure 1a The figure shows a schematic diagram of a digital twin of a server. The digital twin can accurately and intuitively reflect the state changes of the server. For example, the working status indicator light on the digital twin can reflect the latest working status of the server, and the fault diagnosis digital tube on the digital twin can reflect the indication information of the server fault. Figure 1a The working status indicator of the digital twin is on, and the fault diagnosis digital tube is 001. As the status of the server changes, the digital twin can Figure 1b As shown, Figure 1b The working status indicator light of the digital twin is off and the fault diagnosis digital tube is 002.
[0133] Geometric body: In geometry, a finite shape enclosed by several geometric faces (planes or curved surfaces) is called a geometric body. The faces enclosing the geometric body are called the interfaces or surfaces of the geometric body. The intersection lines of different interfaces are called the edges of the geometric body. The intersection points of different edges are called the vertices of the geometric body. A geometric body can also be regarded as a finite space region divided by several geometric faces in space.
[0134] Digital twin skeleton: refers to the geometry of each digital twin in the digital twin system.
[0135] Material: The surface properties of the drawn geometry, including the color used and the brightness. A material can reference one or more textures that can be used to wrap the image onto the surface of the digital twin skeleton.
[0136] Texture: Usually represents an image loaded from a file, generated on a canvas, or rendered by another scene.
[0137] Digital twin texture map: In a digital twin system, the texture of a digital twin is usually composed of one or more map files, collectively referred to as digital twin texture maps.
[0138] WebGL: A technology for rendering interactive two-dimensional (2D) and 3D graphics in any compatible web browser without the use of plug-ins. WebGL is fully integrated into all web standards of the browser, making use of the graphics processor (GPU) accelerated image processing and effects as part of the web page's canvas. WebGL elements can be added to other HyperText Markup Language (HTML) elements and mixed with other parts of the web page or web page background. WebGL programs consist of handlers written in JavaScript and shader code written in OpenGL (Open Graphics Library, Open Graphics Library / Open Graphics Library) Shading Language (OpenGL Shading Language, GLSL, a high-level shading language based on C language), which is similar to C or C++ and is executed on the computer's GPU.
[0139] Web3D: refers to various methods of displaying three-dimensional computer graphics through a web browser. In the past, Web3D mainly displayed 3D models by installing browser plug-ins. Now, the industry's WebGL-based programs no longer require browser plug-ins to be installed.
[0140] 3D model: It is a polygonal representation of an object, usually displayed by a computer or other video device. The displayed object can be a real-world entity or a fictional object. Anything that exists in the physical nature can be represented by a three-dimensional model. Among them, 3D models can include high-precision models and low-precision models. The surface of the high-precision model is a fine rendering effect, while the surface of the low-precision model is a texture map. The low-precision model and the high-precision model have roughly the same shape, but the number of faces is different, resulting in different sizes of model data and different transmission and loading efficiency. Taking a chair as an example, Figure 2a is a high-precision model of a chair, while a low-precision model of a chair can be Figure 2b As shown. Taking the server motherboard as an example, Figure 2c It is a high-precision model of the motherboard. The surface of the high-precision model of the motherboard is a fine rendering effect. The low-precision model of the motherboard can be Figure 2d As shown, the low-precision model surface of the motherboard is a relatively rough texture map. Figure 2c The skeleton of the high-precision model of the motherboard can be Figure 2f As shown, Figure 2d The skeleton of the low-precision model of the main board can be Figure 2g As shown, the fineness of the skeleton of the high-precision model is higher than that of the skeleton of the low-precision model; the high-precision model may include the high-precision model skeleton and the configuration parameters of the pixels on the surface of the high-precision model, using the configuration parameters (including material, color, lighting, brightness, contrast, concave-convex degree, roughness, etc.) and Figure 2f The skeleton shown can be obtained Figure 2c Of course, you can also use the default configuration parameters to generate a high-precision model. Figure 2e The default configuration parameters of the high-precision model shown can be that all pixels use the same material, color, light, etc., and then adjust Figure 2e The material, color, lighting and other parameters used by each pixel on the surface of a medium or high precision model can be obtained Figure 2c The high-precision model shown in the figure may include materials such as plastic and aluminum plates, colors such as white, black, gray, and green, and lighting such as ambient light, direct light, self-luminous light, and reflectivity settings; the low-precision model may include a low-precision model skeleton and texture maps. Figure 2g The skeleton shown can be obtained Figure 2d The low-precision model in .
[0141] UV mapping: The process of projecting a 2D image onto a 3D surface for texture mapping in 3D modeling. The letters U and V are used to represent the coordinate axes on the texture map, because XYZ is already used to represent the coordinate axes of objects in 3D space, and W (in addition to XYZ) is used to calculate quaternions.
[0142] WebRTC: Web Real-Time Communication is a real-time communication technology that allows network applications or sites to establish peer-to-peer connections between browsers without the help of an intermediary to achieve video streaming, audio streaming, image streaming, or any other data transmission.
[0143] Baking: refers to the process of saving the features of a high-precision model surface to a texture map.
[0144] Cover: An expanded object created / extruded manually or automatically (by adjusting the light distance) from a low-precision model or a high-precision model. When the cover is used in the process of baking and rendering the surface features of a high-precision model into a texture map, the cover can specifically be an expanded object created / extruded manually or automatically (by adjusting the light distance) from a low-precision model to ensure that the baked texture map can accurately fit the skeleton of the low-precision model. The cover can be Figure 2h A cover of a server is shown.
[0145] View cone: The extended view cone is calculated based on the position, viewing angle, focal length and other parameters of the virtual camera defined by the system, as well as the user's screen (such as the browser interface) / canvas location (i.e. the near clipping plane). Figure 2i As shown in the figure. Objects outside the viewing frustum are invisible to the camera. In addition, any object closer to the camera than the near clipping plane and any object farther from the camera than the far clipping plane will not be rendered. Taking the server as an example, Figure 2j As shown in the figure, from the user's perspective, the server's digital twin may be inside or outside the viewing cone, or partly inside and partly outside the viewing cone. At the same time, some of the 3D model textures of the digital twin are visible to the user, while some are invisible to the user. Moreover, when the position, rotation angle and other parameters of the digital twin change, the part visible to the user will also change.
[0146] The parameters of the virtual camera mainly include the camera position, viewing angle (the angle at which the camera views the digital twin), focal length, etc. For users, the focal length is usually fixed, while the position and viewing angle are variable. The near clipping plane can be understood as the user's screen (such as the browser interface) or the location of the canvas. The area range of the near clipping plane can be set according to parameters such as screen size and resolution. In the same three-dimensional space coordinate system, the position of the virtual camera and the position of the user screen are pre-defined, the far clipping plane and the near clipping plane are set in parallel, and the position of the far clipping plane is set according to the distance between the far clipping plane and the virtual camera. The distance between the far clipping plane and the virtual camera can be set according to the focal length of the virtual camera. After the position of the virtual camera and the position of the user screen are set, the plane position where the far clipping plane is located is first determined according to the distance between the far clipping plane and the virtual camera, and then a ray is emitted from the virtual camera to the edge of the near clipping plane. The points where the emitted ray intersects with the plane where the far clipping plane is located constitute the edge of the far clipping plane, thereby determining the area range of the far clipping plane. The virtual camera, the near clipping plane, and the far clipping plane constitute a cone. The part between the far clipping plane and the near clipping plane in the cone can be understood as the viewing cone, that is, the space range visible to the user. Observed from the position of the virtual camera, objects within the viewing cone are visible to the user, and objects outside the viewing cone are invisible to the user. When observing an object, the user can operate the object (such as moving, rotating, etc.) to change the visible area of the object. The object can be Figure 2j The digital twin of the server shown in FIG. 1 is actually an operation on the virtual camera. For example, moving the position of the virtual camera can realize the movement of the digital twin. As the position of the virtual camera changes, the display area of the digital twin on the screen (i.e., the user-visible area) may change accordingly. When the digital twin moves out of the range of the viewing cone (e.g., Figure 2j The leftmost digital twin in the figure is not visible outside the viewing cone. Similarly, the digital twin can be rotated by rotating the virtual camera. During the rotation operation, the position, viewing angle and other parameters of the virtual camera can change, causing the display area of the digital twin on the screen (i.e., the user-visible area) to change accordingly.
[0147] At present, for the elaborate models of digital twins, the rendering pressure on the client can be reduced by mixed rendering of the client and the server or all rendering by the server, so as to maintain the high authenticity of the rendering of the digital twin. However, with the increase in the number of clients, the performance consumption of the server is getting higher and higher, and the performance requirements of the server are getting higher and higher. There is even a phenomenon that the server cannot meet the concurrent rendering needs of a large number of clients at the same time. In addition, the server usually renders the high-precision model globally, and also completes the rendering in places where the client does not need to display (such as maps that are not visible to the user's field of view), which increases the performance overhead of the server and also affects the user experience.
[0148] Based on this, the present application proposes a method for displaying a digital twin, in which a terminal device loads a model with low precision, effectively reducing the amount of data transmission of the model and improving the loading and running experience of the digital twin. In addition, for any terminal device (for example, a first terminal device), when the digital twin of the target object meets the preset update conditions on the first terminal device, the server determines the first target area corresponding to the first terminal device from the surface of the high-precision model of the digital twin, and the first target area refers to the area that needs to be rendered for the first terminal device. Then, the server bakes and renders the first target area on the surface of the high-precision model of the digital twin, generates a first texture map, and sends the first texture map to the first terminal device, and the first terminal device loads the first texture map on the displayed low-precision model. It can be seen that the server only needs to render the required area for each terminal device on the surface of the high-precision model, avoiding directly rendering the entire area of the high-precision model surface for the terminal device, which can reduce the rendering pressure on the server, effectively improve the resource utilization of the server, and improve the rendering performance. In addition, the server only needs to transmit the corresponding texture map of the area to be rendered to each terminal device, which effectively alleviates the data transmission pressure between the server and the client. Moreover, the terminal device only needs to reload the texture map of the area to be rendered on the low-precision model. While ensuring the authenticity of the digital twin display, it can also reduce the performance burden of the client, allowing the client to provide a good loading and running experience.
[0149] In order to better understand the technical solutions provided by the embodiments of the present application, the relevant embodiments of the present application are described below.
[0150] See also Figure 3 , is a schematic diagram of the architecture of a digital twin display system provided in an embodiment of the present application, the digital twin display system includes a server 301 and a terminal device 302, wherein:
[0151] Server 301, as the background service end of the digital twin system, is used to load the high-precision model of the target object, render the features of the visible area corresponding to the terminal device 302 on the surface of the high-precision model into a texture map, and transmit the low-precision model of the target object and the rendered texture map to the terminal device 302, so that the terminal device 302 can efficiently and realistically display the digital twin of the target object by loading the low-precision model and texture map, while also reducing the rendering pressure of the server 301.
[0152] The terminal device 302, as the front end of the digital twin system, is used to obtain the low-precision model of the target object transmitted by the server 301 and the texture map obtained by baking and rendering the surface features of the high-precision model. The digital twin of the target object is displayed by loading the low-precision model of the target object, and then the texture map corresponding to the visible area corresponding to the terminal device 302 (i.e., the area to be rendered) is reloaded onto the low-precision model skeleton, so that the digital twin of the target object can be displayed efficiently and realistically.
[0153] In one embodiment, the server 301 may establish a communication connection with the terminal device 302, and the communication connection may include, for example, a Hyper Text Transfer Protocol (HTTP) connection and a WebRTC connection. After the terminal device 302 establishes a communication connection with the server 301, the server 301 may transmit a low-precision model of the target object to the terminal device 302 via the HTTP connection, and transmit an initial texture map of the target object to the terminal device 302 in the form of a video stream via the WebRTC connection. After receiving the low-precision model and the initial texture map of the target object, the terminal device 302 displays the digital twin of the target object and loads the initial texture map onto the low-precision model skeleton.
[0154] Furthermore, when the digital twin of the target object meets the preset update conditions on any terminal device 302, the server 301 determines the first target area corresponding to the terminal device 302 from the model surface of the digital twin, and generates a texture map corresponding to the first target area by baking and rendering the first target area on the surface of the high-precision model of the digital twin, and sends the texture map corresponding to the first target area to the terminal device 302. The terminal device 302 loads the texture map corresponding to the first target area on the skeleton of the displayed low-precision model, that is, updates part of the texture map of the digital twin, so that the user-visible part on the digital twin can display the latest status of the target object in real time.
[0155] In one embodiment, the initial texture map may be a preset texture map, and the preset texture map may be a pre-made high-precision texture map or a low-precision texture map. Alternatively, the initial texture map may also be a texture map obtained by baking and rendering the second target area on the surface of the high-precision model of the digital twin by the server 301 according to the initial display parameters of the digital twin. The second target area may be determined according to the initial display parameters, which is not limited in the embodiment of the present application. Among them, the initial display parameters may refer to predefined parameters such as the initial position of the camera, the initial viewing angle, the position of the user interface (or canvas) on the client, etc. The initial display parameters are used to control the position, posture, etc. of the digital twin displayed for the first time on the user screen or canvas when the digital twin system is loaded on the terminal device 302. Taking the target object as a computing device as an example, the display of the digital twin of the computing device on the terminal device according to the initial display parameters can be as follows: Figure 6C shown.
[0156] The target object may be a machine device, such as a server, switch, or other device in a computer room, or a human body, an animal body, or the like. If the target object is a machine device, the state of the target object may refer to a working state or an operating state, and the terminal device 302 may display the current working state of the machine device in real time through a digital twin, such as a hard disk indicator light, a fault diagnosis digital tube, a network card indicator light, a power indicator light, a fan state, or the like of a server or other computing device in a data center; if the target object is a human body, an animal body, the state of the target object may refer to an expression state, an action state, or the like, and the terminal device 302 may display the current expression state and / or current action state of the human body or animal body in real time through a digital twin.
[0157] In one embodiment, the embodiment of the present application essentially utilizes the observer effect, that is, the digital twin is always updating and running automatically, but in the user's perspective of the client, only the observed area will transmit and update data. The digital twin display method provided in the embodiment of the present application is also applicable to other visualization application fields, including but not limited to virtual reality (VR) glasses, mixed reality (MR) glasses, augmented reality (AR) glasses, holographic projection, digital exhibition halls, etc.
[0158] It can be seen that through the digital twin display system provided by the embodiment of the present application, the server only needs to render the required area for each terminal device on the surface of the high-precision model, avoiding directly rendering the entire area of the high-precision model surface, which can reduce the rendering pressure on the server, effectively improve the resource utilization of the server, and improve the rendering performance. In addition, the server only needs to transmit the corresponding texture map of the area to be rendered to each terminal device, effectively alleviating the data transmission pressure between the server and the client, and the terminal device only needs to reload the texture map of the area to be rendered on the low-precision model, while ensuring the authenticity of the digital twin display, it can also reduce the performance burden of the client, so that the client can provide a good loading and running experience.
[0159] It should be noted that Figure 3 The number of servers 301 and terminal devices 302 shown in the figure is only for illustration, and any number of servers 301 and terminal devices 302 can be deployed according to actual needs. The server 301 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content distribution networks, and big data. The terminal device 302 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a vehicle-mounted terminal, a wearable device, etc., which is not limited in the embodiments of the present application.
[0160] The implementation details of the technical solution of the embodiment of the present application are described in detail below:
[0161] See also Figure 4 , is the embodiment of this application based on Figure 3 The digital twin display system shown in FIG. 1 is a flow chart of a digital twin display method provided by the digital twin display system. The digital twin display method can be applied to Figure 3 The server 301 in the embodiment may specifically include the following steps:
[0162] 401. When the digital twin of the target object meets a preset update condition on the first terminal device, the server obtains a first display area of the digital twin on the first terminal device.
[0163] Among them, a variety of representation models with different precisions can be made for the target object, and the representation model can specifically be a 3D model. The target object can include machine equipment such as a server.
[0164] In one embodiment, the representation model of the target object may include a first representation model and a second representation model, wherein the first representation model may be a high-precision model, and the second representation model may be a low-precision model.
[0165] Specifically, a client, such as a browser client, runs on the first terminal device. The first terminal device can use the second representation model of the digital twin of the target object to display the digital twin of the target object on the client. Since a low-precision model is loaded and the amount of data is small, the first terminal device can quickly complete the model display and load the corresponding digital twin, thereby providing a good loading and running experience. The first terminal device can be any terminal device that accesses the digital twin system.
[0166] Furthermore, when the digital twin of the target object meets the preset update conditions on the first terminal device, the server determines that the display content of the digital twin of the target object on the first terminal device needs to be updated, and obtains the area of the digital twin of the target object that needs to be displayed on the first terminal device. The area that needs to be displayed can be understood as the visible area of the user, and the area that needs to be displayed can be recorded as the first display area.
[0167] In one embodiment, the digital twin of the target object satisfies the preset update condition on the first terminal device, including: the display area of the digital twin of the target object on the first terminal device changes, and / or the state of the target object changes. That is, if the display area of the digital twin of the target object on the first terminal device changes, and / or the state of the target object changes, the server can determine that the digital twin of the target object satisfies the preset update condition on the first terminal device.
[0168] In one embodiment, when a user needs to access the digital twin system, the first terminal device can send a data acquisition request to the server. After receiving the data acquisition request, the server first establishes a communication connection with the first terminal device, the communication connection includes a first communication connection, and then sends the second representation model of the digital twin of the target object to the first terminal device through the first communication connection. The first communication connection can be an HTTP connection, or it can also be a connection based on other network communication protocols.
[0169] In one embodiment, when the digital twin of the target object meets the preset update condition on the first terminal device, if the display area of the digital twin of the target object on the first terminal device has not changed, in this case, the state of the target object has changed, then the server can use the display area of the digital twin of the target object on the first terminal device obtained last time as the first display area, thereby quickly obtaining the current display area of the digital twin on the terminal device. If the display area of the digital twin of the target object on the first terminal device changes, in this case, the state of the target object may change or may not change, then the server needs to re-determine the first display area of the digital twin of the target object on the first terminal device, thereby obtaining the current display area of the digital twin on the terminal device. It can be seen that the embodiment of the present application can adaptively select the corresponding method to obtain the current display area of the digital twin on the terminal device according to the change of the display area of the digital twin on the first terminal device, which helps to improve the efficiency of obtaining the current display area of the digital twin on each terminal device.
[0170] In one embodiment, the specific manner in which the server determines the first display area of the digital twin of the target object on the first terminal device may include:
[0171] The server can obtain the display parameters of the digital twin of the target object on the first terminal device, and the display parameters of the digital twin of the target object on the first terminal device can be recorded as the first display parameters. Then, according to the first display parameters, a first display area is determined from the cover corresponding to the digital twin. The first display area is also the current display area of the digital twin of the target object on the first terminal device, wherein the cover is generated based on the second representation model (i.e., the low-precision model) of the digital twin of the target object. For example, the cover can be generated by extruding the low-precision model outward by a certain distance, which can be specifically as follows: Figure 2h Thus, the current display area of the digital twin on each terminal device, that is, the visible area of the user, can be accurately determined by using the display parameters of the digital twin on the terminal device and the cover of the digital twin.
[0172] In one embodiment, the presentation parameters may include camera parameters and screen position.
[0173] In one embodiment, the camera parameters may include position, viewing angle, focal length, etc.
[0174] 402. The server bakes and renders a first target area on the surface of a first representation model of the digital twin according to the first display area to generate a first texture map.
[0175] In one embodiment, the three-dimensional detail features of the target object in the high-precision model (such as the first representation model) can be generated into a two-dimensional texture map by rendering (such as baking rendering).
[0176] Specifically, the server can determine the first target area corresponding to the first display area from the surface of the first representation model of the digital twin, where the first target area refers to the area that needs to be rendered for the first terminal device, and then bake and render the first target area on the surface of the first representation model of the digital twin to generate a first texture map. It can be seen that the server only needs to render the area that needs to be displayed (i.e., the user-visible area) on the surface of the high-precision model for the terminal device, avoiding directly rendering the entire area of the high-precision model surface, which can reduce the rendering pressure on the server, effectively improve the resource utilization of the server, and improve rendering performance.
[0177] In addition, the surface of the first representation model will be automatically updated as the state of the target object changes. For example, the working status indicator light and fault diagnosis digital tube on the surface of the first representation model will be automatically updated as the state of the target object changes. The rendered first texture map can reflect the current latest state of the target object, and the first texture map includes the fine features of the high-precision model surface, so that the terminal device can use the first texture map to display the latest state of the target object and ensure the authenticity of the digital twin display.
[0178] In one embodiment, the server bakes and renders the first target area on the surface of the first representation model, and a specific implementation method of generating the first texture map may include:
[0179] The server bakes and renders the cover corresponding to the digital twin according to the configuration parameters of the first target area in the surface of the first representation model, and generates a first texture map; wherein the cover is generated based on the second representation model of the digital twin, for example, the server stores the second representation model of the digital twin, and generates the cover corresponding to the digital twin according to the second representation model. The configuration parameters can reflect the fine features of the surface of the first representation model and the current state of the target object, so that the fine features of the area to be rendered on the surface of the high-precision model can be accurately and effectively rendered into a texture map using the configuration parameters. In addition, the server bakes and renders the surface of the high-precision model using the cover, and can accurately render a texture map that matches the skeleton of the low-precision model, that is, to ensure that when the front-end terminal device loads the texture map on the low-precision model skeleton, the texture map can be completely fitted with the low-precision model skeleton, thereby improving the display effect and authenticity of the digital twin.
[0180] In one embodiment, the server bakes and renders the cover corresponding to the digital twin according to the configuration parameters of the first target area in the surface of the first representation model, and a specific implementation method of generating the first texture map may include:
[0181] The server covers the cover body on the surface of the first representation model according to the geometric center point and three-dimensional space coordinate axis of the cover body corresponding to the digital twin, as well as the geometric center point and three-dimensional space coordinate axis of the first representation model.
[0182] The server obtains the configuration parameters of the first representation model from the model configuration file of the first representation model for each pixel point included in the first target area in the surface of the first representation model. The configuration parameters include the configuration parameters of each pixel point included in the first target area in the surface of the first representation model, and the current state of the target object corresponding to the digital twin is characterized based on the configuration parameters. The configuration parameters may include but are not limited to material, lighting, color, roughness, etc.
[0183] The server bakes and renders the area on the cover body that overlaps with the projection of the first target area according to the configuration parameters of each pixel point included in the first target area to generate a first texture map.
[0184] Specifically, the server can first align the geometric center point of the cover body with the geometric center point of the first representation model, and then overlap the three-dimensional space coordinate axes (such as X-axis, Y-axis, and Z-axis) of the cover body with the three-dimensional space coordinate axes (such as X-axis, Y-axis, and Z-axis) of the first representation model, specifically, overlap the X-axis in the three-dimensional space coordinate axis of the cover body with the X-axis in the three-dimensional space coordinate axis of the first representation model, overlap the Y-axis in the three-dimensional space coordinate axis of the cover body with the Y-axis in the three-dimensional space coordinate axis of the first representation model, and overlap the Z-axis in the three-dimensional space coordinate axis of the cover body with the Z-axis in the three-dimensional space coordinate axis of the first representation model. The cover body is accurately covered on the surface of the first representation model by three-dimensional positioning, and the surface of the cover body is also aligned with the surface of the first representation model. Then, the configuration parameters of each pixel point included in the first target area on the surface of the high-precision model are used to bake and render the corresponding area of the cover body (that is, the area overlapping with the projection of the first target area), so as to obtain the first texture map of the digital twin, thereby accurately and efficiently baking and rendering the fine features of the specified area (such as the first target area) on the surface of the high-precision model into the texture map.
[0185] It should be noted that the geometric center point and three-dimensional space coordinate axes of the cover body (or the second representation model) can be set based on the same reference datum as the geometric center point and three-dimensional space coordinate axes of the first representation model. For example, the geometric center point of the cover body can be the same as the geometric center point of the first representation model, and the direction of the three-dimensional space coordinate axes of the cover body can be the same as the direction of the three-dimensional space coordinate axes of the first representation model, so that after the geometric center point of the cover body is aligned with the geometric center point of the first representation model, the three-dimensional space coordinate axes of the cover body (such as X-axis, Y-axis, and Z-axis) can also coincide with the three-dimensional space coordinate axes of the first representation model (such as X-axis, Y-axis, and Z-axis), respectively, so that the cover body is accurately covered on the surface of the first representation model, and each area on the cover body can also be aligned with the corresponding area on the surface of the first representation model.
[0186] 403. The server sends a first texture map to the first terminal device, so that the first terminal device loads the first texture map onto a first display area of a second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0187] In one embodiment, the communication connection established between the terminal device and the server may further include a second communication connection, through which the terminal device may receive the texture map transmitted by the server. The second communication connection may be a WebRTC connection, or may be a connection based on other network communication protocols.
[0188] Specifically, the server can add the first texture map of the digital twin as an image frame to the video data stream, and send the video data stream through the above-mentioned second communication connection (such as a WebRTC connection). Correspondingly, the first terminal device can receive the video data stream sent by the server through the WebRTC connection, and obtain the first texture map of the digital twin from the video data stream. When the digital twin of the target object meets the preset update conditions on the first terminal device, the first texture map corresponding to the first display area that needs to be displayed on the first terminal device can be transmitted to the first terminal device through the video stream. After receiving the first texture map, the first terminal device can wrap the two-dimensional first texture map to the corresponding position on the skeleton surface of the second representation model, so that the first terminal device can use the first texture map to efficiently and accurately display the detailed features of the visible area of the digital twin, thereby improving the authenticity of the digital twin. In addition, it can be ensured that the digital twin can display the latest state of the target object.
[0189] In an embodiment of the present application, when the digital twin of the target object meets the preset update condition on any terminal device (such as the first terminal device) accessing the digital twin system, the server obtains the first display area of the digital twin of the target object on the first terminal device, that is, obtains the area of the digital twin visible to the user on the first terminal device, and then bakes and renders the first target area on the surface of the first representation model of the digital twin according to the first display area to generate a first texture map, that is, render the fine features on the surface of the high-precision model corresponding to the first display area into a first texture map, and then send the first texture map to the first terminal device, and the first terminal device loads the first texture map onto the second representation model of the digital twin of the target object (such as a low-precision model). It can be seen that the embodiment of the present application renders the high-precision model on demand according to the user-visible area of the digital twin on each terminal device, avoiding directly rendering the entire area of the high-precision model surface for the terminal device, which can reduce the rendering pressure of the server, effectively improve the resource utilization of the server, and improve the rendering performance. At the same time, the server only needs to transmit the texture map of the area to be rendered to each terminal device, which also alleviates the data transmission pressure between the server and the client. In addition, the terminal device only needs to reload the texture map of the area to be rendered on the low-precision model. While ensuring the authenticity of the digital twin display, it can also reduce the data loading burden of the client, allowing the client to provide a good loading and running experience.
[0190] See also Figure 5 , is the embodiment of this application based on Figure 3 The digital twin display system shown in FIG. 1 is a flow chart of another digital twin display method provided by the digital twin display system. The digital twin display method can be applied to Figure 3 The server 301 in the embodiment may specifically include the following steps:
[0191] 501. When the digital twin of the target object meets a preset update condition on the first terminal device, the server obtains a first display parameter of the digital twin on the first terminal device.
[0192] In one embodiment, after each terminal device displays the digital twin of the target object on the user interface of the client, the user can freely operate the digital twin as needed. For example, the first terminal device can obtain the user's operation instructions for the digital twin, and the operation instructions may include one or more of rotation instructions, movement instructions, and display control instructions. The first terminal device adjusts the digital twin in response to the operation instruction. For example, the digital twin can be rotated, translated, hidden components, and displayed components. The user's rotation and movement of the digital twin actually adjusts the camera, that is, the rotation and movement of the camera, so that the display parameters of the digital twin on the first terminal device (such as camera parameters, screen position, etc.) change, thereby causing the display area of the digital twin (that is, the user visible area) to change. Taking the first terminal device as an example, assuming that the initial display of the digital twin on the first terminal device is as follows Figure 6C As shown, when the user of the first terminal device rotates the digital twin, the display parameters of the digital twin on the first terminal device will also change accordingly. The display after the rotation operation may be as follows: Fig.6D As shown, it may also be Fig. 6E When the user of the first terminal device moves the digital twin, the display parameters of the digital twin on the first terminal device will also change accordingly, so that part or all of the digital twin may be moved out of the range of the viewing cone, thereby causing the display area of the digital twin (i.e., the user-visible area) to change, as shown in FIG. Figure 6H As shown. The first terminal device can determine the display parameters of the digital twin of the target object on the first terminal device according to a first time interval (for example, 1 second). For example, when receiving a user's operation instruction such as a rotation instruction or a movement instruction for the digital twin, the first terminal device can adjust the digital twin in response to the operation instruction, and determine the latest display parameters of the digital twin after the adjustment, and report the latest display parameters of the digital twin to the server. In addition, the display control instruction in the user's operation instruction can hide or unhide a specified component (such as a shell) of the digital twin. After the specified component is hidden or unhidden, the high-precision model corresponding to the digital twin will also change accordingly, thereby causing the display area of the digital twin (that is, the user-visible area) to change. The display control instruction can be a hiding instruction, which can trigger the hiding of the specified component, that is, the specified component becomes invisible. The display control instruction can also be a cancel hiding instruction, which can trigger the cancel hiding of the specified component, that is, the specified component resumes display and becomes visible. As shown Fig.6I As shown, the user can enter a hiding instruction in the display interface of the client to set the components to be hidden. Figure 6JAs shown, for example, if the user chooses to hide the chassis cover, after the chassis cover is hidden, the structure inside the chassis cover in the digital twin becomes a visible area. At this time, the display of the digital twin on the first terminal device is as follows: Figure 6K As shown, compared to Fig.6D For example, the display area of the digital twin on the first terminal device changes, and the structure inside the chassis cover of the digital twin is visible to the user. Similarly, the user can enter a cancel-hide command in the display interface of the client to restore the display of the hidden components. Figure 6J As shown, the user can enter the unhide command by selecting the chassis cover. After the chassis cover is unhidden, the display of the digital twin on the first terminal device is as follows: Fig.6I As shown, compared to Figure 6J In terms of the digital twin, the display area of the digital twin on the first terminal device changes.
[0193] It is understandable that when users of different terminal devices operate the digital twin, it may also cause differences in the display parameters of the digital twin on different terminal devices, that is, the display area (i.e., the user visible area) of the digital twin on different terminal devices may be different.
[0194] In one embodiment, the digital twin of the target object satisfies the preset update condition on the first terminal device, including: the display area of the digital twin of the target object on the first terminal device changes, and / or the state of the target object changes. That is, if the display area of the digital twin of the target object on the first terminal device changes, and / or the state of the target object changes, the server can determine that the digital twin of the target object satisfies the preset update condition on the first terminal device.
[0195] In one embodiment, the server may monitor the change information of the display area of the digital twin of the target object on the first terminal device. Specifically, the server may obtain the display parameters of the digital twin of the target object on the first terminal device at a first time interval (e.g., 1 second), for example, the first terminal device reports the display parameters of the digital twin of the target object to the server every 1 second, and the server determines whether the display area of the digital twin of the target object on the first terminal device has changed according to the display parameters of the digital twin of the target object obtained twice adjacently on the first terminal device. If the display parameters of the digital twin of the target object obtained twice adjacently on the first terminal device are different, it can be determined that the display area of the digital twin of the target object on the first terminal device has changed. In addition, if the first terminal device receives a display control instruction from the user for the digital twin of the target object, wherein the display control instruction may include a hide instruction, a cancel hide instruction, etc., the first terminal device sends the display control instruction to the server, and when the server receives the display control instruction, it can be determined that the display area of the digital twin of the target object on the first terminal device has changed. Therefore, it is possible to accurately determine whether the display area of the digital twin on the terminal device has changed based on whether the display parameters of the digital twin on the terminal device have changed and / or whether the terminal device has received display control instructions for the digital twin, which in turn helps to accurately determine whether the digital twin of the target object meets the preset update conditions on the first terminal device.
[0196] In one embodiment, the server can determine that the display area of the digital twin of the target object on the first terminal device has changed when the difference between the display parameters of the digital twin of the target object obtained twice adjacently on the first terminal device is greater than or equal to a preset threshold; when the difference between the display parameters of the digital twin of the target object obtained twice adjacently on the first terminal device is less than the preset threshold, it is determined that the display area of the digital twin of the target object on the first terminal device has not changed, that is, when the display parameters of the digital twin on the first terminal device change less, for example, the user's rotation angle of the digital twin is small (specifically, it can be less than or equal to the preset angle), or the user's moving distance of the digital twin is short (specifically, it can be less than or equal to the preset distance), from the dimension of display parameters, the server can determine that the display area of the digital twin on the first terminal device has not changed. The embodiment of the present application can effectively reduce the rendering frequency of the server for high-precision models, further reduce the rendering pressure of the server, and can also reduce unnecessary data loading, further reducing the data loading burden of the terminal device.
[0197] In one embodiment, the preset threshold can be set according to the current display area of the digital twin on the terminal device. For example, when the current display area includes the digital twin corresponding to the important components of the target object, a smaller preset threshold (such as the first preset threshold) can be set. When the current display area does not include the digital twin corresponding to the important components of the target object, a larger preset threshold (such as the second preset threshold) can be set, wherein the first preset threshold is smaller than the second preset threshold. Taking the target object as a machine device as an example, the important components may include a central processing unit (CPU), a GPU, etc., so that when the digital twin corresponding to the important components is displayed on the terminal device, the accurate and complete display of the important components can be effectively guaranteed, thereby improving the user's observation experience.
[0198] In one embodiment, the presentation parameters may include camera parameters and screen position.
[0199] In one embodiment, the camera parameters may include camera position, viewing angle, focal length, etc.
[0200] In one embodiment, the server may monitor the state information of the target object. Specifically, the server may obtain the state information of the target object at a second time interval, for example, reading the state information of the target object once every 1 second through the application programming interface (API) of the object state, and determining whether the state of the target object has changed based on the state information of the target object read twice adjacently. If the state information of the target object read twice adjacently is different, it can be determined that the state of the target object has changed. Thus, it is possible to accurately determine whether the state of the target object has changed, which in turn helps to accurately determine whether the digital twin of the target object meets the preset update condition on the first terminal device.
[0201] In one embodiment, for example, the target object is a server, and the status of the target object may include the server's hard disk indicator light, fault diagnosis digital tube, power indicator light, fan status, etc. When any one of the server's hard disk indicator light, fault diagnosis digital tube, power indicator light, fan status, etc. changes, it can be determined that the status of the target object has changed.
[0202] It should be noted that when the state of the target object changes, it can be understood that the digital twin of the target object meets the preset update conditions on each terminal device accessing the digital twin system, that is, it is necessary to update the display content of the digital twin of the target object on each terminal device so that each terminal device can display the latest status of the target object.
[0203] 502. The server determines a first display area on a cover corresponding to the digital twin according to the first display parameter; wherein the cover is generated based on a second representation model of the digital twin of the target object.
[0204] In one embodiment, the specific manner in which the server determines the first display area from the cover corresponding to the digital twin according to the first display parameter may include:
[0205] The server determines the first viewing cone according to the first display parameter, wherein the first display parameter includes data such as camera parameters and screen position corresponding to the digital twin on the first terminal device.
[0206] The server determines the area of the cover corresponding to the digital twin contained in the first visual cone, and uses the area as the first display area of the digital twin on the first terminal device, that is, the user-visible area of the digital twin on the first terminal device.
[0207] For details, please refer to Figure 2i The first viewing cone can be the part located between the near clipping plane and the far clipping plane in the cone composed of the camera, the near clipping plane and the far clipping plane. In the three-dimensional space where the first viewing cone is located, the cover corresponding to the digital twin is aligned with the position of the current digital twin, and then rays are emitted from the position of the camera to the spatial range of the first viewing cone to obtain pixel points on the surface of the cover that intersect with the rays. The intersecting pixel points constitute the cover corresponding to the digital twin, which is contained in the area of the first viewing cone (i.e., the first display area), which is also the visible area of the user.
[0208] For example, suppose the display of the digital twin of the target object on the first terminal device is as follows: Figure 6C As shown, the server determines the first viewing cone according to the first display parameter. The first viewing cone can be Figure 6C Then, the area of the cover body corresponding to the digital twin that is contained in the first viewing cone (i.e., the first display area) can be determined as follows: Fig. 6F As shown in the figure, the first display area at this time refers to the area composed of sub-area 01, sub-area 02, and sub-area 03, that is, the visible area of the digital twin to the user on the first terminal device is sub-area 01, sub-area 02, and sub-area 03. When the user rotates the digital twin of the target object, the display of the digital twin on the first terminal device becomes as follows Fig.6D As shown, at this time, the area of the cover body corresponding to the digital twin included in the new viewing cone (that is, the display area of the digital twin on the first terminal device) can be as follows: Figure 6GAs shown, it can be seen that at this time, the display area includes not only sub-area 01, sub-area 02, and sub-area 03, but also sub-area 04, that is, the display area of the digital twin on the first terminal device has changed.
[0209] 503. The server determines a first target area corresponding to the first display area from the surface of the first representation model of the digital twin.
[0210] Specifically, the server can determine a target area corresponding to the area that needs to be displayed of the digital twin from the surface of the first representation model (ie, the high-precision model), and the target area can be recorded as the first target area.
[0211] In one embodiment, if the first terminal device receives a display control instruction from the user for the digital twin of the target object, the server may first control the target part (such as Fig.6I The target part of the first representation model of the digital twin is processed to obtain an updated first representation model. When the display control instruction is a hiding instruction, the target part of the first representation model of the digital twin is hidden. When the display control instruction is a cancel hiding instruction, the target part of the first representation model of the digital twin is canceled (i.e., restored to display). Then, the first target area corresponding to the first display area is determined from the surface of the updated first representation model, so that when the user performs a display control operation on the digital twin (such as hiding or canceling hiding), the target area to be rendered can be accurately determined from the surface of the high-precision model to ensure that the user can see the parts of the digital twin that he wants to see.
[0212] 504. The server performs baking rendering on a first target area on the surface of the first representation model to generate a first texture map.
[0213] It should be noted that the specific implementation of step 504 can refer to the specific description of the relevant steps in the above embodiment, which will not be repeated here.
[0214] In one embodiment, when the first display area includes at least one sub-area, such as Fig. 6F As shown, the first display area includes three sub-areas (i.e., sub-area 01, sub-area 02, and sub-area 03). Correspondingly, the first target area also includes at least one sub-area, and the number of sub-areas included in the first target area may be the same as the number of sub-areas included in the first display area. The server may bake and render each sub-area included in the first target area on the surface of the first representation model to obtain a texture map corresponding to each sub-area, and then integrate the texture maps corresponding to each sub-area to generate a first texture map.
[0215] In one embodiment, the map identifiers of the texture maps corresponding to each sub-area in the surface of the first representation model may be predefined. The server may obtain the map identifiers of the texture maps corresponding to each sub-area included in the first target area, and then arrange and combine the texture maps corresponding to each sub-area in a preset order according to the map identifiers, or randomly arrange and combine the texture maps corresponding to each sub-area, thereby generating a first texture map including the texture maps corresponding to each sub-area and the map identifiers. Among them, the preset order may be the order in which the map identifiers increase, or the order in which the map identifiers decrease, which is not limited in the embodiment of the present application. The map identifier can effectively guide the terminal device to correctly fit the texture map to the skeleton of the low-precision model of the digital twin, thereby achieving the correct display of the digital twin.
[0216] In one embodiment, each sub-region of the digital twin corresponds to a rendering process, and each rendering process is responsible for executing the rendering task of the corresponding sub-region. When a sub-region needs to be rendered, the server uses the corresponding rendering process to execute the rendering task of the sub-region. If the sub-region is rendered for the first time, the server first starts and runs the corresponding rendering process, and then uses the corresponding rendering process to execute the rendering task. Specifically, for each sub-region included in the first target area, the server can use the rendering process corresponding to each sub-region to concurrently render each sub-region included in the first target area in the surface of the first representation model, and obtain the texture map corresponding to each sub-region. The use of multi-process concurrent rendering can effectively improve the rendering efficiency.
[0217] In one embodiment, when the time for which a sub-area does not need to be rendered reaches a preset time (for example, 1 minute), that is, within the preset time, the display area of the digital twin on each terminal device accessing the digital twin system does not include the sub-area, the server can close the rendering process corresponding to the sub-area, which can further reduce the rendering pressure on the server and effectively improve the resource utilization of the server.
[0218] In one embodiment, the first texture map includes texture maps and map identifiers corresponding to each sub-area, so that the terminal device can efficiently and accurately load the texture maps corresponding to each sub-area to the corresponding position of the first display area of the second representation model (i.e., the low-precision model) of the digital twin according to the map identifiers corresponding to each sub-area. Fig. 6FFor example, the first display area includes three sub-areas (i.e., sub-area 01, sub-area 02, and sub-area 03). The server renders three texture maps corresponding to the three sub-areas, and can set a map identifier for each texture map. For example, the map identifier can be set according to the area identifier of the sub-area, and the map identifiers of the three texture maps can be 01, 02, and 03, respectively. By setting the map identifier, it is helpful for the terminal device to efficiently and accurately load the texture map onto the skeleton of the low-precision model.
[0219] In one embodiment, the server may send a texture configuration file to the first terminal device, and the texture configuration file includes a correspondence between each different position on the skeleton of the second representation model (i.e., the low-precision model) of the digital twin and a corresponding texture identifier. After receiving the texture configuration file, the first terminal device finds the corresponding position of the texture map corresponding to each sub-region included in the first texture map on the skeleton of the second representation model according to the correspondence included in the texture configuration file and the texture identifier corresponding to each sub-region included in the first texture map, and pastes the texture map corresponding to each sub-region on the corresponding correct skeleton position, so that the terminal device can efficiently and accurately load the texture map onto the skeleton of the low-precision model.
[0220] In one embodiment, when the state of the target object changes, if the display area of the digital twin of the target object on the first terminal device does not change, the server can determine the target sub-area whose state has changed from at least one sub-area included in the first target area, and bake and render the target sub-area in the surface of the first representation model to obtain the texture maps corresponding to each target sub-area, and then integrate the texture maps corresponding to each target sub-area to generate the first texture map. Fig. 6F For example, if the displayed value of the fault diagnosis digital tube of the target object changes, since the fault diagnosis digital tube is located in sub-area 02, that is, when the state of the target object changes, the target sub-area whose state changes in sub-area 01, sub-area 02, and sub-area 03 is sub-area 02. At this time, the server can only re-render sub-area 02, and there is no need to re-render sub-area 01 and sub-area 03. It can be seen that when the state of the target object changes, the server can only render the sub-area related to the state change of the target object, which can further reduce the rendering pressure on the server and effectively improve the resource utilization of the server. Since only the texture map of the sub-area related to the state change of the target object needs to be transmitted to the terminal device, it also helps to further reduce the data loading burden of the client and improve the loading speed of the digital twin.
[0221] In one embodiment, when the display area of the digital twin of the target object on the first terminal device changes, if the state of the target object has not changed, the server can obtain the display area of the digital twin of the target object determined last on the first terminal device, and the display area of the digital twin of the target object determined last on the first terminal device can be recorded as the third display area. The server determines a newly added sub-area of the first display area compared to the third display area, and bakes and renders the newly added sub-area to obtain a texture map corresponding to each newly added sub-area, and then integrates the texture maps corresponding to each newly added sub-area to generate a first texture map. Assume that the first display area is as follows Figure 6G As shown, the third display area is as follows Fig. 6F As shown, it can be seen that the first display area includes sub-area 01, sub-area 02, sub-area 03 and sub-area 04, and the third display area includes sub-area 01, sub-area 02 and sub-area 03. The server can determine that the newly added sub-area of the first display area compared to the third display area is sub-area 04. At this time, the server can only re-render sub-area 04, and there is no need to re-render sub-area 01, sub-area 02 and sub-area 03. It can be seen that when the state of the target object remains unchanged, the server can only render the newly added sub-area, thereby further reducing the rendering pressure on the server and effectively improving the resource utilization of the server. Since only the texture map of the newly added sub-area needs to be transmitted to the terminal device, it also helps to further reduce the data loading burden of the client and improve the loading speed of the digital twin.
[0222] In one embodiment, when the display area of the digital twin of the target object on the first terminal device changes, and the state of the target object also changes, the server can obtain the display area of the digital twin of the target object determined last on the first terminal device, and the display area of the digital twin of the target object determined last on the first terminal device can be recorded as the third display area. The server determines a newly added sub-area of the first display area compared to the third display area, and determines a target sub-area whose state has changed from other sub-areas in the first display area except the newly added sub-area, and bakes and renders the newly added sub-area and the target sub-area to obtain texture maps corresponding to each newly added sub-area and texture maps corresponding to each target sub-area, and then integrates the texture maps corresponding to each newly added sub-area and the texture maps corresponding to each target sub-area to generate a first texture map. Assume that the first display area is as follows: Figure 6G As shown, the third display area is as follows Fig. 6FAs shown, it can be seen that the first display area includes sub-area 01, sub-area 02, sub-area 03 and sub-area 04, and the third display area includes sub-area 01, sub-area 02 and sub-area 03. Then the server can determine that the newly added sub-area of the first display area compared to the third display area is sub-area 04. At the same time, the display value of the fault diagnosis digital tube of the target object changes. Since the fault diagnosis digital tube is located in sub-area 02 of other sub-areas (i.e., sub-area 01, sub-area 02, and sub-area 03) in the first display area except the newly added sub-area, that is, the target sub-area whose state has changed in other sub-areas is sub-area 02, the server can only re-render sub-area 04 and sub-area 02 at this time, and there is no need to re-render sub-area 01 and sub-area 03. It can be seen that when the display area of the digital twin of the target object on the first terminal device and the state of the target object change, the server can only render the newly added sub-area and the sub-area related to the state change of the target object, thereby further reducing the rendering pressure of the server and effectively improving the resource utilization of the server. Since only the newly added sub-areas and the texture maps of the target sub-areas related to the state changes of the target object need to be transmitted to the terminal device, it can also help to further reduce the data loading burden of the client and improve the loading speed of the digital twin.
[0223] It should be noted that the sub-area division of the digital twin can be flexibly set according to actual needs. Fig. 6F , Figure 6G The division situation shown can be divided into sub-regions of smaller granularity, in which case the number of sub-regions obtained by division increases; it can also be divided into sub-regions of larger granularity, in which case the number of sub-regions obtained by division decreases, and the embodiments of the present application do not limit this.
[0224] 505. The server sends a first texture map to the first terminal device, so that the first terminal device loads the first texture map into a first display area of a second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0225] It should be noted that the specific implementation of step 505 can refer to the specific description of the relevant steps in the above embodiment, which will not be repeated here.
[0226] In one embodiment, multiple terminal devices can access the digital twin system at the same time. When the digital twin of the target object meets the preset update conditions on other terminal devices (such as the second terminal device) among the multiple terminal devices except the first terminal device, the server obtains the second display area of the digital twin of the target object on the second terminal device. The server bakes and renders the third target area on the surface of the first representation model of the above-mentioned digital twin according to the second display area to generate a third texture map. The server sends the third texture map to the second terminal device so that the second terminal device loads the third texture map onto the second representation model of the digital twin of the target object; wherein the accuracy of the first representation model is higher than that of the second representation model. For the specific implementation process, please refer to the relevant description of the first terminal device in the aforementioned embodiment, which will not be repeated here.
[0227] It can be seen that when multiple terminal devices (at least including the first terminal device and the second terminal device mentioned above) access the digital twin system, the server can render the high-precision model on demand. It only needs to render the display area of the digital twin (i.e., the user-visible area) for each terminal device respectively, avoiding directly rendering the entire surface area of the high-precision model for the terminal device, which can reduce the rendering pressure on the server, effectively improve the resource utilization of the server, and improve the rendering performance. In addition, compared with the solution in which the server runs a high-precision model for each terminal device to perform respective rendering, the embodiment of the present application realizes the normalization of the high-precision model, that is, multiple terminal devices can share a high-precision model, and the server only needs to run one high-precision model to meet the rendering requirements of multiple terminal devices, further reducing the rendering pressure on the server.
[0228] Take three terminal devices as an example, Figure 6L As shown, the three terminal devices correspond to user A, user B, and user C respectively. The server can accurately determine the display area of the digital twin on the three terminal devices according to the corresponding view cones of the three terminal devices, and render the display area on the surface of the same high-precision model, that is, one high-precision model can meet the rendering requirements of the three terminal devices. The server renders the display area corresponding to each terminal device to obtain the corresponding texture map, and sends the texture map to the corresponding terminal device, so that each terminal device can efficiently load the texture map corresponding to the display area on the low-precision model skeleton, so as to quickly and accurately display the visible area of the digital twin to the corresponding user, and different terminal devices do not interfere with each other, which not only reduces the rendering pressure on the server, but also improves the loading performance of the digital twin on the client.
[0229] See also Figure 7 , is the embodiment of this application based on Figure 3The digital twin display system shown in FIG. 1 is a flowchart of another digital twin display method provided by the digital twin display system. The digital twin display method can be applied to Figure 3 Any terminal device 302 (hereinafter referred to as the first terminal device) in the embodiment may specifically include the following steps:
[0230] 701. A first terminal device receives a first texture map sent by a server; wherein the first texture map is generated by baking and rendering a first target area on the surface of a first representation model of the digital twin according to a first display area of the digital twin on the first terminal device when the digital twin of the target object meets a preset update condition on the first terminal device. The first display area corresponds to the first target area.
[0231] Among them, a variety of representation models with different precisions can be made for the target object, and the representation model can specifically be a 3D model. The target object can include machine equipment such as a server.
[0232] In one embodiment, the representation model of the target object may include a first representation model and a second representation model, wherein the first representation model may be a high-precision model, and the second representation model may be a low-precision model.
[0233] In one embodiment, the first terminal device can obtain the user's access instruction to the digital twin system, and send a data acquisition request to the server in response to the access instruction. The first terminal device receives the second representation model (i.e., low-precision model) of the digital twin of the target object sent by the server in response to the data acquisition request. Among them, the second representation model includes a second representation model skeleton and a second texture map. The first terminal device can display the second representation model in the user interface of the client (such as a browser page), thereby loading the digital twin of the target object. Since the low-precision model is loaded, the amount of data is small, and the first terminal device can quickly complete the model display and load the corresponding digital twin, thereby providing a good loading and running experience. In addition, if the second texture map is a high-precision texture map that has been prepared, or the second texture map is obtained by the server baking and rendering the second target area on the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin, the authenticity of the initial display effect of the digital twin can be improved.
[0234] In one embodiment, the second texture map may be a preset texture map, and the preset texture map may be a prepared low-precision texture map or a high-precision texture map.
[0235] In one embodiment, the second texture map may also be obtained by the server baking and rendering the second target area in the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin. For example, the server may determine the second target area to be rendered in the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin, and bake and render the second target area to obtain the second texture map. Among them, the initial display parameters may refer to predefined parameters such as the initial position of the camera, the initial viewing angle, the initial position of the user screen or the canvas, and the initial display parameters are used to control the position, posture, etc. of the digital twin when it is first displayed on the user screen or canvas.
[0236] In one embodiment, the server may determine the initial display area of the digital twin on the first terminal device according to the initial display parameters of the digital twin, then determine the second target area on the surface of the first representation model of the digital twin corresponding to the initial display area, bake and render the second target area on the surface of the first representation model of the digital twin, and generate a second texture map. The server sends the second texture map to the first terminal device, and after receiving the second texture map, the first terminal device loads the second texture map into the initial display area of the second representation model of the digital twin.
[0237] 702. The first terminal device loads the first texture map into the first display area of the second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0238] Specifically, after receiving the first texture map, the first terminal device can wrap the two-dimensional first texture map to the corresponding position on the skeleton surface of the second representation model (i.e., the first display area), so that the first terminal device can use the first texture map to efficiently and accurately display the detailed features of the visible area of the digital twin, thereby improving the authenticity of the digital twin. In addition, the first terminal device only needs to load the texture map corresponding to the display area of the digital twin on the first terminal device, which reduces the data loading burden of the terminal device and improves the loading performance. In addition, it can be ensured that the digital twin can display the latest status of the target object.
[0239] For example, the first texture map corresponding to the display area of the digital twin of the target object on the first terminal device can be as follows: Fig. 6A As shown in , the texture space coordinates of the texture map can be recorded as uv coordinates. From a bird's-eye view, the left-right direction is called u, and the up-down direction is called v. The first texture map includes multiple points, such as point A, and the position of each point in the texture space coordinates is recorded as the coordinates (u, v). The digital twin of the target object can be as follows Figure 6BAs shown, the second representation model skeleton included in the digital twin can use three-dimensional coordinates xyz, that is, it is necessary to Fig. 6A The 2D texture map shown is fitted to Figure 6B On the second representation model skeleton shown, the first terminal device can determine the mapping relationship between the position of the point in the first texture map included in the mapping configuration data and the position of the corresponding point on the second representation model skeleton. Fig. 6A Each point in (such as point A) corresponds to Figure 6B The position coordinates of the second representation model skeleton (such as the xyz coordinates of point B), and then according to the position coordinates of each point corresponding to the second representation model skeleton, the first texture map is wrapped to the surface of the second representation model skeleton, thereby completing the loading of the first texture map on the second representation model skeleton.
[0240] In one embodiment, the first texture map includes texture maps and map identifiers corresponding to each sub-area in the first target area. The specific implementation method of the first terminal device loading the first texture map into the first display area of the second representation model of the digital twin of the target object may include:
[0241] The first terminal device obtains the texture maps and map identifiers corresponding to each sub-area included in the first texture map, and then loads the texture maps corresponding to each sub-area into the corresponding positions of the first display area of the second representation model of the digital twin according to the map identifiers corresponding to each sub-area, thereby realizing efficient and accurate loading of the texture maps, improving the loading speed of the digital twin, and optimizing the user experience.
[0242] In one embodiment, the first terminal device can receive a texture configuration file sent by a server, where the texture configuration file includes a correspondence between each different position on the skeleton of a second representation model (i.e., a low-precision model) of the digital twin and a corresponding texture identifier. The first terminal device finds the corresponding positions of the texture maps corresponding to the sub-regions included in the first texture map on the skeleton of the second representation model based on the correspondence and the texture identifiers corresponding to the sub-regions included in the first texture map, and pastes the texture maps corresponding to the sub-regions on the corresponding correct skeleton positions, so that the terminal device can efficiently and accurately load the texture map onto the skeleton of the low-precision model.
[0243] In one embodiment, after each terminal device displays the digital twin of the target object on the user interface of the client, the user can freely operate the digital twin as needed. For example, the first terminal device can obtain the user's operation instructions for the digital twin, and the operation instructions may include one or more of rotation instructions, movement instructions, and display control instructions. The first terminal device adjusts the digital twin in response to the operation instruction. For example, the digital twin can be rotated, translated, and the display of components can be controlled. The user's rotation and movement of the digital twin actually adjusts the camera, that is, the rotation and movement of the camera, so that the display parameters of the digital twin on the first terminal device (such as camera parameters, screen position, etc.) change, thereby causing the display area of the digital twin (that is, the user visible area) to change. Taking the first terminal device as an example, assuming that the initial display of the digital twin on the first terminal device is as follows: Figure 6C As shown, when the user of the first terminal device rotates the digital twin, the display parameters of the digital twin on the first terminal device will also change accordingly. The display after the rotation operation may be as follows: Fig.6D As shown, it may also be Fig. 6E When the user of the first terminal device moves the digital twin, the display parameters of the digital twin on the first terminal device will also change accordingly, so that part or all of the digital twin may be moved out of the range of the viewing cone, thereby causing the display area of the digital twin (i.e., the user-visible area) to change, as shown in FIG. Figure 6H As shown. In addition, the display control instruction in the user's operation instruction can hide or unhide the specified components of the digital twin (such as the shell). After the specified components are hidden or unhidden, the high-precision model corresponding to the digital twin will also change accordingly, thereby causing the display area of the digital twin (that is, the user-visible area) to change. The display control instruction can be a hiding instruction. The hiding instruction can trigger the hiding of the specified component, that is, the specified component becomes invisible. The display control instruction can also be a cancel hiding instruction. The cancel hiding instruction can trigger the cancel hiding of the specified component, that is, the specified component resumes display and becomes visible. As shown Fig.6I As shown, the user can enter a hiding instruction in the display interface of the client to set the components to be hidden. Figure 6J As shown, for example, if the user chooses to hide the chassis cover, after the chassis cover is hidden, the structure inside the chassis cover in the digital twin becomes a visible area. At this time, the display of the digital twin on the first terminal device is as follows: Figure 6K As shown, compared to Fig.6DFor example, the display area of the digital twin on the first terminal device changes, and the structure inside the chassis cover of the digital twin is visible to the user. Similarly, the user can enter a cancel-hide command in the display interface of the client to restore the display of the hidden components. Figure 6J As shown, the user can enter the unhide command by selecting the chassis cover. After the chassis cover is unhidden, the display of the digital twin on the first terminal device is as follows: Fig.6I As shown, compared to Figure 6J In particular, the display area of the digital twin on the first terminal device changes.
[0244] Based on this, the first terminal device can obtain the display parameters of the digital twin of the target object. For example, the first terminal device can obtain the latest display parameters of the digital twin of the target object on the first terminal device at a first time interval (for example, 1 second), and report the latest display parameters to the server, so that the server uses the display parameters of the digital twin on the first terminal device to determine whether the display area of the digital twin on the first terminal device has changed, and then determine whether the digital twin of the target object meets the preset update conditions on the first terminal device. For example, when receiving a user's rotation instruction, movement instruction, or other operation instructions for the digital twin, the first terminal device can adjust the digital twin in response to the operation instruction, and determine the latest display parameters of the digital twin on the first terminal device after the adjustment.
[0245] In addition, when the first terminal device receives a display control instruction from the user for the digital twin of the target object, the first terminal device may send the display control instruction to the server, and the display control instruction may be used by the server to determine whether the display area of the digital twin of the target object on the first terminal device has changed. By reporting the display parameters of the digital twin on the first terminal device and / or the display control instruction of the digital twin of the target object from the user to the server, the first terminal device may enable the server to accurately determine whether the display area of the digital twin on the terminal device has changed based on whether the display parameters of the digital twin on the terminal device have changed and / or whether the terminal device has received the display control instruction for the digital twin, thereby facilitating accurate determination of whether the digital twin of the target object on the first terminal device meets the preset update conditions.
[0246] In an embodiment of the present application, when the digital twin of the target object meets the preset update condition on the first terminal device, the server bakes and renders the first target area on the surface of the first representation model of the digital twin according to the first display area of the digital twin of the target object on the first terminal device to generate a first texture map. The first terminal device receives the first texture map sent by the server and loads the first texture map onto the second representation model of the digital twin of the target object, wherein the accuracy of the first representation model is higher than that of the second representation model. It can be seen that the server renders the corresponding area of the surface of the high-precision model into a texture map according to the actual display area (i.e., the user-visible area) of the digital twin on the terminal device. The terminal device can quickly load the user-visible area of the digital twin using the texture map, and can ensure the authenticity of the digital twin display. In addition, since the terminal device only needs to load the texture map of the user-visible area, the loading speed of the digital twin is effectively improved, thereby optimizing the user experience.
[0247] See also Figure 8 , is the embodiment of this application based on Figure 3 The digital twin display system shown in FIG. 1 is a flowchart of another digital twin display method provided by the digital twin display system. The digital twin display method can be applied to Figure 3 In the server 301 and the at least one terminal device 302, taking the at least one terminal device 302 including the first terminal device and the second terminal device as an example, the display method of the digital twin may specifically include the following steps:
[0248] 801. When the digital twin of the target object meets a preset update condition on the first terminal device, the server obtains a first display area of the digital twin on the first terminal device.
[0249] 802. The server bakes and renders a first target area on the surface of a first representation model of the digital twin according to the first display area to generate a first texture map.
[0250] 803. The server sends a first texture map to the first terminal device.
[0251] 804. The first terminal device loads the first texture map into a first display area of a second representation model of the digital twin of the target object.
[0252] Among them, the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0253] 805. When the digital twin of the target object meets a preset update condition on the second terminal device, the server obtains a second display area of the digital twin on the second terminal device.
[0254] 806. The server bakes and renders a third target area on the surface of the first representation model of the digital twin according to the second display area to generate a third texture map.
[0255] 807. The server sends a third texture map to the second terminal device.
[0256] 808. The second terminal device loads the third texture map into a second display area of the second representation model of the digital twin of the target object.
[0257] It can be seen that when multiple terminal devices (which may include at least the first terminal device and the second terminal device mentioned above) access the digital twin system, the server can render the high-precision model on demand. It only needs to render the user-visible area for each terminal device separately, avoiding directly rendering the entire surface area of the high-precision model for the terminal device, which can reduce the rendering pressure on the server, effectively improve the resource utilization of the server, and improve the rendering performance. At the same time, compared with the solution in which the server runs a high-precision model for each terminal device separately, the multiple terminal devices in the embodiment of the present application can share a high-precision model, that is, the server only needs to run a high-precision model to meet the rendering needs of multiple terminal devices, further reducing the rendering pressure on the server.
[0258] It should be noted that the specific implementation of steps 801-808 can refer to the specific description of the relevant steps in the above embodiment, which will not be repeated here.
[0259] See also Fig. 9 , is a schematic diagram of the structure of a digital twin display device according to an embodiment of the present application, the device comprising:
[0260] An acquisition module 901 is used to acquire a first display area of the digital twin of the target object on the first terminal device when the digital twin of the target object meets a preset update condition on the first terminal device;
[0261] A processing module 902 is used to bake and render a first target area on the surface of a first representation model of the digital twin according to the first display area to generate a first texture map;
[0262] The sending module 903 is used to send the first texture map to the first terminal device so that the first terminal device loads the first texture map into the first display area of the second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0263] Optionally, the digital twin of the target object satisfies a preset update condition on the first terminal device, including:
[0264] The display area of the digital twin of the target object on the first terminal device changes, and / or the state of the target object changes.
[0265] Optionally, the acquisition module 901 is specifically used to:
[0266] If the display area of the digital twin of the target object on the first terminal device changes, determining the first display area of the digital twin on the first terminal device according to the first display parameter of the digital twin on the first terminal device;
[0267] If the display area of the digital twin of the target object on the first terminal device has not changed, the display area of the digital twin on the first terminal device acquired last time is used as the first display area.
[0268] Optionally, the acquisition module 901 is specifically used to:
[0269] Acquire a first display parameter of the digital twin on the first terminal device;
[0270] Determine a first display area of the digital twin on the first terminal device from a cover corresponding to the digital twin according to the first display parameter; wherein the cover is generated based on a second representation model of the digital twin.
[0271] Optionally, the acquisition module 901 is specifically used to:
[0272] Determine a first viewing frustum according to the first display parameters; wherein the first display parameters include camera parameters and screen position;
[0273] Determine an area of the cover corresponding to the digital twin contained in the first visual frustum, and use the area as a first display area of the digital twin on the first terminal device.
[0274] Optionally, the display area of the digital twin of the target object on the first terminal device changes, including:
[0275] The difference between the first display parameter and the second display parameter of the digital twin on the first terminal device is greater than or equal to a preset threshold, wherein the first display parameter is the current display parameter of the digital twin on the first terminal device, and the second display parameter is the display parameter of the digital twin on the first terminal device acquired last time; and / or,
[0276] The operation instructions for the digital twin sent by the first terminal device include display control instructions.
[0277] Optionally, the processing module 902 is specifically configured to:
[0278] determining a first target area on a surface of a first representation model of the digital twin corresponding to the first display area;
[0279] The cover corresponding to the digital twin is baked and rendered according to the configuration parameters of the first target area on the surface of the first representation model to generate a first texture map; wherein the cover is generated based on the second representation model of the digital twin.
[0280] Optionally, the processing module 902 is specifically configured to:
[0281] Covering the cover on the surface of the first representation model according to the geometric center point and three-dimensional space coordinate axis of the cover corresponding to the digital twin, and the geometric center point and three-dimensional space coordinate axis of the first representation model;
[0282] For each pixel point included in the first target area of the surface of the first representation model, obtain configuration parameters of the first representation model; wherein the configuration parameters include configuration parameters of each pixel point included in the first target area, and the current state of the target object corresponding to the digital twin is characterized based on the configuration parameters;
[0283] The area on the cover body that overlaps with the projection of the first target area is baked and rendered according to the configuration parameters to generate a first texture map.
[0284] Optionally, the processing module 902 is specifically configured to:
[0285] Determine a first target area on a surface of a first representation model of the digital twin corresponding to the first display area; wherein the first target area includes at least one sub-area;
[0286] Performing baking rendering on each sub-region included in the first target region of the surface of the first representation model to obtain a texture map corresponding to each sub-region;
[0287] A first texture map is generated according to the texture maps and the map identifiers corresponding to the respective sub-regions.
[0288] Optionally, the second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map;
[0289] Alternatively, the processing module 902 is further configured to bake and render a second target area on the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin to obtain a second texture map.
[0290] It should be noted that the functions of each functional module of the digital twin display device of the embodiment of the present application can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0291] See also Fig.10 , is a schematic diagram of the structure of another digital twin display device according to an embodiment of the present application, the device comprising:
[0292] A receiving module 1001 is used to receive a first texture map sent by a server; wherein the first texture map is generated by baking and rendering a first target area on the surface of a first representation model of the digital twin according to a first display area of the digital twin on the first terminal device when the digital twin of the target object meets a preset update condition on the first terminal device; wherein the first display area corresponds to the first target area;
[0293] The loading module 1002 is used to load the first texture map into the first display area of the second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0294] Optionally, the second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map;
[0295] Alternatively, the second texture map is obtained by baking and rendering a second target area on the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin.
[0296] Optionally, the loading module 1002 is specifically used for:
[0297] Acquire a texture map and a map identifier corresponding to each sub-region in the first target region included in the first texture map;
[0298] According to the map identifiers corresponding to the sub-areas, the texture maps corresponding to the sub-areas are loaded into corresponding positions of the first display area of the second representation model of the digital twin.
[0299] It should be noted that the functions of each functional module of the digital twin display device of the embodiment of the present application can be specifically implemented according to the method in the above method embodiment. The specific implementation process can refer to the relevant description of the above method embodiment, which will not be repeated here.
[0300] See also Fig.11 , is a schematic diagram of the structure of a computing device in an embodiment of the present application. The computing device in an embodiment of the present application may correspond to the server described above. The computing device includes a power supply module and other structures, and includes a processor 1101, a storage device 1102, and a network interface 1103. The processor 1101, the storage device 1102, and the network interface 1103 can exchange data.
[0301] The storage device 1102 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the storage device 1102 may also include a non-volatile memory (non-volatile memory), such as a flash memory, a solid-state drive (SSD), etc.; the storage device 1102 may also include a combination of the above types of memory.
[0302] The processor 1101 may be a central processing unit (CPU). In one embodiment, the processor 1101 may also be a graphics processing unit (GPU). The processor 1101 may also be a combination of a CPU and a GPU.
[0303] The storage device 1102 is used to store program instructions. The processor 1101 can call the program instructions to perform the following operations:
[0304] When the digital twin of the target object meets a preset update condition on the first terminal device, obtaining a first display area of the digital twin on the first terminal device;
[0305] Performing baking rendering on a first target area on a surface of a first representation model of the digital twin according to the first display area to generate a first texture map;
[0306] Call network interface 1103 to send the first texture map to the first terminal device, so that the first terminal device loads the first texture map into the first display area of the second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0307] Optionally, the digital twin of the target object satisfies a preset update condition on the first terminal device, including:
[0308] The display area of the digital twin of the target object on the first terminal device changes, and / or the state of the target object changes.
[0309] Optionally, the processor 1101 is specifically configured to:
[0310] If the display area of the digital twin of the target object on the first terminal device changes, determining the first display area of the digital twin on the first terminal device according to the first display parameter of the digital twin on the first terminal device;
[0311] If the display area of the digital twin of the target object on the first terminal device has not changed, the display area of the digital twin on the first terminal device acquired last time is used as the first display area.
[0312] Optionally, the processor 1101 is specifically configured to:
[0313] Acquire a first display parameter of the digital twin on the first terminal device;
[0314] Determine a first display area of the digital twin on the first terminal device from a cover corresponding to the digital twin according to the first display parameter; wherein the cover is generated based on a second representation model of the digital twin.
[0315] Optionally, the processor 1101 is specifically configured to:
[0316] Determine a first viewing frustum according to the first display parameters; wherein the first display parameters include camera parameters and screen position;
[0317] Determine an area of the cover corresponding to the digital twin contained in the first visual frustum, and use the area as a first display area of the digital twin on the first terminal device.
[0318] Optionally, the display area of the digital twin of the target object on the first terminal device changes, including:
[0319] The difference between the first display parameter and the second display parameter of the digital twin on the first terminal device is greater than or equal to a preset threshold, wherein the first display parameter is the current display parameter of the digital twin on the first terminal device, and the second display parameter is the display parameter of the digital twin on the first terminal device acquired last time; and / or,
[0320] The operation instructions for the digital twin sent by the first terminal device include display control instructions.
[0321] Optionally, the processor 1101 is specifically configured to:
[0322] determining a first target area on a surface of a first representation model of the digital twin corresponding to the first display area;
[0323] The cover corresponding to the digital twin is baked and rendered according to the configuration parameters of the first target area on the surface of the first representation model to generate a first texture map; wherein the cover is generated based on the second representation model of the digital twin.
[0324] Optionally, the processor 1101 is specifically configured to:
[0325] Covering the cover on the surface of the first representation model according to the geometric center point and three-dimensional space coordinate axis of the cover corresponding to the digital twin, and the geometric center point and three-dimensional space coordinate axis of the first representation model;
[0326] For each pixel point included in the first target area of the surface of the first representation model, obtain configuration parameters of the first representation model; wherein the configuration parameters include configuration parameters of each pixel point included in the first target area, and the current state of the target object corresponding to the digital twin is characterized based on the configuration parameters;
[0327] The area on the cover body that overlaps with the projection of the first target area is baked and rendered according to the configuration parameters to generate a first texture map.
[0328] Optionally, the processor 1101 is specifically configured to:
[0329] Determine a first target area on a surface of a first representation model of the digital twin corresponding to the first display area; wherein the first target area includes at least one sub-area;
[0330] Performing baking rendering on each sub-region included in the first target region of the surface of the first representation model to obtain a texture map corresponding to each sub-region;
[0331] A first texture map is generated according to the texture maps and the map identifiers corresponding to the respective sub-regions.
[0332] Optionally, the second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map;
[0333] Alternatively, the processor 1101 is further configured to bake and render a second target area on the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin to obtain a second texture map.
[0334] In a specific implementation, the processor 1101, the storage device 1102, and the network interface 1103 described in the embodiments of the present application can execute the embodiments of the present application. Figure 4 , Figure 5 and Figure 8 The implementation described in the related embodiments of the provided method can also be implemented in the embodiments of the present application Fig. 9 The implementation methods described in the relevant embodiments of the provided device will not be repeated here.
[0335] See also Fig.12 , is a schematic diagram of the structure of a terminal device in an embodiment of the present application, the terminal device includes a power supply module and other structures, and includes a processor 1201, a display device 1202, a storage device 1203 and a network interface 1204. The processor 1201, the display device 1202, the storage device 1203 and the network interface 1204 can exchange data.
[0336] The display device 1202 may include a display screen, such as a touch screen with a touch operation function, for displaying image data such as a digital twin; the storage device 1203 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the storage device 1203 may also include a non-volatile memory (non-volatile memory), such as a flash memory, a solid-state drive (SSD), etc.; the storage device 1203 may also include a combination of the above-mentioned types of memory.
[0337] The processor 1201 may be a central processing unit (CPU). In one embodiment, the processor 1201 may also be a graphics processing unit (GPU). The processor 1201 may also be a combination of a CPU and a GPU.
[0338] The storage device 1203 is used to store program instructions. The processor 1201 can call the program instructions to perform the following operations:
[0339] Calling the network interface 1204 to receive a first texture map sent by the server; wherein the first texture map is generated by the server baking and rendering a first target area on the surface of the first representation model of the digital twin according to a first display area of the digital twin on the first terminal device when the digital twin of the target object meets a preset update condition on the first terminal device; wherein the first display area corresponds to the first target area;
[0340] The first texture map is loaded into a first display area of a second representation model of the digital twin on a display device 1202; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
[0341] Optionally, the second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map;
[0342] Alternatively, the second texture map is obtained by baking and rendering a second target area on the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin.
[0343] Optionally, the processor 1201 is specifically configured to:
[0344] Acquire a texture map and a map identifier corresponding to each sub-region in the first target region included in the first texture map;
[0345] According to the map identifiers corresponding to the sub-areas, the texture maps corresponding to the sub-areas are loaded into corresponding positions of the first display area of the second representation model of the digital twin.
[0346] In a specific implementation, the processor 1201, the display device 1202, the storage device 1203, and the network interface 1204 described in the embodiments of the present application can execute the embodiments of the present application. Figure 7 and Figure 8The implementation described in the related embodiments of the provided method can also be implemented in the embodiments of the present application Fig.10 The implementation methods described in the relevant embodiments of the provided device will not be repeated here.
[0347] Those skilled in the art can also understand that the various illustrative logic blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of the two. Whether such functions are implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art can use various methods to implement the functions described for the corresponding applications, but such implementation should not be understood as exceeding the scope of protection of the embodiments of the present application.
[0348] The scheme described in the present application can be implemented in various ways. For example, these technologies can be implemented in hardware, software or a combination of hardware. For hardware implementation, the processing unit used to perform these technologies at a communication device (e.g., access network equipment, capacity reduction terminal equipment, core network equipment or chip) can be implemented in one or more general-purpose processors, digital signal processors (DSP), digital signal processing devices, application specific integrated circuits (ASIC), programmable logic devices, field programmable gate arrays (FPGA), or other programmable logic devices, discrete gates or transistor logic, discrete hardware components, or any combination thereof. The general-purpose processor can be a microprocessor, and optionally, the general-purpose processor can also be any traditional processor, controller, microcontroller or state machine. The processor can also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration.
[0349] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a device that implements the functions of the terminal device with reduced capability, the access network device corresponding to the second cell, the access network device corresponding to the first cell, and the core network device serving the terminal device with reduced capability in any of the above embodiments. Exemplarily, the device can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
[0350] In this application, elements expressed in the singular are intended to mean "one or more" rather than "one and only one", unless otherwise specified. In this application, "at least one" is intended to mean "one or more", and "more than one" is intended to mean "two or more", unless otherwise specified.
[0351] In addition, the terms "system" and "network" are often used interchangeably in this article. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. A can be singular or plural, and B can be singular or plural.
[0352] The preset (such as preset sequence) in the present application can be understood as definition, pre-definition, storage, pre-storage, pre-negotiation, pre-configuration, curing, or pre-burning.
[0353] Those skilled in the art will appreciate that, for the sake of convenience and brevity of description, the specific working processes of the systems, devices and units described above may refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0354] The same or similar parts between the various embodiments in this application can refer to each other. In the various embodiments in this application, and the various implementation methods / implementation methods / implementation methods in each embodiment, if there is no special explanation and logical conflict, the terms and / or descriptions between different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment are consistent and can be referenced to each other. The technical features in different embodiments and the various implementation methods / implementation methods / implementation methods in each embodiment can be combined to form new embodiments, implementation methods, implementation methods, or implementation methods according to their inherent logical relationships. The above-described implementation methods of this application do not constitute a limitation on the scope of protection of this application.
Claims
1. A method for displaying a digital twin, characterized in that: The method comprises: When the digital twin of the target object meets a preset update condition on the first terminal device, obtaining a first display area of the digital twin on the first terminal device; Performing baking rendering on a first target area on a surface of a first representation model of the digital twin according to the first display area to generate a first texture map; Send the first texture map to the first terminal device so that the first terminal device loads the first texture map into a first display area of a second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
2. The method according to claim 1, characterized in that The digital twin of the target object meets a preset update condition on the first terminal device, including: The display area of the digital twin of the target object on the first terminal device changes, and / or the state of the target object changes.
3. The method according to claim 1 or 2, characterized in that: The obtaining of a first display area of the digital twin on the first terminal device includes: If the display area of the digital twin of the target object on the first terminal device changes, determining the first display area of the digital twin on the first terminal device according to the first display parameter of the digital twin on the first terminal device; If the display area of the digital twin of the target object on the first terminal device has not changed, the display area of the digital twin on the first terminal device acquired last time is used as the first display area.
4. The method according to claim 3, characterized in that The determining, according to the first display parameter of the digital twin on the first terminal device, a first display area of the digital twin on the first terminal device includes: Acquire a first display parameter of the digital twin on the first terminal device; Determine a first display area of the digital twin on the first terminal device from a cover corresponding to the digital twin according to the first display parameter; wherein the cover is generated based on a second representation model of the digital twin.
5. The method according to claim 4, characterized in that The determining, according to the first display parameter, a first display area of the digital twin on the first terminal device from a cover corresponding to the digital twin includes: Determine a first viewing frustum according to the first display parameters; wherein the first display parameters include camera parameters and screen position; Determine an area of the cover corresponding to the digital twin contained in the first visual frustum, and use the area as a first display area of the digital twin on the first terminal device.
6. The method according to claim 2, characterized in that The display area of the digital twin of the target object on the first terminal device changes, including: The difference between the first display parameter and the second display parameter of the digital twin on the first terminal device is greater than or equal to a preset threshold, wherein the first display parameter is the current display parameter of the digital twin on the first terminal device, and the second display parameter is the display parameter of the digital twin on the first terminal device acquired last time; and / or, The operation instructions for the digital twin sent by the first terminal device include display control instructions.
7. The method according to any one of claims 1 to 6, characterized in that The step of baking and rendering a first target area on a surface of a first representation model of the digital twin according to the first display area to generate a first texture map includes: determining a first target area on a surface of a first representation model of the digital twin corresponding to the first display area; The cover corresponding to the digital twin is baked and rendered according to the configuration parameters of the first target area on the surface of the first representation model to generate a first texture map; wherein the cover is generated based on the second representation model of the digital twin.
8. The method according to claim 7, characterized in that The step of baking and rendering the cover body corresponding to the digital twin according to the configuration parameters of the first target area on the surface of the first representation model to generate a first texture map includes: Covering the cover on the surface of the first representation model according to the geometric center point and three-dimensional space coordinate axis of the cover corresponding to the digital twin, and the geometric center point and three-dimensional space coordinate axis of the first representation model; For each pixel point included in the first target area of the surface of the first representation model, obtain configuration parameters of the first representation model; wherein the configuration parameters include configuration parameters of each pixel point included in the first target area, and the current state of the target object corresponding to the digital twin is characterized based on the configuration parameters; The area on the cover body that overlaps with the projection of the first target area is baked and rendered according to the configuration parameters to generate a first texture map.
9. The method according to any one of claims 1 to 8, characterized in that The step of baking and rendering a first target area on a surface of a first representation model of the digital twin according to the first display area to generate a first texture map includes: Determine a first target area on a surface of a first representation model of the digital twin corresponding to the first display area; wherein the first target area includes at least one sub-area; Performing baking rendering on each sub-region included in the first target region of the surface of the first representation model to obtain a texture map corresponding to each sub-region; A first texture map is generated according to the texture maps and the map identifiers corresponding to the respective sub-regions.
10. The method according to any one of claims 1 to 9, characterized in that The second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map; Alternatively, the method further comprises: A second target area on the surface of the first representation model of the digital twin is baked and rendered according to the initial display parameters of the digital twin to obtain a second texture map.
11. A method for displaying a digital twin, characterized in that: The method comprises: Receiving a first texture map sent by a server; wherein the first texture map is generated by baking and rendering a first target area on the surface of a first representation model of the digital twin according to a first display area of the digital twin on the first terminal device when the digital twin of the target object meets a preset update condition on the first terminal device; wherein the first display area corresponds to the first target area; The first texture map is loaded into a first display area of a second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
12. The method according to claim 11, characterized in that The second representation model includes a second representation model skeleton and a second texture map, and the second texture map is attached to the second representation model skeleton; the second texture map includes a preset texture map; Alternatively, the second texture map is obtained by baking and rendering a second target area on the surface of the first representation model of the digital twin according to the initial display parameters of the digital twin.
13. The method according to claim 11 or 12, characterized in that: The loading of the first texture map into a first display area of a second representation model of the digital twin includes: Acquire a texture map and a map identifier corresponding to each sub-region in the first target region included in the first texture map; According to the map identifiers corresponding to the sub-areas, the texture maps corresponding to the sub-areas are loaded into corresponding positions of the first display area of the second representation model of the digital twin.
14. A computing device, characterized in that The computing device includes a processor, a network interface and a storage device, and the processor, the network interface and the storage device are interconnected, wherein the network interface is used to send and receive data, the storage device is used to store a computer program, and the computer program includes program instructions. The processor is configured to call the program instructions to execute the digital twin display method described in any one of claims 1 to 10.
15. A terminal device, characterized in that: The terminal device includes a processor, a display device, a network interface and a storage device, and the processor, the display device, the network interface and the storage device are interconnected, wherein the network interface is used to send and receive data, the display device is used to display image data, and the storage device is used to store a computer program, and the computer program includes program instructions. The processor is configured to call the program instructions to execute the digital twin display method described in any one of claims 11 to 13.
16. A digital twin display system, characterized in that: The system comprises: a server and a terminal device, wherein: The server is configured to obtain a first display area of the digital twin of the target object on the terminal device when the digital twin of the target object meets a preset update condition on the terminal device; The server is further configured to bake and render a first target area on the surface of a first representation model of the digital twin according to the first display area to generate a first texture map; The server is further configured to send the first texture map to the terminal device; The terminal device is used to receive the first texture map and load the first texture map into a first display area of a second representation model of the digital twin; wherein the accuracy of the first representation model is higher than the accuracy of the second representation model.
