Data processing method and apparatus for virtual reality simulation

By formatting the virtual reality simulation development requirement data using glTF, the problem of low simulation efficiency in virtual reality programs is solved, achieving efficient simulation loading and running, and improving real-time performance.

CN114841006BActive Publication Date: 2026-02-10BEIJING C H L ROBOTICS CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210534692.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-17
Publication Date
2026-02-10
Estimated Expiration
2042-05-17

AI Technical Summary

Technical Problem

Existing virtual reality programs suffer from low simulation efficiency and poor real-time performance during loading due to some file formats not supporting 3D animation or large file data sizes. File changes require re-release, impacting development and operational efficiency.

Method used

The system uses glTF formatting to process virtual reality simulation development requirements data. Through format recognition, initialization, attribute setting, and data communication processing, it reduces file data volume and improves simulation loading and running efficiency.

Benefits of technology

By using glTF formatting, the amount of file data during virtual reality program simulation is reduced, simulation loading and running efficiency is improved, and real-time performance is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114841006B_ABST
    Figure CN114841006B_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and device for virtual reality simulation. The method comprises the following steps: acquiring development requirement data, wherein the development requirement data is data for representing virtual reality simulation development requirements; performing gltf format processing on the development requirement data to obtain to-be-loaded model data, wherein the to-be-loaded format data is model data in gltf format; performing simulation loading processing on the to-be-loaded model data to obtain target virtual reality simulation data, wherein the target virtual reality simulation data is data after simulation loading; and performing virtual simulation setting processing on the target virtual reality simulation data to obtain virtual simulation data. The method solves the problem of low simulation efficiency in virtual reality simulation in the prior art, improves the development and running efficiency in virtual reality program simulation, and improves the real-time performance of virtual reality simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of virtual reality, and more specifically, to a data processing method and apparatus for virtual reality simulation. Background Technology

[0002] Virtual reality (VR) is an emerging information interaction technology. With its continuous development, VR technology has been widely applied in various fields. Currently, VR programs primarily use file formats such as .obj, .fbx, .dae, and .stl during loading. However, some of these file formats do not support 3D animation, requiring engineers to perform extensive work during the VR animation design phase, resulting in high costs and low efficiency in VR program design. While some file formats support 3D animation, the large data size of VR program model files leads to low efficiency during VR program execution. Furthermore, changes to the VR program require re-release, resulting in poor real-time virtual simulation effects.

[0003] Therefore, existing virtual reality programs suffer from low simulation efficiency when performing virtual reality simulations. Summary of the Invention

[0004] The main objective of this application is to provide a data processing method and apparatus for virtual reality simulation, in order to solve the problems in the prior art where virtual reality programs, when performing virtual simulation, suffer from low efficiency in the development and operation of virtual reality program simulation due to the fact that the virtual reality program format loading file does not support 3D animation or has a large file size, and that once the virtual reality program design file is changed, it needs to be redistributed, resulting in poor real-time performance of virtual reality simulation. This application aims to improve the development and operation efficiency of virtual reality program simulation and enhance the real-time performance of virtual reality simulation.

[0005] To achieve the above objectives, a first aspect of this application proposes a data processing method for virtual reality simulation, comprising:

[0006] Acquire development requirement data, wherein the development requirement data is data used to represent virtual reality simulation development requirements;

[0007] The development requirement data is formatted using glTF to obtain the model data to be loaded, wherein the model data to be loaded is glTF formatted model data;

[0008] The model data to be loaded is subjected to simulation loading processing to obtain target virtual reality simulation data, wherein the target virtual reality simulation data is the data after simulation loading; and

[0009] The target virtual reality simulation data is processed with virtual simulation settings to obtain virtual simulation data.

[0010] Optionally, performing a simulation loading operation on the model data to be loaded includes:

[0011] The data format of the model data to be loaded is identified to obtain format identification data, wherein the format identification data is data used to represent the format type corresponding to the model file;

[0012] The model data to be loaded is initialized according to the format recognition data to obtain the model object data to be loaded;

[0013] The attribute settings of the model object data to be loaded are performed to obtain process simulation model data; and

[0014] The process simulation model data is processed by a program to obtain the target virtual reality simulation data.

[0015] Optionally, the attribute setting process for the model object data to be loaded includes:

