Data generation method and device applied to digital twin scene, medium and equipment

Through the low-code target editor, designers can directly create element components in digital twin scenarios, solving the problem of low development efficiency caused by differences in understanding between designers and code personnel, and achieving accurate restoration of design drafts and improving development efficiency.

CN120010826APending Publication Date: 2025-05-16BEIJING VOLCANO ENGINE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510142693.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-08
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

In the digital twin scenario, designers and code personnel need to jointly participate in the development of element components, resulting in insufficient design restoration due to understanding differences, repeated modifications, and affect development efficiency.

Method used

Provides a low-code target editor through which designers can directly create components to describe the primitives in the virtual scene of digital twins, avoiding the intervention of code personnel.

Benefits of technology

It ensures 100% restoration of the design draft without the intervention of code personnel, avoids repeated modifications caused by understanding differences, and improves the development efficiency of the element components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120010826A_ABST
    Figure CN120010826A_ABST
Patent Text Reader

Abstract

A data generation method and apparatus applied to a digital twinning scene, a medium and a device, relating to the technical field of computers, the method comprising: displaying a target editor, the target editor being capable of supporting creation of components in a low-code manner, the components being used for describing primitives in a digital twinning virtual scene; and generating a target component in response to an editing operation executed through the target editor. The target editor can support the creation of the components corresponding to the primitives in a low-code mode, so that a designer can directly create the target components through the target editor to ensure that a design draft is completely restored without intervention of code personnel, the condition of repeated modification caused by difference understanding of multiple parties is avoided, and the efficiency of the design is improved. And the development efficiency of the component corresponding to the primitive is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular, to a data generation method, device, medium and equipment applied to a digital twin scenario. Background Art

[0002] In digital twins, it is necessary to perform three-dimensional visualization of the graphical elements in the virtual scene, which requires the creation of many data-driven visualization primitives, such as heat maps, electronic fences, area surfaces, and fly lines.

[0003] In related technologies, designers and coders are required to participate in the development of graphic components at the same time. Designers and coders work together, but due to the difference in understanding between coders and designers, the design restoration degree is insufficient, which leads to repeated modifications and affects development efficiency. Summary of the invention

[0004] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0005] In a first aspect, the present disclosure provides a data generation method applied to a digital twin scenario, comprising: Showing a target editor, wherein the target editor can support the creation of components in a low-code manner, wherein the components are used to describe primitives in a virtual scene of a digital twin; In response to an editing operation performed by the target editor, a target component is generated.

[0006] In a second aspect, the present disclosure provides a data generation device applied to a digital twin scenario, comprising: A first display module is used to display a target editor, wherein the target editor can support the creation of components in a low-code manner, and the components are used to describe the primitives in the virtual scene of the digital twin; A generating module is used to generate a target component in response to an editing operation performed by the target editor.

[0007] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the data generation method applied to the digital twin scenario described in the first aspect.

[0008] In a fourth aspect, the present disclosure provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the data generation method applied to the digital twin scenario described in the first aspect.

[0009] In a fifth aspect, the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the data generation method applied to the digital twin scenario described in the first aspect.

[0010] Through the above technical solution, the target editor is demonstrated. The target editor can support the creation of components in a low-code manner. The components are used to describe the graphics elements in the virtual scene of the digital twin. In response to the editing operations performed through the target editor, the target components are generated. Since the target editor can support the creation of components corresponding to the graphics elements in a low-code manner, the designer can create the target components directly through the target editor to ensure 100% restoration of the design draft without the intervention of code personnel, avoiding repeated modifications caused by differences in understanding among multiple parties, and improving the development efficiency of the components corresponding to the graphics elements.

[0011] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings: Figure 1 It is a flowchart of a data generation method applied to a digital twin scenario according to an embodiment of the present disclosure.

[0013] Figure 2 It is a schematic diagram of blueprint logic information according to an embodiment of the present disclosure.

[0014] Figure 3 It is a block diagram of a data generation device applied to a digital twin scenario according to an embodiment of the present disclosure.

