Model animation resource checking method and device, computer device, and storage medium
By automatically traversing the file directory of software engineering, locating and traversing animation data files, and obtaining sound effect attachment information, the problem of low efficiency in model animation resource inspection is solved, and automated full-volume inspection and sound effect management are realized.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2023-08-22
- Publication Date
- 2026-07-24
AI Technical Summary
Existing technologies for checking model animation resources are inefficient, requiring manual opening of the animation editor to check the attachment information one by one, resulting in low efficiency.
By traversing the file directory of the preset software project, the system automatically locates the animation data file path of the virtual model, performs automatic traversal, obtains sound effect attachment information, and generates model animation resource inspection results.
It has achieved automated full-scale inspection of model animation resources, improving inspection and organization efficiency, supporting rapid location of sound effect errors and sound effect management, and improving the quality of sound effect performance.
Smart Images

Figure CN117093546B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of software development technology, and more specifically, to a method, apparatus, computer device, and storage medium for checking model animation resources. Background Technology
[0002] In the process of software engineering development, in order to facilitate the management and production of sound effect resources, it is usually necessary to perform resource checks on the sound effect files in the software engineering project files.
[0003] For software applications involving virtual models, to ensure the performance of model animations and special effects resources, the hooking information in the animation data files of the virtual models needs to be specifically checked during the resource inspection process. However, with current technology, this can only be done manually by opening the animation editor in the application development engine of the software project, opening each model animation file of the software project one by one, checking its sound effect hooking information, and manually organizing it to obtain the inspection results of the model animation resources.
[0004] However, manually opening the animation editor to check the attachment information results in low efficiency in checking and organizing the attachment information. Summary of the Invention
[0005] In view of this, embodiments of this application provide a method, apparatus, computer device, and storage medium for inspecting model animation resources, so as to improve the efficiency of inspecting and organizing model animation resources.
[0006] In a first aspect, embodiments of this application provide a method for checking model animation resources, including:
[0007] The file directory of the preset software project is traversed to obtain the path of the animation data file of each virtual model in the preset software project, as well as the information of each virtual model;
[0008] Based on the path of the animation data file of each virtual model, the data files of each animation under each virtual model are traversed to obtain the resource prompt information of each target animation in each virtual model;
[0009] Based on the resource prompts for each target animation, obtain the sound effect attachment information for each target animation;
[0010] Based on the sound effect attachment information of each target animation and the information of each virtual model, the model animation resource inspection results of the preset software project are generated.
[0011] Secondly, embodiments of this application also provide a model animation resource inspection device, including:
[0012] The first traversal module is used to traverse the file directory of the preset software project to obtain the path of the animation data file for each virtual model in the preset software project, as well as the information of each virtual model.
[0013] The second traversal module is used to traverse the data files of each animation under each virtual model according to the path of the animation data files of each virtual model, so as to obtain the resource prompt information of each target animation in each virtual model.
[0014] The acquisition module is used to acquire the sound effect attachment information of each target animation based on the resource prompt information of each target animation;
[0015] The generation module is used to generate the model animation resource inspection results of the preset software project based on the sound effect attachment information of each target animation and the information of each virtual model.
[0016] Thirdly, embodiments of this application also provide a computer device, including: a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the computer device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of a model animation resource inspection method as described in any one of the first aspects.
[0017] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, performs the steps of a model animation resource inspection method as described in any one of the first aspects.
[0018] The model animation resource inspection method, apparatus, computer equipment, and storage medium provided in this application embodiment can obtain the path of the animation data file of each virtual model in the preset software project and the information of each virtual model by traversing the file directory of the preset software project. Based on the path of the animation data file of each virtual model, the data file of each animation under each virtual model is traversed to obtain the resource prompt information of each target animation in each virtual model. Based on the resource prompt information of each target animation, the sound effect attachment information of each target animation is obtained. Then, based on the sound effect attachment information of each target animation and the information of each virtual model, the model animation resource inspection result of the preset software project is generated. The method in this embodiment can locate the animation data files of each virtual model by automatically traversing the file directory, obtaining the path of the animation data files of each virtual model and the information of each virtual model. It can also automatically traverse the data files of each animation under each virtual model based on the located animation data file paths of each virtual model, obtain the resource indication information of each target animation in each virtual model, and obtain the sound effect attachment information of each target animation based on the resource indication information of each target animation. It realizes the automatic parsing and reading of the sound effect attachment information. It can also generate the model animation resource inspection results of the preset software project based on the read sound effect attachment information of each target animation and the information of each virtual model. It realizes the automated full-volume inspection of the animation sound effect resources of each virtual model in the preset software project, which greatly improves the efficiency of inspection and organization of model animation resources and realizes effective sound effect management for the preset software project.
[0019] To make the above-mentioned objectives, features and advantages of this application more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of this application and should not be regarded as a limitation of the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0021] Figure 1 A flowchart illustrating a method for checking model animation resources provided in an embodiment of this application;
[0022] Figure 2 A schematic diagram of a file directory structure provided in an embodiment of this application;
[0023] Figure 3 A structural diagram of an animation data file provided in an embodiment of this application;
[0024] Figure 4 A flowchart illustrating a method for reading animation sound effect attachment information provided in this application embodiment;
[0025] Figure 5 This is a schematic diagram of the structure of resource indication information provided in an embodiment of this application;
[0026] Figure 6 A flowchart illustrating a method for generating model animation resource inspection results provided in this application embodiment;
[0027] Figure 7 This is a schematic diagram of the structure of a model animation resource inspection device provided in an embodiment of this application;
[0028] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0029] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0030] The model animation resource inspection method in one embodiment of this disclosure can be applied in the development process of a preset software project to automatically inspect animation-related resources in each virtual model of the preset software project, thereby generating the model animation resource inspection results of the preset software project. The preset software project can be, for example, a software project involving virtual models, such as a game software project, and the animation-related resources can be, for example, sound effect resources called during the animation playback of the virtual model.
[0031] Taking game software engineering as an example, the animation of the virtual model involved can be composed of continuous multi-frame animations. Within the multi-frame animation of a virtual model, there may be corresponding resource indication information, such as Cue information, added to the data file of a particular frame. Taking a virtual biological model, such as a virtual character model, as an example, its multi-frame animation may include, for example, multi-frame skeletal animation.
[0032] Therefore, during the execution of the virtual model's data file, when the animation frame is reached, the corresponding resources can be invoked by calling the resource hint information in the animation's data file. This allows for the access to relevant resources during the animation's playback, such as playing corresponding sound effects. Thus, to ensure the associated access of model animation and sound effect resources during the execution of the preset software project's data file and to guarantee the performance of the animation and sound effects, it is necessary to check the model animation resources. The methods provided in the following embodiments of this application are model resource checking methods proposed to address this need.
[0033] To automate the inspection of model animation resources in a pre-defined software project, this application provides a model animation resource inspection tool for a pre-defined software development engine. This tool can be integrated and run on a computer device. The solution provided in this application eliminates the need to manually open the pre-defined software development engine (such as a game development engine) or its animation editor. Simply running the model animation resource inspection tool automatically performs animation resource inspections on each virtual model in the pre-defined software project developed using that engine, and exports the inspection results for use by developers of the relevant resources, such as sound designers.
[0034] The following will continue to explain and illustrate the model animation resource inspection method provided in the embodiments of this application through multiple examples and accompanying drawings.
[0035] Figure 1 This is a flowchart illustrating a model animation resource inspection method provided in an embodiment of this application. The model animation resource inspection method provided in the following embodiments of this application can be implemented by a computer device integrated with a model animation resource inspection tool, by running the model animation resource inspection tool. Figure 1 As shown, methods for checking model animation resources may include:
[0036] S101. Traverse the file directory of the preset software project to obtain the path of the animation data file of each virtual model in the preset software project, as well as the information of each virtual model.
[0037] In one possible implementation, the file directory for the preset software project can be obtained from the path of the input file directory for the preset software project. This file directory path can be entered, for example, through the operation page of the model animation resource inspection tool, or through a preset format file containing the path to that file directory.
[0038] This file directory records the storage paths of all data files in the preset software project, as well as the names of each data file. Therefore, by traversing the file directory, the paths of the animation data files for each virtual model can be located, and the information of the virtual model can be determined based on the name of the model folder containing the animation data files. In this embodiment, the information of the virtual model may include at least: the file path of the virtual model, and / or the identification information of the virtual model. The identification information of the virtual model may include, for example, the virtual model's number and / or name.
[0039] In one possible implementation example, after obtaining the file directory, the file directory of the software project can be traversed based on the file naming rules of the software development engine corresponding to the preset software project and the preset file directory structure to obtain the path of the animation data file of each virtual model and the information of each virtual model.
[0040] File naming conventions define the naming rules for each data file within a file directory. A default file directory structure can be, for example, a hierarchical relationship between the data files. For instance, using a game development engine as the default software development engine, the file directory structure could be a tree-like structure, and the file naming convention could be: the name of the data file represents its corresponding content. Figure 2 This is a schematic diagram of a file directory structure provided in an embodiment of this application. The file directory structure of a preset software project can be, for example, as follows: Figure 2 The tree structure shown, taking the master folder of a pre-defined software project model as an example, can include the names of multiple model folders, each containing corresponding data files. In this embodiment, the names of each model folder can, for example, be the ID information of the corresponding virtual model.
[0041] Each model folder's data file can record at least the path to the animation data file of the corresponding virtual model. Of course, the information recorded in the data file of each model folder is not limited to the path to the animation data file, but can also record other information about the virtual model, etc. This application embodiment does not limit this.
[0042] S102. Based on the path of the animation data file of each virtual model, traverse the data files of each animation under each virtual model to obtain the resource prompt information of each target animation in each virtual model.
[0043] Under the path containing the animation data files of each virtual model, the animation data files under that path can be read to traverse all the animation data files related to that virtual model. Among all the animations of the virtual model, some animations may have resource cue information, while others may not. Therefore, in this embodiment, by traversing the data files of each animation under the virtual model, the animations with resource cue information are identified as target animations, and the resource cue information of the target animations is read from them.
[0044] In one possible implementation, the data files of each animation under each virtual model can be traversed according to the path of the animation data file of each virtual model and the preset data structure of the animation data file, so as to obtain the resource prompt information of each target animation in each virtual model. Figure 3 This is a structural diagram of an animation data file provided in an embodiment of this application.
[0045] The animation data file of the virtual model can be Figure 3 The tree structure shown contains multiple animation data files under the virtual model in the root directory of the animation data files. Each animation data file may contain resource indication information, i.e., Cue information, corresponding to that animation.
[0046] S103. Obtain the sound effect attachment information for each target animation based on the resource instruction information of each target animation.
[0047] For a target animation with resource indication information, the resource indication information may contain attachment information for various resource types for the target animation. In the specific implementation of the steps, the sound effect attachment information can be generated based on the resource indication information of the target animation and the information of each target animation, such as the name information of the target animation. The sound effect attachment information is the information related to the sound effect resources attached to the target animation.
[0048] S104. Based on the sound effect attachment information of each target animation and the information of each virtual model, generate the model animation resource check results of the preset software engineering.
[0049] In a possible implementation example, if the model animation resource inspection result can be generated based on the sound effect attachment information of each target animation and the information of each virtual model, the model animation resource inspection result can also be exported to provide to the sound effect designer. This allows the sound effect designer to quickly iterate on the model attachment sound effects of the preset software project based on the model animation resource inspection result, so as to obtain better sound effect performance. At the same time, it can also facilitate the sound effect designer to quickly reuse existing sound effects and improve the efficiency of sound effect production.
[0050] The method provided in this application embodiment can obtain the path of the animation data file of each virtual model in the preset software project and the information of each virtual model by traversing the file directory of the preset software project. Based on the path of the animation data file of each virtual model, the data file of each animation under each virtual model is traversed to obtain the resource prompt information of each target animation in each virtual model. Based on the resource prompt information of each target animation, the sound effect attachment information of each target animation is obtained. Then, based on the sound effect attachment information of each target animation and the information of each virtual model, the model animation resource check result of the preset software project is generated. The method in this embodiment can locate the animation data files of each virtual model by automatically traversing the file directory, obtaining the path of the animation data files of each virtual model and the information of each virtual model. It can also automatically traverse the data files of each animation under each virtual model based on the located animation data file paths of each virtual model, obtain the resource indication information of each target animation in each virtual model, and obtain the sound effect attachment information of each target animation based on the resource indication information of each target animation. It realizes the automatic parsing and reading of the sound effect attachment information. It can also generate the model animation resource inspection results of the preset software project based on the read sound effect attachment information of each target animation and the information of each virtual model. It realizes the automated full-volume inspection of the animation sound effect resources of each virtual model in the preset software project, which greatly improves the efficiency of inspection and organization of model animation resources and realizes effective sound effect management for the preset software project.
[0051] Secondly, the model animation resource inspection results of the preset software project can also be used to quickly locate sound effect errors (bugs) in each virtual model in the preset software project, and improve the performance quality of sound effects. Sound effect errors can include any type of sound effect error such as missing sound effects, abnormal sound effects, and incorrect sound effects.
[0052] Based on the above embodiments, this application embodiment may also provide a possible implementation method for reading resource prompt information of target animation. Figure 4 A flowchart illustrating a method for reading animation sound effect attachment information provided in this application embodiment is shown below. Figure 4 As shown above, in step S103 of the method, obtaining the sound effect attachment information for each target animation based on the resource indication information of each target animation may include:
[0053] S401. Parse the resource prompts for each target animation to obtain the resource type information and animation resource information for each target animation.
[0054] In a specific implementation, the resource indication information of each target animation can be parsed to obtain the data content stored in that information, including resource type information such as the Cue type and animation resource information. The resource type information indicates the types of resources attached to that target animation, such as sound effects, display effects, or other animation-related resources. The animation resource information can be any information other than the resource type information in the resource indication information.
[0055] S402. Based on the resource type information, read the sound effect attachment parameters of each target animation from the animation resource information of each target animation.
[0056] Since the resources attached to an animation may be sound effects or display effects, in a possible implementation example, it can be determined whether the resources attached to each target animation are sound effects based on the resource type information. If they are sound effects, the sound effect attachment parameters of each target animation can be read from the animation resource information of each target animation.
[0057] In one possible implementation, if the resource type information is information about the sound effect resource type, then the sound effect path and the animation frame information where the sound effect is located are read from the animation resource information of each target animation; the sound effect attachment parameters of each target animation include: sound effect path and the animation frame information where the sound effect is located.
[0058] If the resource type information is for sound effects, then it can be determined that the resource attached to the target animation is a sound effect resource. Therefore, the animation resource information under the target animation can be further read to obtain the sound effect path and the animation frame information where the sound effect is located. The sound effect path can be, for example, a sound effect event path such as an FMOD Event path, or it can also be called the path of the sound effect resource. The animation frame information where the sound effect is located can be represented as the frame where the cue is located. It should be noted that the sound effect attachment parameters may also include other sound effect-related parameters, such as sound effect playback parameters. These sound effect playback parameters can be indicators of the sound effect playback mode, used to indicate whether the sound effect loops.
[0059] Conversely, if the resource type information is information about display effects resources, then it can be determined that the resource attached to the target animation is a display effects resource. Therefore, it is not necessary to continue reading the animation resource information of the current target animation and continue to parse the resource indication information of the next target animation.
[0060] S403. Generate sound effect attachment information for each target animation based on its name and sound effect attachment parameters.
[0061] The name of each target animation is the name of the parent animation where the resource indicator information is located, which is also the name of the parent animation of the Cue. Given the sound effect attachment parameters, sound effect attachment information for each target animation can be generated based on its name and the sound effect attachment parameters. In other words, the generated sound effect attachment parameters can include at least: the name of the target animation and the sound effect attachment parameters, such as the sound effect path and the animation frame information where the sound effect is located.
[0062] The following explanation will use the data structure of the animation data file as an example. Figure 5 This is a schematic diagram illustrating the structure of resource indication information provided in an embodiment of this application. The data structure of the resource indication information cue under animation can be... Figure 5 The tree structure shown includes the following information in the resource indication: the animation frame where the sound effect is located, the resource type, the sound effect path, and the sound effect playback parameters. The animation frame where the sound effect is located is the frame where the Cue is located, the resource type is the Cue type, the sound effect path is the path of the sound effect event, and the sound effect playback parameters can be used to indicate whether the sound effect loops.
[0063] If the resource type information is audio resource type, the audio attachment parameters, including the animation frame information where the audio effect is located and the audio effect path, can be obtained by parsing the resource indication information. Based on the audio attachment parameters and the name of the target animation, the audio attachment information of the target animation can be generated.
[0064] In the method provided in this application embodiment, resource type information and animation resource information are obtained by parsing resource indication information. Based on the resource type information, sound effect attachment parameters are read from the animation resource information. Then, combined with the name of the target animation, the sound effect attachment information of the target animation is generated, thereby realizing the rapid and accurate extraction of the sound effect attachment information of the target animation, which greatly improves the efficiency of checking and organizing model animation resources.
[0065] Based on the methods provided in any of the above embodiments, this application embodiment may also provide a possible implementation of generating model animation resource inspection results. Figure 6 A flowchart illustrating a method for generating model animation resource inspection results provided in this application embodiment is shown below. Figure 6 As shown above, in S104, based on the sound effect attachment information of each target animation and the information of each virtual model, the model animation resource check result of the preset software project is generated, which may include:
[0066] S601. Based on the sound effect attachment information of each target animation and the information of each virtual model, generate the mapping relationship between each virtual model and the animation sound effect attachment information.
[0067] One possible implementation is to match the audio effect attachment information of each target animation with the information of each virtual model, thereby generating a mapping relationship between each virtual model and the audio effect attachment information of the animation.
[0068] For a given virtual model, this step generates a set of mapping relationships for the connection information of each target animation and sound effect within that virtual model. Each mapping relationship contains a correspondence between a target animation and a sound effect. Thus, for a given software project, at least one mapping relationship can be obtained, corresponding to at least one virtual model.
[0069] S602. Export the mapping relationship to a table file in a preset format to generate a model animation resource check table for a preset software project.
[0070] Once the mapping relationships for each virtual model are obtained, each mapping relationship can be filled into a pre-formatted table file to generate a model animation resource check table.
[0071] The following example illustrates the format of a table. Table 1 below shows an example of a table file format.
[0072]
[0073] Taking the information of the virtual model, including the file path and number of the virtual model, and the information of the sound effect attachment, including the name of the target animation, the animation frame information where the sound effect is located, and the sound effect path, as an example, the file path of the virtual model, the number of the virtual model, the name of the target animation, the animation frame information where the sound effect is located, and the sound effect path of the virtual model in the mapping relationship can be filled into the corresponding data items in the table file to generate the model animation resource check table.
[0074] The method provided in this embodiment can generate a mapping relationship between virtual models and animation sound effect attachment information based on the sound effect attachment information of each target animation and the information of each virtual model. This achieves automatic generation of the mapping relationship and exports the mapping relationship to a preset format table file to generate a model animation resource check table. This enables the organization and export of model animation resource checks, which facilitates sound effect designers to quickly iterate on the model attachment sound effects of the preset software project based on the model animation resource check table to obtain better sound effect performance. At the same time, it also allows sound effect designers to quickly reuse existing sound effects and improve sound effect production efficiency.
[0075] The following describes the model animation resource inspection apparatus, equipment, and storage medium provided in this application used for execution. The specific implementation process and technical effects are described above and will not be repeated below.
[0076] Figure 7This is a schematic diagram of the structure of a model animation resource inspection device provided in an embodiment of this application, as shown below. Figure 7 As shown, the model animation resource inspection device 700 may include:
[0077] The first traversal module 701 is used to traverse the file directory of the preset software project to obtain the path of the animation data file for each virtual model in the preset software project, as well as the information of each virtual model.
[0078] The second traversal module 702 is used to traverse the data files of each animation under each virtual model according to the path of the animation data files of each virtual model, and obtain the resource prompt information of each target animation in each virtual model.
[0079] The acquisition module 703 is used to acquire the sound effect attachment information of each target animation based on the resource prompt information of each target animation;
[0080] The generation module 704 is used to generate the model animation resource inspection results of the preset software project based on the sound effect attachment information of each target animation and the information of each virtual model.
[0081] The model animation resource inspection device provided in this embodiment can locate the animation data files of each virtual model by automatically traversing the file directory, obtaining the path of the animation data files of each virtual model and the information of each virtual model. It can also automatically traverse the data files of each animation under each virtual model based on the located animation data file paths of each virtual model, obtain the resource indication information of each target animation in each virtual model, and obtain the sound effect attachment information of each target animation based on the resource indication information of each target animation. It realizes the automatic parsing and reading of the sound effect attachment information. It can also generate the model animation resource inspection results of the preset software project based on the read sound effect attachment information of each target animation and the information of each virtual model. It realizes the automated full-volume inspection of the animation sound effect resources of each virtual model in the preset software project, which greatly improves the efficiency of model animation resource inspection and organization, and realizes effective sound effect management for the preset software project.
[0082] In a feasible implementation, the first traversal module 701 is specifically used to: traverse the file directory of the software project according to the preset file naming rules and preset file directory structure corresponding to the preset software project, and obtain the path of the animation data file of each virtual model and the information of each virtual model.
[0083] In a feasible implementation, the acquisition module 703 is specifically used to: parse the resource prompt information of each target animation to obtain the resource type information and animation resource information of each target animation; read the sound effect attachment parameters of each target animation from the animation resource information of each target animation according to the resource type information; and generate the sound effect attachment information of each target animation according to the name and sound effect attachment parameters of each target animation.
[0084] In a feasible implementation, the acquisition module 703 is specifically used to: if the resource type information is information of the sound effect resource type, read the sound effect path and the animation frame information where the sound effect is located from the animation resource information of each target animation, and the sound effect attachment parameters include: the sound effect path and the animation frame information where the sound effect is located.
[0085] In one feasible implementation, the sound effect attachment parameters also include: sound effect playback parameters, which are used to indicate whether the sound effect is looped.
[0086] In one feasible implementation, the information for each virtual model includes: the file path of each virtual model, and / or the identification information of each virtual model.
[0087] In one feasible implementation, the generation module 704 is specifically used to: generate a mapping relationship between each virtual model and the animation sound effect attachment information based on the sound effect attachment information of each target animation and the information of each virtual model; export the mapping relationship to a table file of a preset format to generate a model animation resource check table for a preset software project.
[0088] Figure 8 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application, such as... Figure 8 As shown, the computer device includes a processor 801, a storage medium 802, and a bus 803. The storage medium 802 stores machine-readable instructions executable by the processor 801. When the computer device runs a model animation resource inspection method as described in the embodiment, the processor 801 communicates with the storage medium 802 via the bus 803. The processor 801 executes the machine-readable instructions. The preamble of the method item of the processor 801 performs the following steps:
[0089] The file directory of the preset software project is traversed to obtain the path of the animation data file of each virtual model in the preset software project, as well as the information of each virtual model;
[0090] Based on the path of the animation data file of each virtual model, the data files of each animation under each virtual model are traversed to obtain the resource prompt information of each target animation in each virtual model;
[0091] Based on the resource prompts for each target animation, obtain the sound effect attachment information for each target animation;
[0092] Based on the sound effect attachment information of each target animation and the information of each virtual model, the model animation resource inspection results of the preset software engineering are generated.
[0093] In one feasible implementation, when the processor 801 traverses the file directory of a preset software project to obtain the paths to the animation data files of each virtual model in the preset software project, as well as the information of each virtual model, it is specifically used for:
[0094] Based on the preset file naming rules and preset file directory structure corresponding to the preset software project, the file directory of the software project is traversed to obtain the path of the animation data file of each virtual model and the information of each virtual model.
[0095] In one feasible implementation, when the processor 801 executes the process of obtaining the sound effect attachment information of each target animation based on the resource hint information of each target animation, it is specifically used for:
[0096] The resource prompts for each target animation are parsed to obtain the resource type information and animation resource information for each target animation. Based on the resource type information, the sound effect attachment parameters for each target animation are read from the animation resource information of each target animation. Based on the name and sound effect attachment parameters of each target animation, the sound effect attachment information for each target animation is generated.
[0097] In one feasible implementation, when the processor 801 reads the sound effect attachment parameters of each target animation from the animation resource information of each target animation according to the resource type information, it is specifically used for:
[0098] If the resource type information is audio resource type information, then read the audio path and the animation frame information where the audio effect is located from the animation resource information of each target animation. The audio effect attachment parameters include: audio path and the animation frame information where the audio effect is located.
[0099] In one feasible implementation, the sound effect attachment parameters also include: sound effect playback parameters, which are used to indicate whether the sound effect is looped.
[0100] In one feasible implementation, the information for each virtual model includes: the file path of each virtual model, and / or the identification information of each virtual model.
[0101] In one feasible implementation, when the processor 801 generates the model animation resource check results of a preset software engineering based on the sound effect attachment information of each target animation and the information of each virtual model, it is specifically used for:
[0102] Based on the sound effect attachment information of each target animation and the information of each virtual model, a mapping relationship between each virtual model and the animation sound effect attachment information is generated;
[0103] Export the mapping relationships to a table file in a preset format to generate a model animation resource check table for a preset software project.
[0104] By employing the above method, the animation data files of each virtual model can be located through automatic traversal of the file directory, obtaining the paths of the animation data files of each virtual model and the information of each virtual model. Furthermore, by combining the located paths of the animation data files of each virtual model, the data files of each animation under each virtual model can be automatically traversed to obtain the resource indication information of each target animation in each virtual model. Based on the resource indication information of each target animation, the sound effect attachment information of each target animation can be obtained, realizing the automatic parsing and reading of the sound effect attachment information. Moreover, based on the read sound effect attachment information of each target animation and the information of each virtual model, the model animation resource inspection results of the preset software project can be generated. This achieves automated full-volume inspection of the animation and sound effect resources of each virtual model in the preset software project, greatly improving the efficiency of model animation resource inspection and organization, and realizing effective sound effect management for the preset software project.
[0105] This application embodiment also provides a computer-readable storage medium storing a computer program, which is executed by a processor, wherein the processor performs the following steps:
[0106] The file directory of the preset software project is traversed to obtain the path of the animation data file of each virtual model in the preset software project, as well as the information of each virtual model;
[0107] Based on the path of the animation data file of each virtual model, the data files of each animation under each virtual model are traversed to obtain the resource prompt information of each target animation in each virtual model;
[0108] Based on the resource prompts for each target animation, obtain the sound effect attachment information for each target animation;
[0109] Based on the sound effect attachment information of each target animation and the information of each virtual model, the model animation resource inspection results of the preset software engineering are generated.
[0110] In one feasible implementation, when the processor traverses the file directory of a preset software project to obtain the paths to the animation data files of each virtual model in the preset software project, as well as the information of each virtual model, it is specifically used for:
[0111] Based on the preset file naming rules and preset file directory structure corresponding to the preset software project, the file directory of the software project is traversed to obtain the path of the animation data file of each virtual model and the information of each virtual model.
[0112] In one feasible implementation, when the processor obtains the sound effect attachment information for each target animation based on the resource hint information for each target animation, it is specifically used for:
[0113] The resource prompts for each target animation are parsed to obtain the resource type information and animation resource information for each target animation. Based on the resource type information, the sound effect attachment parameters for each target animation are read from the animation resource information of each target animation. Based on the name and sound effect attachment parameters of each target animation, the sound effect attachment information for each target animation is generated.
[0114] In one feasible implementation, when the processor reads the sound effect attachment parameters of each target animation from the animation resource information of each target animation according to the resource type information, it is specifically used for:
[0115] If the resource type information is audio resource type information, then read the audio path and the animation frame information where the audio effect is located from the animation resource information of each target animation. The audio effect attachment parameters include: audio path and the animation frame information where the audio effect is located.
[0116] In one feasible implementation, the sound effect attachment parameters also include: sound effect playback parameters, which are used to indicate whether the sound effect is looped.
[0117] In one feasible implementation, the information for each virtual model includes: the file path of each virtual model, and / or the identification information of each virtual model.
[0118] In one feasible implementation, when the processor generates model animation resource check results for a preset software engineering based on the sound effect attachment information of each target animation and the information of each virtual model, it is specifically used for:
[0119] Based on the sound effect attachment information of each target animation and the information of each virtual model, a mapping relationship between each virtual model and the animation sound effect attachment information is generated;
[0120] Export the mapping relationships to a table file in a preset format to generate a model animation resource check table for a preset software project.
[0121] By employing the above method, the animation data files of each virtual model can be located through automatic traversal of the file directory, obtaining the paths of the animation data files of each virtual model and the information of each virtual model. Furthermore, by combining the located paths of the animation data files of each virtual model, the data files of each animation under each virtual model can be automatically traversed to obtain the resource indication information of each target animation in each virtual model. Based on the resource indication information of each target animation, the sound effect attachment information of each target animation can be obtained, achieving automatic parsing and reading of the sound effect attachment information. Moreover, based on the read sound effect attachment information of each target animation and the information of each virtual model, the model animation resource inspection results of the preset software project can be generated. This achieves automated full-volume inspection of the animation and sound effect resources of each virtual model in the preset software project, greatly improving the efficiency of model animation resource inspection and organization, and realizing effective sound effect management for the preset software project.
[0122] In this embodiment, the computer program, when run by the processor, can also execute other machine-readable instructions to perform other methods as described in the embodiments. For details on the specific execution steps and principles, please refer to the description of the embodiments, which will not be repeated here.
[0123] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Furthermore, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Additionally, the displayed or discussed mutual couplings, direct couplings, or communication connections may be through some communication interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms.
[0124] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0125] In addition, the functional units in the embodiments provided in this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0126] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0127] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.
[0128] Finally, it should be noted that the above-described embodiments are merely specific implementations of this application, used to illustrate the technical solutions of this application, and not to limit them. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments, or make equivalent substitutions for some of the technical features, within the scope of the technology disclosed in this application; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be determined by the protection scope of the claims.
Claims
1. A method for inspecting model animation resources, characterized in that, include: The file directory of the preset software project is traversed to obtain the path of the animation data file of each virtual model in the preset software project, as well as the information of each virtual model; Based on the path of the animation data file of each virtual model, the data files of each animation under each virtual model are traversed to obtain the resource prompt information of each target animation in each virtual model; Based on the resource prompts for each target animation, obtain the sound effect attachment information for each target animation; Based on the sound effect attachment information of each target animation and the information of each virtual model, the model animation resource inspection result of the preset software project is generated; The step of obtaining the sound effect attachment information for each target animation based on the resource prompt information of each target animation includes: The resource hints information of each target animation are parsed to obtain the resource type information and animation resource information of each target animation; Based on the resource type information, the sound effect attachment parameters of each target animation are read from the animation resource information of each target animation; Based on the name of each target animation and the sound effect attachment parameters, generate the sound effect attachment information for each target animation; The step of reading the sound effect attachment parameters of each target animation from the animation resource information of each target animation according to the resource type information includes: If the resource type information is information of the sound effect resource type, then the sound effect path and the animation frame information where the sound effect is located are read from the animation resource information of each target animation. The sound effect attachment parameters include: the sound effect path and the animation frame information where the sound effect is located.
2. The method according to claim 1, characterized in that, The step of traversing the file directory of the preset software project to obtain the paths of the animation data files of each virtual model in the preset software project, as well as the information of each virtual model, includes: Based on the preset file naming rules and preset file directory structure corresponding to the preset software project, the file directory of the software project is traversed to obtain the path of the animation data file of each virtual model and the information of each virtual model.
3. The method according to claim 1, characterized in that, The sound effect connection parameters also include: sound effect playback parameters, which are used to indicate whether the sound effect is played in a loop.
4. The method according to claim 1, characterized in that, The information of each virtual model includes: the file path of each virtual model, and / or the identification information of each virtual model.
5. The method according to claim 1, characterized in that, The step of generating the model animation resource check result of the preset software project based on the sound effect attachment information of each target animation and the information of each virtual model includes: Based on the sound effect attachment information of each target animation and the information of each virtual model, a mapping relationship between each virtual model and the animation sound effect attachment information is generated; The mapping relationship is exported to a table file in a preset format to generate a model animation resource check table for the preset software project.
6. A model animation resource inspection device, characterized in that, include: The first traversal module is used to traverse the file directory of the preset software project to obtain the path of the animation data file for each virtual model in the preset software project, as well as the information of each virtual model. The second traversal module is used to traverse the data files of each animation under each virtual model according to the path of the animation data files of each virtual model, and obtain the resource prompt information of each target animation in each virtual model; The acquisition module is used to acquire the sound effect attachment information of each target animation based on the resource prompt information of each target animation; The generation module is used to generate the model animation resource inspection results of the preset software project based on the sound effect attachment information of each target animation and the information of each virtual model. The acquisition module is also used to parse the resource prompt information of each target animation to obtain the resource type information and animation resource information of each target animation; read the sound effect attachment parameters of each target animation from the animation resource information of each target animation according to the resource type information; and generate the sound effect attachment information of each target animation according to the name of each target animation and the sound effect attachment parameters. The acquisition module is further configured to, if the resource type information is information of the sound effect resource type, read the sound effect path and the animation frame information where the sound effect is located from the animation resource information of each target animation, wherein the sound effect attachment parameters include: the sound effect path and the animation frame information where the sound effect is located.
7. A computer device, characterized in that, include: The device includes a processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of a model animation resource inspection method as described in any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, performs the steps of the model animation resource inspection method as described in any one of claims 1 to 5.