[0016] The physical properties of the model object data to be loaded are set to obtain the first process simulation model data, wherein the first process simulation model data is the model object data to be loaded after the physical properties have been set.

[0017] The animation attribute setting process is performed on the model object data to be loaded to obtain the second process simulation model data, wherein the second process simulation data is the model object data to be loaded after the animation attribute setting is completed;

[0018] The data communication settings of the model object data to be loaded are processed to obtain the third process simulation model data, wherein the third process simulation model data is the model object data to be loaded after the communication settings have been completed; and

[0019] The process simulation model data is obtained by combining the first process simulation model data, the second process simulation model data, and the third process simulation model data.

[0020] Optionally, the physical attribute setting process for the model object data to be loaded includes:

[0021] The data of the model objects to be loaded is identified to obtain multiple model objects to be loaded.

[0022] Object recognition is performed on the first model object to be loaded to obtain the attributes of the first model object to be loaded, wherein the first model object to be loaded is any one of the plurality of model objects to be loaded, and the attributes of the first model object to be loaded correspond to the attributes of the first model object to be loaded; and

[0023] The attribute setting interface is matched with the attribute of the first object to be loaded. The attribute setting operation is performed on the first model object to be loaded through the attribute setting interface to obtain the first process simulation model data.

[0024] Optionally, setting animation attributes for the model object data to be loaded includes:

[0025] The data of the model object to be loaded is identified to obtain the animation data of the model object to be loaded;

[0026] The development requirement data is identified to obtain animation attribute requirement data; and

[0027] Based on the animation attribute requirement data, the animation attributes of the model object to be loaded are set to obtain the simulation model data of the second process.

[0028] Optionally, the process of publishing the process simulation model data includes:

[0029] The development requirement data is identified to obtain the program release standard data;

[0030] The process simulation model data is tested to determine whether it meets the program release standard corresponding to the program release standard data.

[0031] If the conditions are met, the target virtual reality simulation data is obtained, wherein the target virtual reality simulation data is the process simulation model data;

[0032] If the conditions are not met, the process simulation model data is processed by setting attributes until the program release standard is met, thus obtaining the target virtual reality simulation data.

[0033] According to a second aspect of this application, a data processing apparatus for virtual reality simulation is provided, comprising:

[0034] The data acquisition module is used to acquire development requirement data, wherein the development requirement data is data representing virtual reality simulation development requirements;

[0035] The GLTF formatting module is used to perform GLTF formatting processing on the development requirement data to obtain the model data to be loaded, wherein the model data to be loaded is GLTF formatted model data.

[0036] A simulation loading module is used to perform simulation loading processing on the model data to be loaded to obtain target virtual reality simulation data, wherein the target virtual reality simulation data is the data after simulation loading; and

[0037] The simulation module is used to perform virtual simulation settings processing on the target virtual reality simulation data to obtain virtual simulation data.

[0038] Optionally, the simulation loading module includes:

[0039] The format recognition module is used to recognize the data format of the model data to be loaded and obtain format recognition data, wherein the format recognition data is data used to represent the format type corresponding to the model file;

[0040] An initialization module is used to initialize the model data to be loaded according to the format recognition data to obtain the model object data to be loaded.

[0041] The attribute setting module is used to perform attribute setting processing on the data of the model object to be loaded, thereby obtaining process simulation model data; and

[0042] The program publishing module is used to process the process simulation model data to obtain the target virtual reality simulation data.

[0043] According to a third aspect of this application, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing the computer to perform the above-described data processing method for virtual reality simulation.

[0044] According to a fourth aspect of this application, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to cause the at least one processor to perform the data processing method for virtual reality simulation described above.

[0045] The technical solutions provided by the embodiments of this application may include the following beneficial effects:

[0046] In this application, the acquired data representing virtual reality simulation development requirements is formatted, and glTF formatting is applied to the development requirement data to obtain model data to be loaded. This model data is in glTF format. Simulation loading processing is then performed on the model data to obtain target virtual reality simulation data. Finally, virtual simulation settings processing is applied to the target virtual reality simulation data to obtain virtual simulation data. By formatting the virtual reality simulation development requirement data using glTF, and then loading and setting up the formatted glTF model file for simulation, the amount of data in the virtual reality program simulation process is reduced, improving efficiency during simulation loading and running. This solves the problem of low simulation efficiency in existing virtual reality simulation technologies, achieving the technical effect of improving development and running efficiency in virtual reality program simulation and enhancing the real-time performance of virtual reality simulation. Attached Figure Description