[0015] Figure 4 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0016] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0017] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0018] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0019] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0020] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0022] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0023] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0024] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0025] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0026] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0027] In digital twins, it is necessary to perform three-dimensional visualization of graphical elements in virtual scenes, which requires the production of many data-driven visualization primitives, such as heat maps, electronic fences, area surfaces, and fly lines. In related technologies, the components of primitives are developed through the Unity engine and the front-end 3D engine. In the Unity engine, custom shaders are required to define materials, and shaders rely on the writing of USL (Universal Shader Language), and designers are not familiar with USL, so the support of coders is required. Similar to the Unity engine, in the front-end 3D engine, GLSL (OpenGL Shading Language) needs to be written to implement the definition of shaders, and designers are not familiar with USL, so the support of coders is also required.

[0028] In the development of the components of the graphic elements through the Unity engine and the front-end 3D engine, since the participation of designers and coders is required at the same time, if there is a difference in understanding between the coders and designers, the design restoration degree is likely to be insufficient, resulting in repeated modifications and affecting development efficiency.

[0029] In view of this, the embodiments of the present disclosure provide a data generation method, device, medium and equipment applied to a digital twin scenario. The present disclosure is explained and illustrated below in conjunction with the accompanying drawings.

[0030] Figure 1This is a flow chart of a data generation method applied to a digital twin scenario according to an embodiment of the present disclosure. The data generation method applied to a digital twin scenario can be applied to an electronic device, and the data generation method applied to a digital twin scenario can be executed by a data generation device applied to a digital twin scenario, wherein the data generation device applied to a digital twin scenario can be implemented by software and / or hardware, and the software and / or hardware can be configured in an electronic device. Figure 1 , the data generation method applied to the digital twin scenario may include the following steps: Step 110, displaying a target editor, wherein the target editor can support the creation of components in a low-code manner, and the components are used to describe the primitives in the virtual scene of the digital twin; Step 120 , generating a target component in response to an editing operation performed by the target editor.

[0031] It is worth mentioning that low-code is a visual development method that achieves rapid product development based on efficient methods such as graphical drag and drop, parametric configuration, etc.

[0032] Through the above technical solution, since the target editor can support the creation of components corresponding to graphic elements in a low-code manner, designers can directly create target components through the target editor to ensure 100% restoration of the design draft without the intervention of code personnel, avoiding repeated modifications caused by differences in understanding among multiple parties and improving the development efficiency of components corresponding to graphic elements.

[0033] Among them, the target editor can run in the virtual engine, so when modifying the component, there is no need to recompile the entire project, achieving the effect of timely updating the graphics elements and speeding up the iteration of the components.

[0034] In a possible manner, the above-mentioned step of generating a target component in response to an editing operation performed through a target editor can be implemented in the following manner: in response to a first editing operation through the target editor, determining a component that inherits a preset parent class in the target editor; in response to a first editing operation through the target editor, determining a component that inherits a preset parent class in the target editor; in response to a second editing operation performed through the target editor on the component, adding a subcomponent to the component; and initializing the subcomponent to generate a target component.

[0035] The preset parent class is provided by the target editor. For example, the preset parent class can represent an object that can be placed or dynamically generated in the world. Correspondingly, in a virtual scene, the compiled component can be dragged into the virtual scene, so that in the visual interface, the component can be seen to be added to the virtual scene. In the present disclosure, a component can inherit the functions and variables of a preset parent class, and at the same time, a component can also have functions and variables different from those of a preset parent class.

[0036] In this embodiment, there may be multiple subcomponents. It is worth noting that the generation of a primitive may involve multiple functions such as the generation of a geometric model and the binding of materials. Therefore, multiple subcomponents can be combined in a component to build a more complex functional module, thereby improving reusability and maintainability.

[0037] In a possible manner, the above-mentioned step of initializing the subcomponent can be implemented in the following manner: editing the first blueprint logic information and the second blueprint logic information of the subcomponent in the blueprint editing area in the target editor; wherein the first blueprint logic information is used to realize the function of generating a target geometry model based on the input information, and the second blueprint logic information is used to realize the function of instantiating the material to obtain the target instance material, and applying the target instance material on the generated target geometry model.

[0038] Among them, materials are resources used to define the surface properties of objects. Geometric models usually refer to three-dimensional meshes used to represent objects in the game world. These models can be static or dynamically generated.

