Data processing method and device for virtual reality animation playing

By formatting the development requirements data for virtual reality animation playback into GLTF format, GLTF format model data is generated, which solves the problem of low efficiency in virtual reality animation playback and improves the efficiency of model loading and running.

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

Patent Information

Application Number
CN202210534682.9
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

In current virtual reality animation playback, the format files either do not support 3D animation or have large file sizes, resulting in low efficiency.

Method used

The GLTF formatting method is used to convert the development requirement data into GLTF format model data, and then to load and play the animation.

Benefits of technology

It improves the loading and running efficiency of virtual reality animation programs and reduces the data size of model files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114926571B_ABST
    Figure CN114926571B_ABST
Patent Text Reader

Abstract

The application discloses a data processing method and device for virtual reality animation playing. The method comprises the following steps: acquiring development demand data, wherein the development demand data is data for representing virtual reality animation playing development demand; performing gltf format processing on the development demand data to obtain to-be-loaded model data, wherein the to-be-loaded model data is model data in gltf format; performing animation loading operation on the to-be-loaded model data to obtain target virtual reality animation playing data, wherein the target virtual reality animation playing data is data after animation loading is completed; and performing animation playing setting processing on the target virtual reality animation playing data to obtain animation playing data. The method solves the problem of low efficiency in virtual reality animation playing in the prior art, and realizes the technical effect of improving the efficiency of virtual reality animation program loading and running process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of virtual simulation, and more specifically, to a data processing method and apparatus for playing virtual reality animations. 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. In existing technologies, VR programs mainly use file formats such as .obj, .fbx, .dae, and .stl during the loading process. Some of these file formats do not support 3D animation, requiring engineers to do a lot of work in the VR animation design stage, resulting in high VR program design costs and low efficiency. Although some file formats support 3D animation, the large data size of the VR program model files leads to low efficiency during VR program operation.

[0003] Therefore, existing technologies suffer from low efficiency in playing virtual reality animations. Summary of the Invention

[0004] The main objective of this application is to provide a data processing method and apparatus for virtual reality animation playback, in order to solve the problem that the virtual reality program format loading file does not support 3D animation and the file data volume is large, which leads to low efficiency in the loading and running of virtual reality animation playback programs in the prior art, thereby improving the efficiency in the loading and running process of virtual reality animation programs.

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

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