[0047] The accompanying drawings, which form part of this application, are used to provide a further understanding of the application and to make other features, objects, and advantages of the application more apparent. The illustrative embodiments and descriptions of this application are used to explain the application and do not constitute an undue limitation of the application. In the drawings:

[0048] Figure 1 A flowchart of a data processing method for virtual reality simulation provided in the application;

[0049] Figure 2 A flowchart of a data processing method for virtual reality simulation provided in this application;

[0050] Figure 3 A flowchart of a data processing method for virtual reality simulation provided in this application;

[0051] Figure 4 A flowchart of a data processing method for virtual reality simulation provided in this application;

[0052] Figure 5 A flowchart of a data processing method for virtual reality simulation provided in this application;

[0053] Figure 6 A schematic diagram of a data processing device for virtual reality simulation provided in this application;

[0054] Figure 7 A schematic diagram of another data processing device for virtual reality simulation provided in this application. Detailed Implementation

[0055] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.

[0056] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0057] In this application, the terms "upper," "lower," "left," "right," "front," "rear," "top," "bottom," "inner," "outer," "middle," "vertical," "horizontal," "lateral," and "longitudinal" indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. These terms are primarily for the purpose of better describing this application and its embodiments, and are not intended to limit the indicated device, element, or component to having a specific orientation, or to be constructed and operated in a specific orientation.

[0058] Furthermore, in addition to indicating location or positional relationship, some of the aforementioned terms may also have other meanings. For example, the term "above" may also be used in some cases to indicate a certain dependency or connection relationship. Those skilled in the art can understand the specific meaning of these terms in this application based on the specific circumstances.

[0059] Furthermore, the terms "installation," "setup," "equipped with," "connection," "linked," and "socketing" should be interpreted broadly. For example, "connection" can be a fixed connection, a detachable connection, or an integral structure; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or an internal connection between two devices, components, or parts. Those skilled in the art can understand the specific meaning of the above terms in this application according to the specific circumstances.

[0060] Figure 1 A flowchart of a data processing method for virtual reality simulation provided in this application is shown below. Figure 1 As shown, the method includes the following steps:

[0061] S101: Obtain development requirement data;

[0062] The development requirement data is used to represent the development requirements of virtual reality simulation. It uses models to reproduce the essential processes that occur in the actual system, and the process of model reproduction is reflected through 3D virtual animation. The development requirement data includes simulation requirement data, animation requirement data, playback requirement data, and release requirement data, which are used to represent virtual reality simulation requirements, virtual reality scene development requirements, virtual reality animation playback requirements, and data to check whether virtual reality animations meet release standards.

[0063] Virtual reality simulation development can be used to represent virtual reality simulation data in different scenarios. For example, in an industrial production scenario, the development requirement data is used to represent the changes in industrial production caused by different influence coefficients, such as the virtual reality animation of the impact of different workpiece postures on the processing of industrial workpieces on the processing. In a game development scenario, the development requirement data is used to represent the dynamic changes in the game scene caused by different influence coefficients, such as virtual reality animations in the simulation process of speed simulation, motion simulation, collision simulation, etc.

[0064] S102: Perform gltf formatting on the development requirement data to obtain the model data to be loaded;

[0065] The data to be loaded is model data in glTF format; in an optional embodiment of this application, the development requirement data includes programming file data in programming software and export format requirement data, wherein the export format requirement data is glTF format data. The programming file data in programming software is exported according to the export format requirement data to obtain programming file data in glTF format, and the model data to be loaded is the programming file data in glTF format.

[0066] In another optional embodiment of this application, the development requirement data is the programming file data that has been exported after programming, and the programming file data that has been exported after programming is the programming file data in a first format. The programming file data in the first format is the programming file data in a non-glTF format. The programming file data in the first format is processed by glTF formatting to obtain the model data to be loaded. The programming file data in the first format is converted to glTF format to obtain the programming file data in glTF format, and thus the model data to be loaded is obtained. For example, if the first format programming file data is in FBX format, the FBX format programming file data is identified to obtain attribute data, which includes mesh data, material data, and animation data. The mesh data, material data, and animation data are then objectified, and the processing results are stored in mesh data objects, material data objects, and animation data objects, respectively. A GLTF model is constructed based on the processing results of the mesh data, material data, and animation data to obtain GLTF format programming file data, resulting in the model data to be loaded, which is also in GLTF format. In other optional embodiments of this application, the first format programming file data can also be in other formats. The first format programming file data is then formatted using GLTF to obtain the model data to be loaded, which is also in GLTF format.