[0039] In the present disclosure, the target editor provides a blueprint editing area for editing blueprint logic information related to a component. It should be understood that a blueprint allows a user to create code logic using a graphical interface without using a code language, such as the above-mentioned USL.

[0040] Blueprints use blueprint nodes and wires to represent code logic, and provide built-in nodes and functions to implement the orchestration of component-related functions. In the blueprint editing area, users can define and edit different blueprint nodes to represent component functions, such as the function of generating a target geometry model based on user input information.

[0041] When editing blueprint logic information, create at least one blueprint node in the blueprint editing area, and establish directed connections between the blueprint nodes through wiring, so as to obtain the corresponding blueprint logic information. Blueprint nodes are the basic units that constitute blueprint logic information, and each blueprint node performs a specific operation or function. By creating at least one blueprint node and establishing directed connections between the blueprint nodes through wiring, a blueprint logic information can be formed.

[0042] It is worth noting that a blueprint node may have a node title and pins with different functions, such as an execution pin and an input pin, etc. The input pins and output pins of each blueprint node may be connected by wires. Furthermore, a blueprint node may include an event node, a data acquisition node, a function node, etc. Among them, an event node is used to detect an operation event that triggers the execution of the next blueprint node, and a data acquisition node is used to obtain data associated with a data acquisition node. A function node is used to execute a function block of a certain operation. Figure 2 is a schematic diagram of a blueprint logic information according to an embodiment of the present disclosure, by editing Figure 2 The pins of each blueprint node and the connections between the pins are shown to implement the editing of blueprint logic information.

[0043] As an example, the function of generating a geometric model of an electronic fence is used as an example to illustrate the first blueprint logic information. For example, a subcomponent is created and added to a component, and then the first blueprint logic information of the subcomponent is edited to implement the following logic: add spline points according to the input information (such as vertices), obtain the transformation matrix of each spline point, and store these change matrices in an array, extract coordinate values ​​from each transformation matrix, and generate the corresponding geometric model based on the extracted coordinate values.

[0044] As another example, the second blueprint logic information is exemplified by taking the function of binding the target geometry model and the corresponding target instance material of the generated electronic fence as an example. For example, a subcomponent is created and added to the component, and then the second blueprint logic information of the subcomponent is edited to implement the following logic: instantiate the material to obtain the target instance material, and apply the target instance material to the generated target geometry model.

[0045] Through the above method, the blueprint is used to edit the blueprint logic information used to generate graphics elements, thereby realizing the generation of graphics elements in a low-code manner.

[0046] In a possible way, you can edit the blueprint logic information of multiple different sub-components to achieve independent development of functions and facilitate later maintenance.

[0047] In a possible manner, the second blueprint logic information is also used to implement a function of exposing preset material parameters on a visual interface, and the visual interface is used to support users to customize parameter values ​​of the exposed material parameters.

[0048] Among them, the visual interface is the parameter setting area provided by the target editor.

[0049] Among them, the preset material parameters can be set by the designer, such as the transparency and color of the material.

[0050] By setting the preset material parameters exposed in the visualization interface in the above manner, it is convenient for the user to directly modify the parameter values ​​of the exposed material parameters, thereby achieving the change of the effect of the rendered primitives.

[0051] In a possible manner, the second blueprint logic information is also used to control the animation effect of the target graphic element corresponding to the target component entering or exiting the virtual scene.

[0052] It is worth noting that when the display event of the graphics element is triggered, the target graphics element enters the virtual scene and can carry the corresponding animation effect when entering. When the hide display event of the graphics element is triggered, the target graphics element exits the virtual scene and can carry the corresponding animation effect when exiting.

[0053] Through the above method, rich animation effects are created for the graphics elements to enter or exit the virtual scene, thereby enhancing the user's visual experience.

[0054] In a possible manner, the above method also includes: displaying a blueprint editing area; editing third blueprint logic information in the blueprint editing area, wherein the third blueprint logic information is used to implement the function of the material.

[0055] Among them, the third blueprint logic information can be developed based on separate sub-components.