[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 model data in glTF format;

[0008] An animation loading operation is performed on the model data to be loaded to obtain target virtual reality animation playback data, wherein the target virtual reality animation playback data is the data after the animation loading is completed; and

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

[0010] Optionally, the animation loading operation for 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, and the model file is the model file corresponding to the model data to be loaded;

[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 attributes of the model object data to be loaded are set to obtain the process animation model data; and

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

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

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

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

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

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

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

[0021] 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 first model object to be loaded.

[0022] Match the attribute setting interface with the attributes of the first object to be loaded, and perform attribute setting operations on the first model object to be loaded through the attribute setting interface to obtain the second process animation model data; and

[0023] The process animation model data is obtained by combining the first process animation model data and the second process animation model data.

[0024] Optionally, the process of publishing the process animation model data includes:

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

[0026] The process animation model data is inspected to determine whether it meets the program release standard corresponding to the program release standard data.

[0027] If the conditions are met, the target virtual reality animation playback data is obtained, wherein the target virtual reality animation playback data is the process animation model data;

[0028] If the conditions are not met, attribute settings are performed on the process animation model data until the program release standard is met, and the target virtual reality animation playback data is obtained.

[0029] Optionally, processing the target virtual reality animation playback data for animation playback settings includes:

[0030] Obtain animation playback settings requirement data, wherein the animation playback settings requirement data is data on the user's animation playback requirements;

[0031] The target virtual reality animation playback data is identified to obtain multiple animation segment data, wherein each animation segment data includes animation duration data, keyframe data, and model data to which the animation belongs; and

[0032] Based on the animation playback setting requirements data, the animation duration data, keyframe data, and animation model data are updated to obtain the animation playback data.

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

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

[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 model loading module is used to perform an animation loading operation on the model data to be loaded to obtain target virtual reality animation playback data, wherein the target virtual reality animation playback data is the data after the animation loading is complete; and

[0037] The playback module is used to process the target virtual reality animation playback data to obtain animation playback data.

[0038] Optionally, the model 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, and the model file is the model file corresponding to the model data to be loaded;

[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 the process animation model data; and

[0042] The program publishing module is used to process the process animation model data to obtain the target virtual reality animation playback 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 aforementioned data processing method for playing virtual reality animation.

[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 animation playback 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 the development requirements for virtual reality animation playback is formatted. This formatting of the development requirement data into GLTF format yields model data to be loaded, which is in GLTF format. Animation loading is then performed on the model data to obtain target virtual reality animation playback data. Finally, animation playback settings are applied to the target virtual reality animation playback data to obtain animation playback data. By formatting the development requirement data into GLTF format and then loading and setting the playback of the formatted GLTF model file, the data size of the virtual reality model animation data file is reduced, improving efficiency during model loading and execution. This solves the problem of low efficiency in existing virtual reality animation playback technologies and achieves the technical effect of improving the efficiency of virtual reality animation program loading and execution. 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 illustrating a data processing method for virtual reality animation playback provided in this application;

[0049] Figure 2 A flowchart illustrating a data processing method for virtual reality animation playback provided in this application;

[0050] Figure 3 A flowchart illustrating a data processing method for virtual reality animation playback provided in this application;

[0051] Figure 4 A flowchart illustrating a data processing method for virtual reality animation playback provided in this application;

[0052] Figure 5 A flowchart illustrating a data processing method for virtual reality animation playback provided in this application;

[0053] Figure 6 A flowchart illustrating a data processing method for virtual reality animation playback provided in this application;

[0054] Figure 7 A schematic diagram of a data processing device for virtual reality animation playback provided in this application;

[0055] Figure 8A schematic diagram of another data processing device for virtual reality animation playback provided in this application. Detailed Implementation

[0056] 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.

[0057] 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.

[0058] 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.

[0059] 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.

[0060] 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.

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

[0062] S101: Obtain development requirement data;

[0063] The development requirement data is used to represent the development requirements for virtual reality animation playback. In a 3D virtual scene, it is necessary to use animation to reflect the changes in the scene. The development requirement data includes animation requirement data, playback requirement data, and release requirement data, which are used to represent the development requirements of virtual reality animation scenes, the playback requirements of virtual reality animations, and the data used to check whether virtual reality animations meet the release standards.

[0064] Virtual reality animation data can be used to represent virtual reality animation data in different scenarios, for example, in an industrial production scenario, development requirement data is used to represent the dynamic changes in industrial production; in a game development scenario, development requirement data is used to represent the dynamic changes in game scenarios.

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

[0066] In one optional embodiment of this application, the development requirement data includes programming file data in the programming software and export format requirement data, wherein the export format requirement data is gltf format data. The programming file data in the 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 obtained. The model data to be loaded is programming file data in gltf format.

[0067] 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.

[0068] 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.

[0069] S103: Perform animation loading operation on the model data to be loaded to obtain the target virtual reality animation playback data;

[0070] The process involves loading the model data to be loaded with animation. During the loading process, the model attributes in the model data to be loaded are set and initialized to obtain the target virtual reality animation playback data. The target virtual reality animation playback data is the data after the animation is loaded. By setting the animation attributes and model object attributes of the model data to be loaded, the loading process of the model data to be loaded is completed. The target virtual reality animation playback data obtained after loading is then used to run and play the animation.

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

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

[0073] 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.

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

[0075] The system matches the initialization plugin corresponding to the format recognition data. Based on this plugin, the model to be loaded is processed and initialized, facilitating attribute settings in the 3D environment. For example, if the format recognition data is glTF format data, the system matches the corresponding GLTFUtility plugin. The GLTFUtility plugin initializes the model to be loaded. For instance, after initializing the model data in the Unit3D design environment, the model object data is obtained. For example, if the model object data is based on development requirements for virtual reality animation representing dynamic changes in industrial production, the model object data could be virtual animation of workpiece processing on an industrial production line. After loading, the model object data could be data of workpieces. Alternatively, if the requirement data is for virtual reality animation representing dynamic changes in a game scene, after loading, the model object data could be data of objects existing in a specific scene. For example, in a racetrack scene, model objects include racing cars and obstacles, and the model object data could be data of racing cars and obstacles.

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

[0077] In one optional embodiment of this application, Figure 3 A flowchart of a data processing method for virtual reality animation playback 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 object to be loaded to obtain the animation data of the model object to be loaded;

[0079] 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.

[0080] 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.

[0081] S302: Identify development requirement data to obtain animation attribute requirement data;

[0082] 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.

[0083] S303: Set animation attributes for the animation data of the model object to be loaded based on the animation attribute requirement data to obtain the first process animation model data.

[0084] 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 first process animation model data.

[0085] In one optional embodiment of this application, Figure 4 A flowchart of a data processing method for virtual reality animation playback 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 objects to be loaded to obtain multiple model objects to be loaded;

[0087] The animation data of the model object to be loaded may include one model object, two model objects, or multiple model objects.

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

[0089] 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.

[0090] S403: Match the property setting interface with the properties of the first object to be loaded, and perform property setting operations on the first model object to be loaded through the property setting interface to obtain the second process animation model data;

[0091] 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.

[0092] S404: Combine the first process animation model data and the second process animation model data to obtain the process animation model data.

[0093] The first process animation model data, obtained by setting the first attribute, and the second process animation model data, obtained by setting the second attribute, are processed to obtain the process animation model data with completed attribute settings.

[0094] S204: Process the process animation model data for program release to obtain the target virtual reality animation playback data.

[0095] The process animation model data is published programmatically. This process animation model data is used for virtual reality animation playback. After setting up the animation model corresponding to the development requirements, the obtained model data needs to be able to be executed and played by the animation player. The process animation model data is published programmatically so that it can be executed and played by the animation player. The process animation model data is published programmatically to obtain the target virtual reality animation playback data.

[0096] In another optional embodiment of this application, the process animation model data is inspected before the program is released. Figure 5 A flowchart of a data processing method for virtual animation playback provided in this application is shown below. Figure 5 As shown, the method includes the following steps:

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

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

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

[0100] If the conditions are met, the target virtual reality animation playback data is obtained, where the target virtual reality animation playback data is the process animation model data;

[0101] If the requirements are not met, perform attribute setting operations on the process animation model data until the program release standards are met to obtain the target virtual reality animation playback data.

[0102] For example, the process animation model data is checked to see if the attribute settings corresponding to the program release standard are completed. If completed, the target virtual reality animation playback data is obtained, which is the process animation model data. If not completed, the attribute settings of the process animation model data are reset until the attribute settings corresponding to the program release standard are completed, and the target virtual reality animation playback data is obtained.

[0103] S503: Output the process animation model data that meets the program release standard as the target virtual reality animation playback data.

[0104] S104: Perform animation playback settings processing on the target virtual reality animation playback data to obtain animation playback data.

[0105] Figure 6 A flowchart of a data processing method for virtual animation playback provided in this application is shown below. Figure 6 As shown, the method includes the following steps:

[0106] S601: Obtain animation playback settings requirements data;

[0107] The animation playback settings requirements data are the data of the user's animation playback requirements. The animation playback settings requirements data include global animation control options, such as start / pause / end, global animation speed options, such as 0.5x speed / 0.75x speed / 1x speed / 1.25x speed / 1.5x speed / 2x speed, etc., and preset object animation control options, such as controlling the animation of a single object.

[0108] S602: Identify the target virtual reality animation playback data to obtain multiple animation segment data;

[0109] Each animation segment's data includes animation duration data, keyframe data, and the model data to which the animation belongs;

[0110] S603: Based on the animation playback settings requirements, update the animation duration data, keyframe data, and the model data to which the animation belongs by processing the animation model to obtain the animation playback data.

[0111] Based on the animation playback settings requirements, the animation model is updated using the animation duration data, keyframe data, and the model data to which the animation belongs. For example, if the target virtual reality animation playback data has an animation duration of 60 seconds, includes 3 objects, the current time is t1, there are 24 frames per second, the animation playback settings requirements are to start playback at time t1, pause at time t2, and set the animation speed to 2x. No separate design is performed for the objects in the animation playback data. At time t2, the animation model is updated based on the animation duration data, keyframe data, the model data to which the animation belongs, and the animation playback settings requirements to obtain the model animation data corresponding to time t2.

[0112] In the embodiments of this application, the development requirement data is formatted using glTF to obtain the model data to be loaded. After loading the model data to be loaded, the target virtual reality animation playback data is obtained. By formatting the development requirement data using glTF and then loading and setting the playback of the formatted glTF model file, the amount of data in the virtual reality model animation data is reduced, and the efficiency is improved during model loading and running. This solves the problem of low efficiency in virtual reality animation playback in the prior art and achieves the technical effect of improving the efficiency of virtual reality animation program loading and running.

[0113] Figure 7 A schematic diagram of a data processing device for virtual reality animation playback provided in this application is shown below. Figure 7 As shown, the device includes:

[0114] The data acquisition module 71 is used to acquire development requirement data, wherein the development requirement data is data representing the development requirements for virtual reality animation playback;

[0115] The GLTF formatting module 72 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.

[0116] Model loading module 73 is used to perform animation loading operations on the model data to be loaded, obtaining target virtual reality animation playback data, wherein the target virtual reality animation playback data is the data after the animation loading is complete; and

[0117] The playback module 74 is used to process the target virtual reality animation playback data to obtain the animation playback data.

[0118] Figure 8 A schematic diagram of another data processing device for virtual reality animation playback provided in this application is shown below. Figure 8 As shown, the device includes:

[0119] The format recognition module 81 is used to recognize the data format of the model data to be loaded and obtain format recognition data. The format recognition data is data used to represent the format type of the model file, and the model file is the model file corresponding to the model data to be loaded.

[0120] Initialization module 82 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;

[0121] Attribute setting module 83 is used to process the attributes of the model object data to be loaded, thereby obtaining the animation model data; and

[0122] The program publishing module 84 is used to process the process animation model data to obtain the target virtual reality animation playback data.

[0123] 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.

[0124] In summary, this application formats the acquired data representing virtual reality animation playback development requirements, performs glTF formatting on the development requirement data to obtain model data to be loaded (in glTF format), and then performs animation loading on the model data to be loaded to obtain target virtual reality animation playback data. Finally, it performs animation playback settings processing on the target virtual reality animation playback data to obtain animation playback data. By formatting the development requirement data using glTF and then loading and setting the playback of the formatted glTF model file, the data volume of the virtual reality model animation data file is reduced, improving efficiency during model loading and execution. This solves the problem of low efficiency in existing virtual reality animation playback technologies and achieves the technical effect of improving the efficiency of virtual reality animation program loading and execution.

[0125] 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.

[0126] 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.

[0127] 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 animation playback, characterized in that, include: Acquire development requirement data, wherein the development requirement data is data used to represent the development requirements for virtual reality animation playback; The development requirement data is formatted using glTF to obtain the model data to be loaded, wherein the model data to be loaded is model data in glTF format; The programming file data in the first format of the development requirements data is converted to glTF format to obtain programming file data in glTF format. The programming file data in the first format is non-glTF format programming file data. An animation loading operation is performed on the model data to be loaded to obtain target virtual reality animation playback data, wherein the target virtual reality animation playback data is the data after the animation loading is completed; The process involves identifying development requirement data to obtain program release standard data. This release standard data corresponds to the development requirement data. The release standard data includes animation attribute data and physical attribute settings, used to determine whether the process animation model data meets the animation playback requirements. The process animation model data is then checked to determine if it meets the program release standards corresponding to the release standard data. If it does, the target virtual reality animation playback data is obtained, which is the process animation model data. If it does not meet the requirements, attribute settings are applied to the process animation model data until the program release standards are met, resulting in the target virtual reality animation playback data. 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, and the model file is the model file corresponding to the model data to be loaded; the model data to be loaded is initialized according to the format identification data to obtain model object data to be loaded; the model object data to be loaded is processed by setting attributes to obtain process animation model data; and the process animation model data is processed by program publishing to obtain the target virtual reality animation playback data; The target virtual reality animation playback data is processed with animation playback settings to obtain animation playback data.

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 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; Based on the animation attribute requirement data, the animation attributes of the model object to be loaded are set to obtain the first process animation model data.

3. The data processing method according to claim 1 or 2, characterized in that, The attribute setting process for the model object data 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 first model object to be loaded. Match the attribute setting interface with the attributes of the first object to be loaded, and perform attribute setting operations on the first model object to be loaded through the attribute setting interface to obtain the second process animation model data; and The process animation model data is obtained by combining the first process animation model data and the second process animation model data.

4. The data processing method according to claim 1, characterized in that, The process of publishing the animation model data includes: The development requirement data is identified to obtain the program release standard data; The process animation model data is inspected 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 animation playback data is obtained, wherein the target virtual reality animation playback data is the process animation model data; If the conditions are not met, attribute settings are performed on the process animation model data until the program release standard is met, and the target virtual reality animation playback data is obtained.

5. The data processing method according to claim 1, characterized in that, The animation playback settings processing for the target virtual reality animation playback data includes: Obtain animation playback settings requirement data, wherein the animation playback settings requirement data is data on the user's animation playback requirements; The target virtual reality animation playback data is identified to obtain multiple animation segment data, wherein each animation segment data includes animation duration data, keyframe data, and model data to which the animation belongs; and Based on the animation playback setting requirements data, the animation duration data, keyframe data, and animation model data are updated to obtain the animation playback data.

6. A data processing device for playing virtual reality animations, characterized in that, include: The data acquisition module is used to acquire development requirement data, wherein the development requirement data is data representing the development requirements for virtual reality animation playback; 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; The model loading module is used to perform animation loading operations on the model data to be loaded to obtain target virtual reality animation playback data, wherein the target virtual reality animation playback data is the data after the animation loading is completed; The process involves identifying development requirement data to obtain program release standard data. This release standard data corresponds to the development requirement data. The release standard data includes animation attribute data and physical attribute settings, used to determine whether the process animation model data meets the animation playback requirements. The process animation model data is then checked to determine if it meets the program release standards corresponding to the release standard data. If it does, the target virtual reality animation playback data is obtained, which is the process animation model data. If it does not meet the requirements, attribute settings are applied to the process animation model data until the program release standards are met, resulting in the target virtual reality animation playback data. 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, and the model file is the model file corresponding to the model data to be loaded; an initialization module for initializing the model data to be loaded according to the format recognition data, obtaining model object data to be loaded; an attribute setting module for performing attribute setting processing on the model object data to be loaded, obtaining process animation model data; and a program publishing module for performing program publishing processing on the process animation model data, obtaining the target virtual reality animation playback data. The playback module is used to process the target virtual reality animation playback data to obtain animation playback data.

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 playing virtual reality animation 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, 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 animation playback 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