[0067] The programming file data in the programming software can be published as glTF format model data to be loaded, or non-glTF format files can be converted into glTF format programming file data. glTF files not only support model animation data, but also have a smaller data size. This improves the efficiency of transmitting, loading and parsing 3D model files when loading and running glTF format model data.

[0068] S103: Perform simulation loading processing on the model data to be loaded to obtain the target virtual reality simulation data;

[0069] The simulation loading process involves setting and initializing the model attributes in the model data to be loaded, thus obtaining the target virtual reality simulation data. The target virtual reality simulation data is the data after the simulation loading is completed. By setting the physical attributes, animation attributes, and data communication of the model data to be loaded, the loading process of the model data to be loaded is completed. After loading, the target virtual reality simulation data is obtained for simulation.

[0070] Figure 2 A flowchart of a data processing method for virtual reality simulation provided in this application is shown below. Figure 2As shown, the method includes:

[0071] S201: Identify the data format of the model data to be loaded to obtain format identification data;

[0072] The format identification data is used to indicate the format type of the model file. The model file is the model file corresponding to the model data to be loaded. For example, the format identification data can be gltf format data, which indicates that the model file is in gltf format. The format identification data can also be other format model files, such as fbx format data, which indicates that the model file is in fbx format, and stl format data, which indicates that the model file is in stl format.

[0073] S202: Initialize the model data to be loaded according to the format recognition data to obtain the model object data to be loaded;

[0074] The initialization plugin corresponding to the format recognition data is matched, and the model to be loaded is processed according to the initialization plugin corresponding to the format recognition data to initialize the model to be loaded, so that the properties of the model to be loaded can be set in the 3D environment. For example, if the format recognition data is glTF format data, the GLTFUtility plugin, which is the initialization plugin corresponding to glTF format data, is used to initialize the model to be loaded. For instance, after initializing the model data to be loaded in the Unity3D design environment, the model object data in the model data to be loaded is obtained. For example, the model object data to be loaded is development requirement data based on virtual reality simulation to represent the dynamic changes in industrial production. The model object data can be virtual reality animations of industrial production changes caused by different influence coefficients on the industrial production line. After loading processing, the model object data to be loaded can be simulation data of workpieces. Alternatively, if the requirement data to be loaded is requirement data for virtual reality simulation in a game scene, after loading processing, the model object data to be loaded can be data of objects existing in a specific scene. For example, in a racetrack scene, model objects include racing cars and obstacles. The model object data to be loaded can be data of racing cars and obstacles being simulated in a virtual reality scene.

[0075] S203: Perform attribute setting processing on the data of the model object to be loaded to obtain process simulation model data;

[0076] The physical properties of the model object data to be loaded are set to obtain the first process simulation model data, wherein the first process simulation model data is the model object data to be loaded after the physical properties have been set.

[0077] Figure 3 A flowchart of a data processing method for virtual reality simulation provided in this application is shown below. Figure 3 As shown, the method includes the following steps:

[0078] S301: Identify the data of the model objects to be loaded to obtain multiple model objects to be loaded;

[0079] The model object data to be loaded may include one model object, two model objects, or multiple model objects.

[0080] S302: Perform object recognition on the first model object to be loaded to obtain the attributes of the first object to be loaded;

[0081] The first model object to be loaded can be any one of multiple model objects to be loaded, and the attributes of the first model object to be loaded correspond to the attributes of the first model object to be loaded. For example, the data of multiple model objects to be loaded may include model object 1, model object 2, and model object 3, etc. For example, model object 1 may be identified as having rigid body attribute 1, mesh attribute 1, material attribute 1, etc.; model object 2 may be identified as having rigid body attribute 2, mesh attribute 2, material attribute 2, etc.; and model object 3 may be identified as having rigid body attribute 3, mesh attribute 3, material attribute 3, etc.

[0082] S303: Match the attribute setting interface with the attributes of the first object to be loaded. Perform attribute setting operations on the first model object to be loaded through the attribute setting interface to obtain the first process simulation model data.