[0056] Among them, similar to the above-mentioned first blueprint logic information and second blueprint logic information, the third blueprint logic information is also obtained by creating at least one blueprint node in the blueprint editing area and establishing directed connections between the blueprint nodes through connecting lines.

[0057] The function implemented by the third blueprint logic information may be, for example, defining a parameter for configuring the color or transparency of the graphic element, etc.

[0058] Through the above method, materials are written in a visual way to provide a data basis for the subsequent material instantiation.

[0059] In a possible way, you need to store map resources in the target editor before writing materials. Map resources are image resources used to define properties such as color, normal, roughness, etc. in materials.

[0060] In a possible manner, the above-mentioned data generation method applied to the digital twin scenario may also include the following steps: testing the initialized sub-components to obtain the test results of the sub-components.

[0061] For example, when building a geometry face, testing whether 5 or 10 vertices will cause a crash.

[0062] It is worth noting that users can use the target editor to make personalized modifications to the primitives in the virtual scene, such as the modification of the transparency of the material mentioned above, or the modification of the geometric model. Therefore, in order to improve the compatibility of the components, the initialized subcomponents can be tested to improve the compatibility of the components.

[0063] Furthermore, sub-components can be iteratively updated based on their test results to improve the iteration efficiency of components. In addition, the testing of geometric models, materials, and compatibility in primitives is achieved through low-code methods. The entire generation and iteration chain of the entire primitive only requires the participation of designers, which improves the development efficiency of primitives while ensuring the design effect.

[0064] In a possible manner, the above-mentioned data generation method applied to the digital twin scene may also include the following steps: in response to a triggering operation of adding the target component to a preset virtual scene displayed by the target editor, rendering the target component in the virtual scene to display the target primitive corresponding to the target component.

[0065] The trigger operation may be a drag operation, in which the user may use a mouse to drag the target component to a preset virtual scene displayed by the target editor, thereby rendering the target component in the virtual scene.

[0066] It is worth noting that after rendering the target component in the virtual scene, the user can realize personalized modification of the component corresponding to the target component based on the electronic device. For example, the user customizes the parameter values ​​of the material parameters exposed by the visual interface to realize the change of the material properties, such as transparency and color.

[0067] Figure 3 is a block diagram of a data generation device applied to a digital twin scenario according to an embodiment of the present disclosure, referring to Figure 3 , the data generation device applied to the digital twin scene includes: A first display module 301 is used to display a target editor, wherein the target editor can support the creation of components in a low-code manner, and the components are used to describe the primitives in the virtual scene of the digital twin; The generating module 302 is used to generate a target component in response to an editing operation performed by the target editor.

[0068] Optionally, the generating module 302 includes: A first editing module, configured to determine, in response to a first editing operation through the target editor, a component that inherits a preset parent class in the target editor; A second editing module, configured to add a subcomponent to the component in response to a second editing operation performed on the component through the target editor; The initialization module is used to initialize the subcomponents to generate the target component.

[0069] Optionally, the initialization module is further used to: Editing the first blueprint logic information and the second blueprint logic information of the subcomponent in the blueprint editing area in the target editor; Among them, the first blueprint logic information is used to realize the function of generating a target geometric model based on the input information, and the second blueprint logic information is used to realize the function of instantiating the material to obtain the target instance material, and applying the target instance material on the generated target geometric model.

[0070] Optionally, the second blueprint logic information is also used to implement a function of exposing preset material parameters on a visualization interface, and the visualization interface is used to support users to customize parameter values ​​of the exposed material parameters.

[0071] Optionally, the second blueprint logic information is also used to control the animation effect of the target graphic element corresponding to the target component entering or exiting the virtual scene.

[0072] Optionally, the data generating device 300 applied to the digital twin scenario further includes: A second display module, used to display the blueprint editing area; The third editing module is used to edit the third blueprint logic information in the blueprint editing area, wherein the third blueprint logic information is used to implement the function of the material.

[0073] Optionally, the data generating device 300 applied to the digital twin scenario further includes: The testing module is used to test the sub-component after the initialization to obtain the test result of the sub-component.

[0074] Optionally, the data generating device 300 applied to the digital twin scenario further includes: A rendering module is used to render the target component in the virtual scene in response to a triggering operation of adding the target component to a preset virtual scene displayed by the target editor, so as to display a target graphic element corresponding to the target component.

