Construction method and system based on digital twin model rendering engine
Through the method of building and rendering digital twin models, the problems of complex operation and inefficiency of existing rendering technologies are solved, an efficient and simplified rendering process is achieved, and the complexity of engineering files is reduced.
Patent Information
- Application Number
- CN202411928665.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-05-16
AI Technical Summary
The existing rendering technology is complex in operation, inefficient in rendering, and the engine itself is too large, so the project files are incompatible with each other.
By obtaining the model file of the model to be constructed, pre-processing of structural data, building a digital twin model, and performing texture mapping, environment rendering, animation script configuration and physical information configuration in turn, and finally exporting the complete digital twin model.
Reduces the complexity of model rendering, improves rendering efficiency, simplifies operational processes, and reduces the complexity and size of project files.
Smart Images

Figure CN120012357A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of model rendering engine construction, and in particular to a construction method and system based on a digital twin model rendering engine. Background Art
[0002] With the development of science and technology, digital twin technology has gradually been applied to all walks of life. The rendering of digital twin models is an important technology in digital twin technology. It generates virtual digital twin scenes by using digital models to describe the three-dimensional features of objects such as shape, size, and position.
[0003] At present, the existing rendering technology mainly relies on professional rendering engines, such as Unreal Engine 4 and Vary, which are powerful but complex to operate and require professional personnel to operate. At the same time, the existing rendering engine itself is too large, the project files are incompatible with each other, and the rendering efficiency is low.
[0004] The inventors of the present application discovered during the process of implementing the present invention that the above-mentioned solution in the prior art has the defects of complex operation and low rendering efficiency. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide a construction method and system based on a digital twin model rendering engine, which has the functions of simple operation and high rendering efficiency.
[0006] In order to achieve the above-mentioned purpose, an embodiment of the present invention provides a method for constructing a rendering engine based on a digital twin model, comprising:
[0007] Obtaining a model file of a model to be constructed, wherein the model file includes structure data, texture data, environment data, animation data, and physical data;
[0008] Preprocessing the structural data;
[0009] Building a digital twin model based on the preprocessed structural data;
[0010] Performing texture mapping on the digital twin model according to the texture data;
[0011] Performing environmental rendering on the digital twin model according to the environmental data;
[0012] configuring an animation script for the digital twin model according to the animation data;
[0013] Constructing physical information of the digital twin model according to the physical data;
[0014] The digital twin model is exported.
[0015] Optionally, preprocessing the structural data includes: performing a filtering operation and / or a denoising operation on the structural data.
[0016] Optionally, constructing a digital twin model according to the preprocessed structural data includes:
[0017] Parsing the structure data to obtain parsed data;
[0018] Building a digital twin model based on the analytical data;
[0019] Determine whether there are parameters input by the user;
[0020] When it is determined that there are parameters input by the user, optimizing and adjusting the digital twin model according to the parameters;
[0021] When it is determined that there are no parameters input by the user, the digital twin model is saved and output.
[0022] Optionally, performing texture mapping on the digital twin model according to the texture data includes:
[0023] Preprocessing the texture data to obtain texture information;
[0024] classifying the texture information;
[0025] Loading and configuring the classified texture information;
[0026] The fragment shader extracts texels from the texture information.
[0027] Optionally, performing environmental rendering on the digital twin model according to the environmental data includes:
[0028] Preprocessing the environment data to obtain environment configuration information, and classifying the environment configuration information;
[0029] Initialize environmental parameters according to the classification result of the environmental configuration information;
[0030] Rendering the digital twin model and its texture according to the initialized environmental parameters;
[0031] The environmental scenario of the digital twin model is optimized.
[0032] Optionally, configuring an animation script for the digital twin model according to the animation data includes:
[0033] Using key frame technology to call the animation data;
[0034] Initialize the script and read the script;
[0035] Binding the animation data to the corresponding script;
[0036] Configure the animation data and script triggers.
[0037] Optionally, the physical information of the digital twin model constructed according to the physical data includes:
[0038] Parsing the physical data, and binding the bones and skeleton data in the physical data to the digital twin model;
[0039] Configure physical properties;
[0040] Obtaining physical effects according to the physical characteristics and reconstructing the scene;
[0041] The bone and skeleton data are merged with the physical effect and rendered.
[0042] Optionally, deriving the digital twin model includes:
[0043] Get the rendered digital twin model data;
[0044] Configure the format parameters of the rendered digital twin model data to form the digital twin model file to be exported;
[0045] Packing and compressing the digital twin model file to be exported to form a project file;
[0046] Export the project file.
[0047] On the other hand, the present invention also provides a construction system based on a digital twin model rendering engine, comprising:
[0048] A model building module to parse structural data and build a digital twin model;
[0049] A texture mapping module, connected to the model building module, for performing texture mapping on the digital twin model;
[0050] An environment rendering module, connected to the model building module, for performing environment rendering on the digital twin model;
[0051] An animation design and script editing module, connected to the model building module, for configuring animation scripts for the digital twin model;
[0052] A physics and skeleton module, connected to the model building module, is used to construct the physical information of the digital twin model;
[0053] An engineering export module, connected to the model building module, for exporting the rendered digital twin model;
[0054] The server is used to execute any of the construction methods described above.
[0055] Through the above technical scheme, the construction method and system based on the digital twin model rendering engine provided by the present invention obtain the model file of the model to be constructed. Specifically, the model file may include structural data, texture data, environmental data, animation data and skeleton data, pre-process the above data, and perform modeling, texture mapping, environmental rendering, configuration of animation scripts and configuration of physical information in sequence to finally obtain a complete digital twin model; the method of using model files to construct and render digital twin models can effectively reduce the complexity of model rendering, thereby improving rendering efficiency.
[0056] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:
[0058] Figure 1 is a flowchart of a method for constructing a digital twin model rendering engine according to an embodiment of the present invention;
[0059] Figure 2 It is a flowchart of constructing a digital twin model in a construction method based on a digital twin model rendering engine according to an embodiment of the present invention;
[0060] Figure 3 It is a flowchart of texture mapping of a digital twin model in a construction method based on a digital twin model rendering engine according to an embodiment of the present invention;
[0061] Figure 4 is a flowchart of rendering a digital twin model in a method for constructing a digital twin model rendering engine according to an embodiment of the present invention;
[0062] Figure 5 It is a flowchart of configuring animation for a digital twin model in a construction method based on a digital twin model rendering engine according to an embodiment of the present invention;
[0063] Figure 6 It is a flowchart of configuring physical information in a construction method based on a digital twin model rendering engine according to an embodiment of the present invention;
[0064] Figure 7 It is a flowchart of file export in a method for constructing a digital twin model rendering engine according to an embodiment of the present invention;
[0065] Figure 8 It is a structural block diagram of a construction system based on a digital twin model rendering engine according to an embodiment of the present invention. DETAILED DESCRIPTION
[0066] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.
[0067] Figure 1 is a flowchart of a method for constructing a digital twin model rendering engine according to an embodiment of the present invention. Figure 1 In, the construction method may include:
[0068] In step S10, a model file of the model to be constructed is obtained, wherein the model file includes structural data, texture data, environmental data, animation data, and skeleton data. Specifically, the model file of the model to be constructed can be acquired through sensor collection, such as images taken by laser radar, drones, satellite images, etc., or can be obtained according to manually configured parameters. Specifically, the data collected by the sensor generally includes point cloud data and piece metadata, most of which are in JSON format, and some are in image format.
[0069] In step S11, the structural data is preprocessed. The structural data may include data such as terrain, landform, and buildings, and the processing of such data may include filtering operations and / or denoising operations to improve the quality of the data. Specifically, the filtering method may include low-pass and high-pass filters. Specifically, the data parsing unit can parse and distinguish between model data and texture data. After the model data generates a JSON file, the preprocessing converts the JSON file into a three-dimensional file, generally an FBX or GLB file.
[0070] In step S12, a digital twin model is constructed based on the preprocessed structural data. Among them, a variety of algorithms and tools can be used to construct the digital twin model, such as voxelization algorithm, triangle mesh generation algorithm, finite element method, etc., to achieve high-precision and high-efficiency modeling. In addition, the modeling of the digital twin model can also be automatically adjusted according to the parameter information input by the user to meet the needs of the user. Specifically, the configuration of the digital twin model by the subsequent model file can be understood as the rendering of the digital twin model.
[0071] In step S13, texture mapping is performed on the digital twin model according to the texture data. After the digital twin model is constructed, the digital twin model can be texture mapped according to the texture data, and the corresponding texture material and model can be matched to generate realistic surface details to improve the visual effects of the model and scene. Specifically, the texture data can include the texture collected by the sensor, and can also include existing / preset texture data. Basically, what is generated is a picture PNG and a partial JSON file. After that, the texture and model are combined, and the data collected multiple times are used for optimization, reconstruction, and rendering.
[0072] In step S14, the digital twin model is rendered according to the environmental data. Environmental parameters such as weather parameters, lighting parameters, time parameters, etc. in the sensor data can be preset or read. The scene environment and the digital twin model are rendered according to the environmental parameters to achieve realistic light and shadow and dynamic effects.
[0073] In step S15, the animation script is configured for the digital twin model according to the animation data. For the animations that come with the digital twin model and the animation data read, the Action keyframe technology can be used to call the animations stored in Clips, and scripts and triggers can be assigned to different models and animations in the digital twin scene, so as to plan the animations in the scene and support customized animation playback order, animation playback speed, animation playback type, etc.
[0074] In step S16, the physical information of the digital twin model is constructed according to the physical data. Among them, the physical function and the skeleton model are important components of the digital twin model, which may specifically include physical collision characteristics, physical gravity characteristics, physical lighting and materials, basic skeleton structure, BlendJs skeleton structure, etc. Specifically, physical collision is mainly used to simulate the collision behavior between objects to ensure that the interaction between objects conforms to the laws of real physics; physical gravity simulates the behavior of objects under the action of gravity; physical lighting and materials are used to simulate the optical and physical behavior of the surface of objects; the basic skeleton structure is usually composed of the core components of a three-dimensional character or object, and is composed of a series of related bones for driving animation; the BlendJs skeleton structure is a JavaScript-based skeleton animation library that can handle skeleton animation, skeleton binding, etc., and supports animation control of the model through the skeleton system.
[0075] In step S17, the digital twin model is exported. After the digital twin model is rendered, the digital twin rendering project can be exported and optimized and packaged to reduce the complexity and size of the project file for easy storage and transmission.
[0076] In step S10 to step S17, the model file of the model to be constructed is first obtained. Specifically, the model file may include the structure, texture data, environmental data, animation data, and physical data of the model. Then, the structural data of the model is preprocessed for filtering and denoising, and then the digital twin model is constructed according to the preprocessed structural data. Then, the texture data in the model file is read to perform texture mapping on the constructed digital twin model; the environmental data in the model file is read to perform environmental rendering on the constructed digital twin model; the animation data in the model file is read to configure the animation script for the constructed digital twin model; the physical data in the model file is read to configure the physical information for the constructed digital twin model. Finally, the rendered and configured digital twin model is exported and optimized and packaged to reduce the complexity and size of the engineering file.
[0077] Traditional rendering technology mainly relies on professional rendering engines, such as Unreal Engine 4, vary, etc. These engines are powerful but complex to operate and require professional personnel to operate. At the same time, the existing rendering engine body is too large, the engineering files are incompatible with each other, and the rendering efficiency is low. In this embodiment of the present invention, the method of using model files to build and render digital twin models can effectively reduce the complexity of model rendering, thereby improving rendering efficiency. Specifically, this method of the present invention can effectively reduce the number of repeated renderings and filter out useless environmental data such as shadow reflections; model file copies can be replaced with examples to reduce memory usage.
[0078] In this embodiment of the present invention, after obtaining the structural data of the model to be constructed, the structural data is preprocessed, and three-dimensional modeling is performed based on the preprocessed data. Specifically, the three-dimensional modeling step can be as follows: Figure 2 Specifically, Figure 2 In the construction method, the construction method may further include:
[0079] In step S120, the structure data is parsed to obtain parsed data. After the structure data is preprocessed, the parsed data can be obtained by parsing the structure data, that is, identifying information in different formats.
[0080] In step S121, a digital twin model is constructed based on the parsed data, wherein the digital twin model is constructed based on the identified structural information.
[0081] In step S122, it is determined whether there are parameters input by the user. Some users have specific requirements for the construction of the digital twin model, so the user can input the structural parameters of the digital twin according to actual needs to optimize the digital twin model. Specifically, the user parameters are entered through the configuration file.
[0082] In step S123, if it is determined that there are parameters input by the user, the digital twin model is optimized and adjusted according to the parameters. If there are parameters input by the user, it means that the user needs to optimize and modify part of the digital twin model, that is, it can be optimized and adjusted according to the input parameters.
[0083] In step S124, if it is determined that there are no parameters input by the user, the digital twin model is saved and output. If there are no parameters input by the user, it means that the user does not need to optimize and adjust, and the current digital twin model can be output.
[0084] In step S120 to step S124, after the structural data is preprocessed, the structural data is analyzed and identified to obtain analytical data, and a digital twin model is constructed based on the analytical data. The parameters currently input by the user are then identified. If there are parameters input by the user, it means that the user needs to optimize and adjust the digital twin model, otherwise it is not necessary.
[0085] In this embodiment of the present invention, the texture data in the model file needs to be mapped to the digital twin model. The specific mapping steps can be as follows: Figure 3 Specifically, Figure 3 In the construction method, the construction method may further include:
[0086] In step S130, the texture data is preprocessed to obtain texture information, wherein the preprocessing may include operations such as denoising and filtering.
[0087] In step S131, the texture information is classified, wherein the classification of the texture information may include map texture, background texture, shadow texture and other categories.
[0088] In step S132, the classified texture information is loaded and configured.
[0089] In step S133, the fragment shader extracts texels from the texture information. The vertex shader is used to process vertex data in the texture information, which can improve the speed of texture data parsing and rendering. The fragment shader extracts texels from the configured texture information and ultimately determines the color of the pixel.
[0090] In step S130 to step S133, the texture data is preprocessed to obtain texture information. The texture information is then classified to obtain map texture, background texture, shadow texture, etc. Corresponding texture loading configuration is performed for various texture information, and the vertex shader and the fragment shader cooperate to realize the texture rendering of the data twin model.
[0091] In this embodiment of the present invention, for the environmental data in the model file, it is necessary to use the environmental data to render the digital twin model. The specific rendering steps can be as follows: Figure 4 Specifically, Figure 4 In the construction method, the construction method may further include:
[0092] In step S140, the environmental data is preprocessed to obtain environmental configuration information, and the environmental configuration information is classified. The preprocessing of the environmental data may include a denoising operation, and the environmental data may be classified according to different factors, such as light source, material, background, etc.
[0093] In step S141, the environment parameters are initialized according to the classification result of the environment configuration information. Among them, parameters related to environment rendering can be initialized according to the configuration information or user settings, including light intensity, reflection coefficient, etc. Specifically, the environment parameters can also include factors such as weather, time, and season.
[0094] In step S142, the digital twin model and its texture are rendered according to the initialized environmental parameters. After the initialized environmental parameters are obtained, the digital twin model can be rendered, and a rendered image can be generated according to the shape, texture, etc. of the model.
[0095] In step S143, the environment scene of the digital twin model is optimized. Among them, the rendering optimization technology is applied to improve the rendering efficiency and image quality. Specifically, the environment scene includes the model and the environment scene in which the model is located.
[0096] In step S140 to step S143, the environmental data is first denoised to obtain environmental configuration information, and then classified according to environmental factors. The environmental parameters are initialized according to the classification results of the environmental configuration information, and the digital twin model and its texture are rendered according to the parameters. Finally, the environmental scene of the digital twin is optimized to improve the rendering efficiency and image quality.
[0097] In this embodiment of the present invention, for the animation data in the model file, it is necessary to use the animation data to configure the animation and script for the digital twin model. The specific configuration steps can be as follows: Figure 5 Specifically, Figure 5 In the construction method, the construction method may further include:
[0098] In step S150, the animation data is called by using the key frame technology, wherein the animation stored in the Clips can be called by using the Action key frame technology.
[0099] In step S151, the script is initialized and read, wherein the script is used to set basic parameters of the animation and the model.
[0100] In step S152, the animation data is bound to the corresponding script, wherein the script is bound to the animation so that the animation can respond to the logic in the script.
[0101] In step S153, triggers for animation data and scripts are configured. Triggers can be used to control when and how animations are played, and triggers can start animations or scripts based on events. Specifically, you can first set the trigger and trigger time, then bind the trigger time with the script information, and configure the trigger conditions between the trigger, trigger time, and digital twin model.
[0102] In step S150 to step S153, the stored animation is called by keyframe technology, the script is initialized and read, and the animation data is bound to the corresponding script. The triggers of the animation data and the script are configured to plan the animation in the scene to realize functions such as custom animation playback order, animation playback speed, and animation playback type. Specifically, the built-in animation of the three-dimensional model is read and the model animation can be arranged and designed. When multiple objects in the scene are animated independently, Mixer is used so that each object can use an independent animation mixer; and the Sprite script tool can be used to start and debug the assigned script.
[0103] In this embodiment of the present invention, for the physical data in the model file, the physical information in the digital twin model can be configured. The specific configuration steps can be as follows: Figure 6 Specifically, Figure 6 In the construction method, the construction method may further include:
[0104] In step S160, the physical data is parsed, and the bone and skeleton data in the physical data are bound to the digital twin model. The physical data includes bone and skeleton data, which are parsed and identified and bound to the model.
[0105] In step S161, physical properties are configured, where the physical properties may include physical collision, physical lighting, and the like.
[0106] In step S162, the physical effect is obtained according to the physical characteristics, and the scene is reconstructed. The physical effect corresponding to the configured physical characteristics is calculated, and the model scene is adjusted according to the optimization of the physical effect. Specifically, the calculation of the physical characteristics can be obtained by user configuration parameters or the mechanical properties of the object.
[0107] In step S163, the skeleton data is merged with the physical effect and rendered. The skeleton data is merged with the physical effect and rendered.
[0108] In step S160 to step S163, the physical data is first analyzed and identified, and the bone and skeleton data in the physical data are bound to the model. Then, physical collision, physical lighting and other characteristics are configured, and physical effects are calculated to optimize and adjust the model scene. Finally, the bone and skeleton data are integrated with the physical effects to render the model.
[0109] In this embodiment of the present invention, after the digital twin model is rendered, the digital twin model can be exported. The specific exporting steps can be as follows: Figure 7 Specifically, Figure 7 In the construction method, the construction method may further include:
[0110] In step S170, the rendered digital twin model data is obtained, wherein the rendered and repeatedly optimized digital twin model data may be integrated.
[0111] In step S171, the format parameters of the rendered digital twin model data are configured to form a digital twin model file to be exported, wherein the digital twin model file to be exported includes rendering data such as a digital twin model and texture maps.
[0112] In step S172, the digital twin model files to be exported are packaged and compressed to form a project file. The files after the digital twin model rendering are packaged and compressed to obtain the scene file after the digital twin model rendering, that is, the project file.
[0113] In step S173, the project file is exported.
[0114] In step S170 to step S173, the format parameters of the rendered digital twin model data are configured to obtain the digital twin model file to be exported. The digital twin model file to be exported is packaged and compressed to obtain the project file of the digital twin project, and the project file can be exported.
[0115] On the other hand, the present invention also provides a construction system based on a digital twin model rendering engine. Figure 8 As shown, the construction system may include a model construction module, a texture mapping module, an environment rendering module, an animation design and script editing module, a physics and skeleton module, a project export module and a server.
[0116] The model construction module is used to parse the structural data and build a digital twin model. The texture mapping module is connected to the model construction module and is used to perform texture mapping on the digital twin model. The environment rendering module is connected to the model construction module and is used to perform environment rendering on the digital twin model. The animation design and script editing module is connected to the model construction module and is used to configure the animation script for the digital twin model. The physics and skeleton module is connected to the model construction module and is used to construct the physical information of the digital twin model. The engineering export module is connected to the model construction module and is used to export the rendered digital twin model. The server is connected to the above modules and is used to execute any of the above construction methods.
[0117] Through the above technical scheme, the construction method and system based on the digital twin model rendering engine provided by the present invention obtain the model file of the model to be constructed. Specifically, the model file may include structural data, texture data, environmental data, animation data and skeleton data, pre-process the above data, and perform modeling, texture mapping, environmental rendering, configuration of animation scripts and configuration of physical information in sequence to finally obtain a complete digital twin model; the method of using model files to construct and render digital twin models can effectively reduce the complexity of model rendering, thereby improving rendering efficiency.
[0118] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0119] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0120] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0122] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0123] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0124] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0125] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0126] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for constructing a digital twin model rendering engine, characterized in that: include: Obtaining a model file of a model to be constructed, wherein the model file includes structure data, texture data, environment data, animation data, and physical data; Preprocessing the structural data; Building a digital twin model based on the preprocessed structural data; Performing texture mapping on the digital twin model according to the texture data; Performing environmental rendering on the digital twin model according to the environmental data; configuring an animation script for the digital twin model according to the animation data; Constructing physical information of the digital twin model according to the physical data; The digital twin model is exported.
2. The construction method according to claim 1, characterized in that: Preprocessing the structural data includes: performing filtering and / or denoising operations on the structural data.
3. The construction method according to claim 1, characterized in that: Building a digital twin model according to the preprocessed structural data includes: Parsing the structure data to obtain parsed data; Building a digital twin model based on the analytical data; Determine whether there are parameters input by the user; When it is determined that there are parameters input by the user, optimizing and adjusting the digital twin model according to the parameters; When it is determined that there are no parameters input by the user, the digital twin model is saved and output.
4. The construction method according to claim 1, characterized in that: Performing texture mapping on the digital twin model according to the texture data includes: Preprocessing the texture data to obtain texture information; classifying the texture information; Loading and configuring the classified texture information; The fragment shader extracts texels from the texture information.
5. The construction method according to claim 1, characterized in that: Performing environmental rendering on the digital twin model according to the environmental data includes: Preprocessing the environment data to obtain environment configuration information, and classifying the environment configuration information; Initialize environmental parameters according to the classification result of the environmental configuration information; Rendering the digital twin model and its texture according to the initialized environmental parameters; The environmental scenario of the digital twin model is optimized.
6. The construction method according to claim 1, characterized in that: Configuring an animation script for the digital twin model according to the animation data includes: Using key frame technology to call the animation data; Initialize the script and read the script; Binding the animation data to the corresponding script; Configure the animation data and script triggers.
7. The construction method according to claim 1, characterized in that: The physical information of the digital twin model constructed according to the physical data includes: Parsing the physical data, and binding the bones and skeleton data in the physical data to the digital twin model; Configure physical properties; Obtaining physical effects according to the physical characteristics and reconstructing the scene; The bone and skeleton data are merged with the physical effect and rendered.
8. The construction method according to claim 1, characterized in that: Exporting the digital twin model includes: Get the rendered digital twin model data; Configure the format parameters of the rendered digital twin model data to form the digital twin model file to be exported; Packing and compressing the digital twin model file to be exported to form a project file; Export the project file.
9. A construction system based on a digital twin model rendering engine, characterized in that: include: A model building module to parse structural data and build a digital twin model; A texture mapping module, connected to the model building module, for performing texture mapping on the digital twin model; An environment rendering module, connected to the model building module, for performing environment rendering on the digital twin model; An animation design and script editing module, connected to the model building module, for configuring animation scripts for the digital twin model; A physics and skeleton module, connected to the model building module, is used to construct the physical information of the digital twin model; An engineering export module, connected to the model building module, for exporting the rendered digital twin model; A server, used to execute the construction method as described in any one of claims 1-8.