[0083] The properties of the object to be loaded are set according to the properties of the model object data to be loaded. The corresponding properties are set through the property setting interface corresponding to different properties. For example, the rigid body property, mesh property and material property need to be set for the first model object to be loaded. The rigid body property interface, mesh property interface and material property interface are matched respectively to set the corresponding properties to obtain the animation model data of the second process.

[0084] Animation attribute settings are applied to the data of the model object to be loaded to obtain the second process simulation model data, wherein the second process simulation data is the data of the model object to be loaded after the animation attribute settings have been completed;

[0085] Figure 4 A flowchart of a data processing method for virtual reality simulation provided in this application is shown below. Figure 4 As shown, the method includes the following steps:

[0086] S401: Identify the data of the model object to be loaded and obtain the animation data of the model object to be loaded;

[0087] The model object data to be loaded includes a first model object data to be loaded and a second model object data to be loaded. The first model object data to be loaded is static object data, and the second model object data to be loaded is dynamic object data, which is a model object with animation data.

[0088] By identifying the model object to be loaded, we obtain the model object to be loaded with animation data. The animation data of the model object to be loaded is the data of the model object to be loaded with animation data. Then, we set the animation attributes of the model object to be loaded with animation data.

[0089] S402: Identify development requirement data to obtain animation attribute requirement data;

[0090] Identify the animation attribute requirements data present in the development requirements data. The animation attribute requirements data includes first animation attribute requirements data, second animation attribute requirements data, and third animation attribute requirements data. Among them, the first animation attribute requirements data is used to control the options settings for global animation, such as start / pause; the second animation attribute requirements data is used to control the speed settings for global animation, such as animation playback speed; the third animation attribute requirements data is used to control the playback settings for different objects in the animation. For example, if there are multiple model objects in the animation, animation control options can be set for a specific model object. In addition to global animation settings, it can also be used to set the current model object individually.

[0091] S403: Based on the animation attribute requirements data, set the animation attributes of the model object to be loaded to obtain the simulation model data for the second process.

[0092] The animation data of the model object to be loaded may include one model object, two model objects, or multiple model objects. According to the animation attribute requirements corresponding to different model objects, the corresponding animation attribute requirements are set for different model objects in the animation data of the model object to be loaded. After the animation is completed with different model object attribute settings, global control options and global animation speed control are set to obtain the simulation model data of the second process.

[0093] Data communication settings are processed on the data of the model object to be loaded to obtain the third process simulation model data, wherein the third process simulation model data is the data of the model object to be loaded after the communication settings are completed;

[0094] In another optional embodiment of this application, a communication interface is added to the glTF model, and the communication interface is set according to the preset communication protocol to obtain the third process simulation model data. For example, socket communication is used to set up the communication for the model object data to be loaded.

[0095] By configuring communication settings for the model object to be loaded, data communication settings are added. When the target virtual reality simulation data is published and executed, it can be updated according to the received update data, thereby improving the real-time performance of virtual reality simulation.

[0096] The simulation model data of the first process, the simulation model data of the second process, and the simulation model data of the third process are combined and processed to obtain the process simulation model data.

[0097] The data of the model object to be loaded is processed to obtain the first process simulation model data by setting physical attributes, the second process simulation model data by setting animation attributes, and the third process simulation model data by setting data communication, respectively, to obtain the process simulation model data with completed attribute settings.

[0098] S204: Process the process simulation model data into a program to obtain the target virtual reality simulation data.

[0099] The process simulation model data is processed by publishing the program. The process simulation model data is used for virtual reality simulation. After setting up the simulation model corresponding to the development requirements, the obtained model data needs to be executable by the simulation equipment. The process simulation model data is published as a program so that the process simulation model data can be executed by the simulation equipment. The process simulation model data is processed by publishing the program to obtain the target virtual reality simulation data.

[0100] Figure 5 A flowchart of a data processing method for virtual reality simulation provided in this application is shown below. Figure 5 As shown, the method includes the following steps:

[0101] S501: Identify development requirement data to obtain standard data for program release;

[0102] The program release standard data corresponds to the development requirement data. For example, the development requirement data is the data to complete the simulation development requirements, while the program release standard data is the standard data used to determine whether the simulation model data meets the simulation development requirements during the program release process. This includes animation attribute settings, physical attribute settings, and simulation settings. Physical attributes include rigid body attributes, mesh attributes, material attributes, etc.