[0075] Regarding the logic of the methods executed by each module in the data generation device 300 applied to the digital twin scenario, reference can be made to the part of the method related to the above embodiment, which will not be repeated here.

[0076] An embodiment of the present disclosure also provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the above-mentioned data generation method applied to a digital twin scenario.

[0077] An embodiment of the present disclosure also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of the above-mentioned data generation method applied to the digital twin scenario.

[0078] The present disclosure also provides an electronic device, including: a storage device having a computer program stored thereon; A processing device is used to execute the computer program in the storage device to implement the steps of the above-mentioned data generation method applied to the digital twin scenario.

[0079] Reference below Figure 4 , which shows a schematic diagram of the structure of an electronic device 400 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0080] like Figure 4 As shown, the electronic device 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.

[0081] Typically, the following devices may be connected to the I / O interface 405: an input device 406 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 408 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 409. The communication device 409 may allow the electronic device 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4The electronic device 400 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.

[0082] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 409, or installed from the storage device 408, or installed from the ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0083] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0084] In some embodiments, the electronic devices may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0085] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0086] The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: displays a target editor, wherein the target editor can support the creation of components in a low-code manner, and the components are used to describe the graphics elements in the virtual scene of the digital twin; generates a target component in response to the editing operation performed by the target editor.

[0087] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0088] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0089] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, limit the module itself.

[0090] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0091] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0092] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0093] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0094] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.

Claims

1. A data generation method applied to a digital twin scenario, characterized in that: include: Showing a target editor, wherein the target editor can support the creation of components in a low-code manner, wherein the components are used to describe primitives in a virtual scene of a digital twin; In response to an editing operation performed by the target editor, a target component is generated.

2. The data generation method according to claim 1, characterized in that: The step of generating a target component in response to an editing operation performed by the target editor comprises: In response to a first editing operation through the target editor, determining a component that inherits a preset parent class in the target editor; In response to a second editing operation performed on the component through the target editor, adding a subcomponent to the component; Initialize the subcomponent to generate the target component.

3. The data generation method according to claim 2, characterized in that: The initializing the subcomponent comprises: Editing the first blueprint logic information and the second blueprint logic information of the subcomponent in the blueprint editing area in the target editor; Among them, the first blueprint logic information is used to realize the function of generating a target geometric model based on the input information, and the second blueprint logic information is used to realize the function of instantiating the material to obtain the target instance material, and applying the target instance material on the generated target geometric model.

4. The data generation method according to claim 3, characterized in that: The second blueprint logic information is also used to implement a function of exposing preset material parameters on a visual interface, and the visual interface is used to support users to customize the parameter values ​​of the exposed material parameters.

5. The data generation method according to claim 3, characterized in that: The second blueprint logic information is also used to control the animation effect of the target graphic element corresponding to the target component entering or exiting the virtual scene.

6. The data generation method according to claim 3, characterized in that: The method further comprises: Displaying the blueprint editing area; The third blueprint logic information is edited in the blueprint editing area, wherein the third blueprint logic information is used to implement the function of the material.

7. The data generation method according to any one of claims 2 to 6, characterized in that: The method further comprises: The initialized subcomponent is tested to obtain a test result of the subcomponent.

8. The data generation method according to claim 1, characterized in that: The method further comprises: In response to a triggering operation of adding the target component to a preset virtual scene displayed by the target editor, the target component is rendered in the virtual scene to display a target graphic element corresponding to the target component.

9. The data generation method according to claim 1, characterized in that: The target editor runs in the virtual engine.

10. A data generation device applied to a digital twin scenario, characterized in that: include: A first display module is used to display a target editor, wherein the target editor can support the creation of components in a low-code manner, and the components are used to describe the primitives in the virtual scene of the digital twin; A generating module is used to generate a target component in response to an editing operation performed by the target editor.

11. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the data generation method according to any one of claims 1 to 9 are implemented.

12. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, used to execute the computer program in the storage device to implement the steps of the data generation method according to any one of claims 1 to 9.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the data generation method according to any one of claims 1 to 9 are implemented.