[0103] S502: Detect the process simulation model data and determine whether the process simulation model data meets the program release standard corresponding to the program release standard data;

[0104] If the conditions are met, the target virtual reality simulation data is obtained, where the target virtual reality simulation data is the process simulation model data;

[0105] If the requirements are not met, the properties of the process simulation model data are adjusted until the program release standards are met, thus obtaining the target virtual reality simulation data.

[0106] For example, the process simulation model data is checked to see if the animation attribute settings, physical attribute settings, and simulation settings are complete and in accordance with the program release standard. If they are complete, the target virtual reality simulation data is obtained. If they are not complete, the incomplete settings of the process simulation model data are detected, such as incomplete animation attribute settings and simulation settings. The process simulation model data is then checked again after the above-mentioned re-setting of animation attribute settings and simulation settings is performed until the attribute settings corresponding to the program release standard are completed, and the target virtual reality simulation data is obtained.

[0107] S503: Output the process simulation model data that meets the program release standard as the target virtual reality simulation data.

[0108] S104: Perform virtual simulation settings processing on the target virtual reality simulation data to obtain virtual simulation data.

[0109] In one optional embodiment of this application, after the simulation program is published, executing the simulation program includes:

[0110] Obtain the required data;

[0111] The requirement data refers to the data that users use to perform simulations on target virtual reality simulation data. The requirement data includes scene requirement data, animation requirement data, simulation requirement data, etc. For example, scene requirement data can be used to represent scene roaming requirements, animation requirement data can be used to represent animation control requirements, and simulation requirement data can be used to represent signal simulation requirements.

[0112] Match virtual reality simulation data that corresponds to the required data in the target virtual reality simulation data.

[0113] Based on the demand data, the system matches the corresponding simulation data in the target virtual reality simulation data. For example, if the demand data is scene demand data, the corresponding scene is switched based on the scene demand data; if the demand data is animation demand data, the virtual reality animation is controlled based on the animation demand data, controlling animation playback options and switching, etc.; if the demand data is simulation demand data, the simulation signals in the simulation model are adjusted based on the simulation requirements to perform simulation processing on the system. When the demand data is simulation demand data, for example, object A1 is object A in the first environment, and object A2 is object A in the second environment. For example, object A1 is robot data in the offline programming environment, and object A2 is robot data in the virtual reality simulation program. The pose change information of object A1 in the first environment includes the updated position and posture data of object A in the first environment. Through the communication settings in the target virtual reality simulation data, when the simulation is executed, the second environment receives the position change message of object A1 and performs pose update processing on object A2 based on the position change message of A1 to obtain the pose update data of object A2.

[0114] Figure 6 This application provides a schematic diagram of the structure of a data processing device for virtual reality simulation, as shown below. Figure 6 As shown, the device includes:

[0115] The data acquisition module 61 is used to acquire development requirement data, wherein the development requirement data is data used to represent the development requirements of virtual reality simulation;

[0116] The GLTF formatting module 62 is used to perform GLTF formatting on the development requirement data to obtain the model data to be loaded, wherein the model data to be loaded is GLTF formatted model data.

[0117] Simulation loading module 63 is used to perform simulation loading processing on the model data to be loaded, to obtain target virtual reality simulation data, wherein the target virtual reality simulation data is the data after simulation loading; and

[0118] The simulation module 64 is used to perform virtual simulation settings processing on the target virtual reality simulation data to obtain virtual simulation data.

[0119] Figure 7 A schematic diagram of another data processing device for virtual reality simulation provided in this application is shown below. Figure 7 As shown, the device includes:

[0120] The format recognition module 71 is used to recognize the data format of the model data to be loaded and obtain format recognition data, wherein the format recognition data is data used to represent the format type corresponding to the model file;

[0121] Initialization module 72 is used to initialize the model data to be loaded according to the format recognition data, so as to obtain the model object data to be loaded;

[0122] Attribute setting module 73 is used to perform attribute setting processing on the data of the model object to be loaded, so as to obtain process simulation model data; and

[0123] The program publishing module 74 is used to process the process simulation model data to obtain the target virtual reality simulation data.

[0124] The specific methods of execution of each unit in the above embodiments have been described in detail in the embodiments of the method, and will not be elaborated here.

[0125] In summary, this application formats the acquired data representing virtual reality simulation development requirements, performs glTF formatting on the development requirement data to obtain model data to be loaded (in glTF format), and then performs simulation loading on the model data to obtain target virtual reality simulation data. Finally, it performs virtual simulation settings on the target virtual reality simulation data to obtain virtual simulation data. By formatting the virtual reality simulation development requirement data using glTF and then performing simulation loading and settings on the formatted glTF model file, the amount of data in the virtual reality program simulation process is reduced, and the efficiency in simulation loading and running is improved. This solves the problem of low simulation efficiency in existing virtual reality simulation technologies and achieves the technical effect of improving development and running efficiency and real-time performance in virtual reality program simulation.

[0126] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0127] Obviously, those skilled in the art should understand that the various units or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device, or fabricating them separately as individual integrated circuit modules, or fabricating multiple modules or steps into a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.

[0128] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A data processing method for virtual reality simulation, characterized in that, Applied to offline programming environments, it enables the reproduction of processes occurring in actual systems through 3D virtual animation, including: Acquire development requirement data, wherein the development requirement data is data used to represent virtual reality simulation development requirements; The development requirement data is formatted using GLTF to obtain the model data to be loaded, wherein the model data to be loaded is GLTF formatted model data, including: Publish programming file data from programming software as glTF format model data to be loaded; convert non-glTF format files into glTF format programming file data; The model data to be loaded is subjected to simulation loading processing to obtain target virtual reality simulation data, wherein the target virtual reality simulation data is the data after simulation loading; and The data format of the model data to be loaded is identified to obtain format identification data, wherein the format identification data is data used to represent the format type corresponding to the model file; the model data to be loaded is initialized according to the format identification data to obtain model object data to be loaded; after initializing the model data to be loaded in the Unity3D design environment, model object data in the model data to be loaded is obtained; the model object data to be loaded is processed by setting attributes to obtain process simulation model data, including: physical attribute settings, animation attribute settings, and data communication settings; and the process simulation model data is processed by program release to obtain the target virtual reality simulation data. The process of releasing the process simulation model data includes: identifying development requirement data to obtain program release standard data, wherein the program release standard data is standard data used to determine whether the process simulation model data undergoing program release processing meets the simulation development requirements, including animation attribute settings, physical attribute settings, and simulation settings; detecting the process simulation model data to determine whether it meets the program release standards corresponding to the program release standard data; if it does, obtaining the target virtual reality simulation data, wherein the target virtual reality simulation data is the process simulation model data; if it does not meet, performing attribute setting processing on the process simulation model data until it meets the program release standards to obtain the target virtual reality simulation data. The target virtual reality simulation data is processed by virtual simulation settings to obtain virtual simulation data; After the simulation program is published, execute the simulation program, including: Obtain the requirement data; the requirement data is the data from the user's simulation of the target virtual reality simulation data; match the virtual reality simulation data corresponding to the requirement data in the target virtual reality simulation data; The requirement data is identified to obtain first object data and second object data. The first object data represents object data in the offline programming environment, and the second object data represents object data in the virtual reality simulation program. First object pose change data is obtained, which represents updated data indicating the position and posture of the object in the offline programming environment. Simulation is executed through the communication settings in the target virtual reality simulation data. The second object data is then processed to update the object pose based on the first object pose change data to obtain second object pose update data, which represents the updated object pose data in the offline simulation program.

2. The data processing method according to claim 1, characterized in that, The attribute setting process for the model object data to be loaded includes: The physical properties of the model object data to be loaded are set to obtain the first process simulation model data, wherein the first process simulation model data is the model object data to be loaded after the physical properties have been set. The animation attribute setting process is performed on the model object data to be loaded to obtain the second process simulation model data, wherein the second process simulation model data is the model object data to be loaded after the animation attribute setting is completed; The data communication settings of the model object data to be loaded are processed to obtain the third process simulation model data, wherein the third process simulation model data is the model object data to be loaded after the communication settings have been completed; and The process simulation model data is obtained by combining the first process simulation model data, the second process simulation model data, and the third process simulation model data.

3. The data processing method according to claim 2, characterized in that, The physical attribute setting process for the data of the model object to be loaded includes: The data of the model objects to be loaded is identified to obtain multiple model objects to be loaded. Object recognition is performed on the first model object to be loaded to obtain the attributes of the first model object to be loaded, wherein the first model object to be loaded is any one of the plurality of model objects to be loaded, and the attributes of the first model object to be loaded correspond to the attributes of the first model object to be loaded; and The attribute setting interface is matched with the attribute of the first object to be loaded. The attribute setting operation is performed on the first model object to be loaded through the attribute setting interface to obtain the first process simulation model data.

4. The data processing method according to claim 2, characterized in that, Setting animation attributes for the model object data to be loaded includes: The data of the model object to be loaded is identified to obtain the animation data of the model object to be loaded; The development requirement data is identified to obtain animation attribute requirement data; and Based on the animation attribute requirement data, the animation attributes of the model object to be loaded are set to obtain the simulation model data of the second process.

5. The data processing method according to claim 1, characterized in that, The process of publishing the simulation model data includes: The development requirement data is identified to obtain the program release standard data; The process simulation model data is tested to determine whether it meets the program release standard corresponding to the program release standard data. If the conditions are met, the target virtual reality simulation data is obtained, wherein the target virtual reality simulation data is the process simulation model data; If the conditions are not met, the process simulation model data is processed by setting attributes until the program release standard is met, thus obtaining the target virtual reality simulation data.

6. A data processing device for virtual reality simulation, characterized in that, Applied to offline programming environments, it enables the reproduction of processes occurring in actual systems through 3D virtual animation, including: The data acquisition module is used to acquire development requirement data, wherein the development requirement data is data representing virtual reality simulation development requirements; The GLTF formatting module is used to perform GLTF formatting processing on the development requirement data to obtain the model data to be loaded, wherein the model data to be loaded is GLTF formatted model data, including: Publish programming file data from programming software as glTF format model data to be loaded; convert non-glTF format files into glTF format programming file data; A simulation loading module is used to perform simulation loading processing on the model data to be loaded to obtain target virtual reality simulation data, wherein the target virtual reality simulation data is the data after simulation loading; and The system includes a format recognition module for recognizing the data format of the model data to be loaded, obtaining format recognition data, wherein the format recognition data is data representing the format type corresponding to the model file; an initialization module for initializing the model data to be loaded according to the format recognition data, obtaining model object data to be loaded, and obtaining model object data in the model data to be loaded after initializing the model data to be loaded in the Unity3D design environment; an attribute setting module for performing attribute setting processing on the model object data to be loaded, obtaining process simulation model data, including: physical attribute settings, animation attribute settings, and data communication settings; and a program publishing module for performing program publishing processing on the process simulation model data, obtaining the target virtual reality simulation data. The process of releasing the process simulation model data includes: identifying development requirement data to obtain program release standard data, wherein the program release standard data is standard data used to determine whether the process simulation model data undergoing program release processing meets the simulation development requirements, including animation attribute settings, physical attribute settings, and simulation settings; detecting the process simulation model data to determine whether it meets the program release standards corresponding to the program release standard data; if it does, obtaining the target virtual reality simulation data, wherein the target virtual reality simulation data is the process simulation model data; if it does not meet, performing attribute setting processing on the process simulation model data until it meets the program release standards to obtain the target virtual reality simulation data. The simulation module is used to perform virtual simulation settings processing on the target virtual reality simulation data to obtain virtual simulation data; After the simulation program is published, execute the simulation program, including: Obtain the requirement data; the requirement data is the data from the user's simulation of the target virtual reality simulation data; match the virtual reality simulation data corresponding to the requirement data in the target virtual reality simulation data; The requirement data is identified to obtain first object data and second object data. The first object data represents object data in the offline programming environment, and the second object data represents object data in the virtual reality simulation program. First object pose change data is obtained, which represents updated data indicating the position and posture of the object in the offline programming environment. Simulation is executed through the communication settings in the target virtual reality simulation data. The second object data is then processed to update the object pose based on the first object pose change data to obtain second object pose update data, which represents the updated object pose data in the offline simulation program.

7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the data processing method for virtual reality simulation as described in any one of claims 1-5.

8. An electronic device, characterized in that, include: At least one processor; The at least one processor is also connected in communication with a memory, wherein the memory stores a computer program that can be executed by the at least one processor to cause the at least one processor to perform the data processing method for virtual reality simulation as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Three-dimensional model display method based on WebGL

    CN109753334A

  • Method, device and system for converting FBX three-dimensional model into glTF three-dimensional model

    CN110021070A

  • WebVR application method based on industrial application

    CN114329274A