Picture resource processing method and device, electronic equipment and storage medium

By obtaining the configuration information of characters and equipment, loading the combined model and generating image resources, the problem of complex and inefficient resource export in 2D games is solved, and fast and efficient resource export and flexible action selection are achieved.

CN120285547APending Publication Date: 2025-07-11NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510361532.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-25
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

The process of generating 2D art resources in the development of 2D games is complicated and inefficient, especially the need for frequent corrections and animation time zeroing operations, resulting in inefficient processing.

Method used

By obtaining the configuration information of the target role and the configuration information of the target equipment, loading the combination model and displaying the resource export interface, responding to the triggering operation of the action logo, generating and storing image resources, supporting custom actions and part exports, and reducing repeated operations.

Benefits of technology

实现了快速批量导出2D美术资源,降低了开发成本,提高了导出效率和灵活性,减少了重复操作次数。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120285547A_ABST
    Figure CN120285547A_ABST
Patent Text Reader

Abstract

The invention provides a picture resource processing method and device, electronic equipment and a storage medium, and relates to the technical field of games. The method comprises the steps of obtaining configuration information of a target role and configuration information of target equipment according to an identifier of the target role and an identifier of the target equipment associated with the target role; loading a target model and displaying a resource export interface according to the configuration information of the target role and the configuration information of the target equipment; in response to a triggering operation on at least one action identifier corresponding to the target model, determining animation data matched with the selected action identifiers; and in response to the export operation, generating and storing picture resources of the target model under the action identifiers according to the animation data. According to the scheme, the model can be quickly loaded based on the configuration information, and the cost of repeatedly assembling equipment is reduced. Through the provided selectable action identifier, the user can quickly export the required picture resources in batches, so that the export operation frequency is reduced, and the development cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of game technologies, and more particularly, to a method, apparatus, electronic device, and storage medium for processing picture resources. Background Art

[0002] In the development of 2D games, there is a large demand for 2D art resources. Therefore, how to quickly generate the required 2D art resources has certain research significance.

[0003] Currently, the method of taking timed screenshots is often used, with the fixed screenshot area being the area of 3D art animation resources. At fixed time intervals, the screen is captured and saved as the corresponding 2D art resources.

[0004] This method requires fixing the position of the rendering frame before each export. Moreover, in order to ensure that the first and last frames of the exported resources can be perfectly matched, additional correction and animation time reset operations are required, and even the startup time of the screenshot software needs to be ensured. The overall operation is relatively complex and the processing efficiency is low. Summary of the Invention

[0005] The purpose of this application is to provide a method, apparatus, electronic device, and storage medium for processing picture resources, so as to improve the export efficiency and export flexibility of picture resources.

[0006] To achieve the above purpose, the technical solutions adopted in the embodiments of this application are as follows:

[0007] In a first aspect, an embodiment of this application provides a method for processing picture resources, including:

[0008] Obtain the configuration information of the target character and the configuration information of the target equipment according to the identifier of the target character and the identifier of the target equipment associated with the target character;

[0009] Load a target model and display a resource export interface according to the configuration information of the target character and the configuration information of the target equipment, where the target model is a combined model obtained by combining the model of the target character and the model of the target equipment; action identifiers are displayed in the resource export interface;

[0010] In response to a trigger operation on at least one action identifier corresponding to the target model, determine the animation data that matches each selected action identifier;

[0011] In response to an export operation, generate and store picture resources of the target model under each action identifier according to each animation data.

[0012] In a second aspect, an embodiment of the present application further provides an image resource processing device, including: an acquisition module, a loading module, a determination module, and a generation module;

[0013] The acquisition module is configured to acquire the configuration information of the target character and the configuration information of the target equipment according to the identifier of the target character and the identifier of the target equipment associated with the target character;

[0014] The loading module is configured to load a target model and display a resource export interface according to the configuration information of the target character and the configuration information of the target equipment, where the target model is a combined model obtained by combining the model of the target character and the model of the target equipment; action identifiers are displayed in the resource export interface;

[0015] The determination module is configured to determine animation data matching the selected action identifiers in response to a trigger operation on at least one action identifier corresponding to the target model;

[0016] The generation module is configured to generate and store image resources of the target model under each action identifier according to each animation data in response to an export operation.

[0017] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to execute the image resource processing method provided in the first aspect.

[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the image resource processing method provided in the first aspect.

[0019] The beneficial effects of the present application are:

[0020] The present application provides a method, an apparatus, an electronic device, and a storage medium for processing picture resources, including: obtaining configuration information of a target character and configuration information of a target equipment according to an identifier of the target character and an identifier of the target equipment associated with the target character; loading a target model and displaying a resource export interface according to the configuration information of the target character and the configuration information of the target equipment; in response to a trigger operation on at least one action identifier corresponding to the target model, determining animation data matching each selected action identifier; and in response to an export operation, generating and storing picture resources of the target model under each action identifier according to the animation data. In this solution, the information of the character and the equipment are stored separately in the form of configuration information, so that the configuration information of the character and the configuration information of the equipment can be quickly obtained through the identifier of the character and the identifier of the equipment, and the required model can be quickly loaded based on the configuration information, reducing the overhead of the user's repeated equipment assembly. By providing optional action identifiers, the user can quickly and batch export the required picture resources, reducing the number of export operations of the user and lowering the development cost.

[0021] In addition, through customizing action identifiers, the user can select and export the picture resources under the custom actions according to the needs, realizing the flexibility of action export. And through part identifiers, the user can export the picture resources of the required parts in the model under the action identifier according to the needs, so that after the animation data of some parts of the model is updated, it is not necessary to export the picture resources of all parts of the model, and only the picture resources of the part where the animation data has been updated need to be exported, reducing the number of repeated exports. Description of the Drawings

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0023] Figure 1 It is a schematic flowchart of a method for processing picture resources provided by an embodiment of the present application;

[0024] Figure 2 It is a schematic diagram of a combined model provided by an embodiment of the present application;

[0025] Figure 3 It is a schematic diagram of a resource export interface provided by an embodiment of the present application;

[0026] Figure 4 It is a schematic flowchart of another method for processing picture resources provided by an embodiment of the present application;

[0027] Figure 5 Schematic diagram of another method for processing picture resources provided by an embodiment of the present application;

[0028] Figure 6 Schematic diagram of another resource export interface provided by an embodiment of the present application;

[0029] Figure 7 Schematic diagram of another resource export interface provided by an embodiment of the present application;

[0030] Figure 8 Schematic diagram of another method for processing picture resources provided by an embodiment of the present application;

[0031] Figure 9 Schematic diagram of another method for processing picture resources provided by an embodiment of the present application;

[0032] Figure 10 Schematic diagram for displaying the storage path of a picture resource provided by an embodiment of the present application;

[0033] Figure 11 Schematic diagram of another method for processing picture resources provided by an embodiment of the present application;

[0034] Figure 12 Schematic diagram of a creation interface for a role configuration file provided by an embodiment of the present application;

[0035] Figure 13 Schematic diagram of a creation interface for an equipment configuration file provided by an embodiment of the present application;

[0036] Figure 14 Schematic diagram of an equipment editing interface provided by an embodiment of the present application;

[0037] Figure 15 Schematic diagram of a picture resource processing device provided by an embodiment of the present application;

[0038] Figure 16 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0039] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the following will clearly and completely describe the technical solutions in the embodiments of this application with reference to the accompanying drawings in the embodiments of this application. It should be understood that the accompanying drawings in this application are only for the purpose of illustration and description, and are not used to limit the protection scope of this application. Additionally, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of this application. It should be understood that the operations in the flowchart may not be implemented in sequence, and steps without a logical context relationship may be reversed or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of this application.

[0040] In addition, the described embodiments are only some of the embodiments of this application, not all of them. The components of the embodiments of this application usually described and illustrated in the accompanying drawings here can 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 this application claimed, but merely represents the selected embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative efforts fall within the protection scope of this application.

[0041] It should be noted that the term "including" will be used in the embodiments of this application to indicate the existence of the features stated thereafter, but does not exclude adding other features.

[0042] First, some related terms that may be involved in the following text will be briefly explained:

[0043] 2D: Two Dimensions, referring to the space composed of two dimensions, length and width.

[0044] 3D: Three Dimensions, referring to the space composed of three dimensions, length, width, and height.

[0045] Png: Portable Network Graphics, a bitmap graphics format that supports lossless compression, and supports three color schemes, index, grayscale, and RGB, as well as special effects such as the Alpha channel.

[0046] Jpeg: Developed by the Joint Photographic Experts Group, it is a widely used lossy compression standard method for picture images.

[0047] API: application program interface, the application programming interface, is a computing interface that defines the interactions between multiple software intermediaries and the types of calls or requests that can be made.

[0048] UI: User Interface, the user interface, is the medium for interaction and information exchange between the system and the user, which realizes the conversion between the internal form of information and the form acceptable to humans.

[0049] For 2D games, their art resources such as character walking, character states, or maps are all rendered as Png or Jpeg graphic files. For map resources, most are hand-drawn by artists and output in the format required by the game. For character actions or equipment resources, if they involve 2D resources related to actions, they are rarely output by hand-drawing. Because when there are unified transformations on some parts of the character, such as adding a texture or reducing an area, the artists need to modify all the picture resources involved in the modification, which greatly increases the time cost. Therefore, more resources are produced through the method of "3D rendering to 2D", that is, the artists build 3D models in 3D rendering software, then make character bone animations through skinning. Under the condition of a fixed camera view, play the actions for a specified time at a fixed time interval (such as 0.03 seconds), and save them as corresponding texture resources by taking screenshots or other means. Therefore, quickly batch exporting multiple action resources can greatly reduce the time cost of the art staff.

[0050] The existing batch export solutions are basically divided into two categories. One is by taking timed screenshots, fixing the screenshot area as the area of the art animation resources, and taking screenshots and saving them as corresponding resources at fixed time intervals. This solution can be completely independent of production tools and has strong versatility; the other is to write a timer script in the corresponding production or rendering software and save the current screen as the corresponding art resources through the renderer API. The versatility of this type of solution is a bit worse.

[0051] The disadvantages of the first export method are relatively obvious. First, the position of the rendering frame needs to be fixed before each export; at the same time, if it is necessary to ensure that the start and end frames of the resources exported each time can be completely matched, additional correction and animation time reset operations need to be done before the export, and it may also be necessary to ensure the startup time of the screenshot software. Therefore, although it is independent of the platform, few projects will use this method to process resources.

[0052] The second solution is more mainstream. However, most current refinement solutions only support exporting single animations or animation frames in a certain orientation. When it comes to exporting multiple action resources, artists still need to switch actions after a certain animation is exported and then repeat the export process. If some special situations are involved, such as separating and outputting the character's weapon and body, the number of operations required will increase exponentially.

[0053] Based on this, the image resource processing method provided by this solution can quickly load models by separately creating configuration information for characters and equipment, thereby reducing the overhead of artists repeatedly assembling equipment; by dividing the model into parts, it is possible to export the image resources of the required parts as needed, with a certain degree of scalability. When new parts or animations appear, it is possible to quickly export image resources without repeated exports; by providing a custom action export function, it is possible to custom-select the actions to be exported, so that after artists iterate and update some animations, there is no need to repeatedly export the image resources of all actions, reducing the number of repeated exports and lowering the development cost.

[0054] Figure 1 It is a schematic flowchart of a method for processing image resources provided by an embodiment of the present application; the execution subject of this method can be a computer device such as a terminal or a server. As Figure 1 shown, the method may include:

[0055] S101. Obtain the configuration information of the target character and the configuration information of the target equipment associated with the target character according to the identifier of the target character and the identifier of the target equipment associated with the target character.

[0056] The target character may refer to the character for which action images need to be exported, and the target equipment associated with the target character may refer to the equipment equipped on the target character. Among them, the equipment in this embodiment is not limited to the weapon equipped for the character, and the clothing worn by the character, the headgear worn by the character, etc. can all be used as equipment.

[0057] Based on the identifier of the target character and the identifier of the target equipment associated with the target character input by the user, the configuration information of the target character and the configuration information of the target equipment can be obtained respectively.

[0058] It should be noted that the equipment associated with a character may include multiple ones, that is, a character can be combined with different equipment.

[0059] Optionally, the configuration information of the target character may include but is not limited to: the number of the target character, the name of the target character, the storage path of the character model of the target character, etc.; the configuration information of the target equipment includes but is not limited to: the number of the target equipment, the name of the target equipment, the assembly point of the target equipment on the target character, and the assembly point can also be understood as the hanging point.

[0060] The configuration information of a character can be queried and obtained by the character's number or name. Similarly, the configuration information of equipment can be queried and obtained by the equipment's number or name.

[0061] S102. Load a target model and display a resource export interface according to the configuration information of the target character and the configuration information of the target equipment.

[0062] The target model is a combined model obtained by combining the model of the target character and the model of the target equipment; optional action identifiers are displayed in the resource export interface.

[0063] Optionally, according to the configuration information of the target character and the configuration information of the target equipment, the model of the target character and the model of the target equipment can be retrieved, and the model of the target character and the model of the target equipment can be assembled with each other to obtain a combined model. Among them, the model of the target character can refer to the model of the body part of the target character.

[0064] Figure 2 This is a schematic diagram of a combined model provided by an embodiment of the present application. Assuming that the target equipment respectively includes a weapon held in the character's hand, clothing worn by the character, and a hair accessory of the character, then, after assembling the weapon, clothing, hair accessory with the body model of the character, a combined model as shown in Figure 2 can be loaded.

[0065] Meanwhile, a resource export interface can also be displayed on the user interface.

[0066] Figure 3 This is a schematic diagram of a resource export interface provided by an embodiment of the present application. As shown in Figure 3 , optional action identifiers can be displayed in the resource export interface. These action identifiers can be pre-configured by the system, and the actions corresponding to these action identifiers can be considered as some actions that each character may need to export. Figure 3 Schematically shows that the optional action identifiers include standing, walking, hitting, attacking, dying, riding standing, riding walking, and magic. Of course, in practical applications, the action identifiers pre-configured by the system are not limited to those shown in Figure 3 , for example, it can also be jumping, running, etc.

[0067] The text in front represents the action identifiers, and the identifiers of the matched animation data are shown in the following list.

[0068] It is worth noting that the "riding standing" action can refer to the character maintaining a standing posture while riding a vehicle, such as riding a horse, riding a motorcycle, etc.

[0069] The "riding and walking" action may refer to making the vehicle move at a slower speed when riding on the vehicle.

[0070] S103. In response to a trigger operation on at least one action identifier corresponding to the target model, determine the animation data that matches each selected action identifier.

[0071] Optionally, the user can select at least one action identifier by triggering an operation on at least one action identifier through the displayed optional action identifiers, so as to determine the animation data matched by the target model under each action identifier according to the selected action identifiers. Among them, the trigger operation can be a click operation on the action identifier, etc.

[0072] Among them, the animation data matched by each target model under each action identifier can be pre-produced. The animation data can be obtained directly by matching the action identifier.

[0073] S104. In response to an export operation, generate and store picture resources of the target model under each action identifier according to each animation data.

[0074] Next, the user can click the export control in the resource export interface to trigger the export of the picture resources, so that picture resources of the target model under each action identifier can be generated respectively according to the matched animation data. Among them, the picture resources can refer to 2D art resources, that is, 2D action pictures corresponding to the target model under different actions are exported through the 3D animation data of the target model under different actions.

[0075] The picture resources of the target model under each action identifier exported can be stored separately, which is convenient for subsequent resource management and use.

[0076] In summary, the picture resource processing method provided in this embodiment includes: obtaining the configuration information of the target character and the configuration information of the target equipment according to the identifier of the target character and the identifier of the target equipment associated with the target character; loading the target model and displaying the resource export interface according to the configuration information of the target character and the configuration information of the target equipment; in response to a trigger operation on at least one action identifier corresponding to the target model, determining the animation data that matches each selected action identifier; in response to an export operation, generating and storing picture resources of the target model under each action identifier according to each animation data. This solution stores the information of the character and the equipment separately in the form of configuration information, so that the configuration information of the character and the configuration information of the equipment can be quickly obtained through the identifier of the character and the identifier of the equipment, and the required model can be quickly loaded based on the configuration information, reducing the overhead of the user's repeated equipment assembly. By providing optional action identifiers, the user can quickly and batch export the required picture resources, reducing the number of export operations of the user and lowering the development cost.

[0077] Figure 4 It is a schematic flowchart of another method for processing picture resources provided by an embodiment of the present application; optionally, in step S102, loading the target model according to the configuration information of the target role and the configuration information of the target equipment may include:

[0078] S201. Determine the storage path of the model of the target role according to the configuration information of the target role.

[0079] The configuration information of the target role includes the storage path of the model of the target role, so that the storage path of the model of the target role can be directly determined from the configuration information of the target role. Here, the model of the target role may refer to the body model of the target role, that is, the basic body type model.

[0080] S202. Determine the storage path of the model of the target equipment and the assembly point information of the target equipment on the target role according to the configuration information of the target equipment.

[0081] The configuration information of the target equipment includes the storage path of the model of the target equipment and the assembly point information of the target equipment on the target role. Therefore, through the configuration information of the target equipment, the storage path of the model of the target equipment and the assembly point information of the target equipment on the target role can be obtained.

[0082] S203. Retrieve the model of the target role according to the storage path of the model of the target role.

[0083] The model of the target role can be retrieved from the storage path of the model of the target role.

[0084] S204. Retrieve the model of the target equipment according to the storage path of the model of the target equipment.

[0085] Similarly, the model of the target equipment can be retrieved from the storage path of the model of the target equipment.

[0086] S205. Assemble the model of the target equipment on the model of the target role according to the assembly point information of the target equipment on the target role to obtain the target model.

[0087] Next, according to the assembly point information of the target equipment on the target role, the model of the target equipment can be assembled on the corresponding assembly point of the model of the target role, that is, the model of the target equipment is combined with the model of the target role to obtain the target model.

[0088] Figure 5 It is a schematic flowchart of yet another method for processing picture resources provided by an embodiment of the present application; optionally, a custom action identifier is also displayed on the resource export interface; the method of the present application may further include:

[0089] S301. In response to the trigger operation on the custom action identifier, cancel each selected action identifier.

[0090] Figure 6 This is a schematic diagram of another resource export interface provided by an embodiment of the present application. As Figure 6 shown, the interface also includes a custom action identifier, and the user can perform custom export of actions through the custom action identifier.

[0091] Optionally, through the trigger operation on the custom action identifier, that is, by checking the checkbox before the custom action identifier, the custom action identifier is selected.

[0092] In some embodiments, after the custom action identifier is selected, each selected action identifier can be cancelled. That is, after the custom action identifier is checked, each previously checked action identifier will become invalid. The user only needs to export the relevant picture resources of the required actions according to the requirements, without exporting the relevant picture resources of each action configured by the system by default, reducing the number of repeated operations of the user.

[0093] S302. In response to the input custom action information, determine the animation data matching the custom action information.

[0094] Optionally, after the custom action identifier is selected, the user can input custom action information through the information input box. The custom action information can be, for example, other action identifiers except Figure 3 the displayed optional action identifiers, such as the identifiers of actions like jumping and running.

[0095] Thus, the animation data corresponding to the custom action information can be matched according to the input custom action information.

[0096] Figure 7 This is a schematic diagram of yet another resource export interface provided by an embodiment of the present application. As Figure 7 shown, the resource export interface also displays optional part identifiers; the method of the present application may further include: in response to the trigger operation on at least one part identifier, determine the parts to be exported of the target model under each action identifier; the part identifiers are generated according to the preset model part division rules.

[0097] In some embodiments, when making the models of characters and equipment, according to the preset model part splitting rules, different parts of the model can be split and named according to the splitting results.

[0098] Exemplarily, the body of the model, the weapons it wears, the head of the model, etc. can be split. The naming of the head of the model can include fields such as "head" and "hair", the naming of the weapons can include fields such as "weapon", and the naming of the body of the model can include fields such as "body". Of course, in practical applications, the way of splitting the model parts is not limited to the examples given, and more detailed splitting can be carried out according to requirements, etc.

[0099] When storing the model in the storage path, the naming of different split parts in the model can be stored correspondingly.

[0100] Such as Figure 7 shown, the optional part identifiers displayed include: body, head, weapon, etc. The user can check the identifiers of the parts they want to export, so as to determine the parts to be exported of the target model.

[0101] It should be noted that the triggering operation of the part identifier can be executed after selecting the action identifier. Thus, when exporting the picture resources corresponding to the action identifier, only the picture resources of the part corresponding to the part identifier in the target model under the action identifier can be exported, and other non-exported parts in the target model are automatically hidden.

[0102] For example: the action identifier is walking, and the selected part identifier is the body. Then, when exporting the picture resources of the target model when walking, only the picture resources of the body model in the target model when walking are exported, while parts such as the head model and weapon model in the target model will be automatically hidden, and the corresponding picture resources when walking will not be exported.

[0103] By providing a mode of exporting by part, after the animation data of some parts of the model is updated, it is not necessary to export the picture resources of all parts of the model. Only the picture resources of the part where the animation data has been updated need to be exported, reducing the number of repeated exports.

[0104] Figure 8 It is a schematic flow diagram of another method for processing picture resources provided by an embodiment of the present application; Optionally, in step S104, generating and storing the picture resources of the target model under each action identifier according to each animation data may include:

[0105] S401. Play the animation data of the target model under the first action identifier, and during the playing process, intercept the current screen according to the preset time frame to obtain the picture resources of the target model under the first action identifier.

[0106] The first action identifier is any one of the selected action identifiers.

[0107] Taking any one of the selected action identifiers, that is, the first action identifier as an example, for the first action identifier, the animation data of the target model under the first action identifier can be played, so as to display the animation screen of the target model under the first action identifier in real time.

[0108] During the display of the animation screen, the screen images at each time frame can be intercepted according to the preset time frames, and the picture resources of the target model under the first action identifier can be obtained.

[0109] Among them, taking the current time frame as an example, the animation playback screen of the current time frame can be saved as a 2D picture through the defined API, and the picture resources of the target model under the first action identifier can be obtained.

[0110] S402. Store the picture resources of the target model under the first action identifier in a specified path, and the specified path is composed of the identifier of the target role, the first action identifier, and a preset file suffix.

[0111] In some embodiments, for the purpose of facilitating the effective management of the generated picture resources, the picture resources of the target model under different action identifiers can be stored in different paths.

[0112] Optionally, the storage path of the picture resources of the target model under the first action identifier can be composed of the identifier of the target role, the first action identifier, and a preset file suffix.

[0113] Exemplarily, the storage path of the picture resources of the target model under the first action identifier can be: identifier of the target role / first action identifier / xxxx.png.

[0114] Among them, there can be multiple picture resources of the target model under the first action identifier, and one picture can be stored corresponding to each time frame. The "xxxx" in the storage path is used to distinguish the picture resources under different time frames.

[0115] For example, the storage paths of the picture resources of the target model under the first action identifier can be respectively: identifier of the target role / first action identifier / 0000.png, identifier of the target role / first action identifier / 0001.png, identifier of the target role / first action identifier / 0002.png, etc.

[0116] Optionally, in step S104, generating and storing the picture resources of the target model under each action identifier according to each animation data may include: generating and storing the picture resources of the target model under each action identifier according to each animation data and the parts to be exported of the target model under each action identifier.

[0117] In some embodiments, the animation data and the parts to be exported of the target model under each action identifier can be combined to generate and store the picture resources of the target model under each action identifier, so as to implement the export operation of the picture resources of some parts of the target model under each action identifier.

[0118] Figure 9 FIG. is a schematic flowchart of another method for processing picture resources provided by an embodiment of the present application; Optionally, in the above steps, generating and storing the picture resources of the target model under each action identifier according to the animation data and the parts to be exported of the target model under each action identifier may include:

[0119] S501. Play the animation data of the part to be exported in the target model under the second action identifier, and during the playing process, capture the current screen according to the preset time frame to obtain the picture resources of the part to be exported in the target model under the second action identifier.

[0120] Based on the part splitting rule of the model, after selecting the part to be exported, other parts of the target model except the part to be exported can be hidden according to the identifier of the part to be exported, so as to only play the animation data of the part to be exported in the target model under the second action identifier.

[0121] Similarly, during the animation playback process, the screen can be captured according to the preset time frame to obtain the picture resources of the part to be exported in the target model under the second action identifier.

[0122] S502. Store the picture resources of the part to be exported in the target model under the second action identifier to a specified path, and the specified path is composed of the identifier of the part to be exported, the identifier of the target role, the second action identifier, and a preset file suffix.

[0123] When only exporting the picture resources of the part to be exported under the second action identifier, the identifier of the part to be exported can be added to the corresponding storage path, so as to store the picture resources of different exported parts under different action identifiers separately.

[0124] Exemplarily, the storage path of the picture resources of the part to be exported in the target model under the second action identifier can be: identifier of the part to be exported / identifier of the target role / second action identifier / xxxx.png.

[0125] Figure 10 FIG. is a schematic diagram showing the storage path of a picture resource provided by an embodiment of the present application. Assume that the part to be exported is the body "body", the identifier of the target role is 1001, and the second action identifier is attack "attack". Then, the storage path of the picture resources of the part to be exported in the target model under the second action identifier is as Figure 10As shown, where attack0000.png can be the picture resource captured at time frame 1, and attack0001.png can be the picture resource captured at time frame 2, so that all the captured picture resources can be stored independently.

[0126] The configuration information of the target character includes: the configuration file of the target character, and the configuration information of the target equipment includes: the configuration file of the target equipment.

[0127] In a possible implementation, the configuration information of the target character may include the configuration file of the target character, and the configuration information of the target equipment may include the configuration file of the target equipment. Of course, the configuration information can also be directly stored in text form.

[0128] Figure 11 It is a schematic flowchart of another picture resource processing method provided by the embodiments of the present application; optionally, before step S101, according to the identifier of the target character and the identifier of the target equipment associated with the target character, to obtain the configuration information of the target character and the configuration information of the target equipment, it may further include:

[0129] S601. Respond to the input identifier of the character to be created and the storage path of the model of the character to be created, and generate a configuration file of the character to be created according to the identifier of the character to be created and the storage path of the model of the character to be created.

[0130] Before loading and obtaining the configuration file, all the required configuration files of the characters and equipment can be pre-created and stored to facilitate subsequent calls.

[0131] Figure 12 It is a schematic diagram of the creation interface of a character configuration file provided by the embodiments of the present application. As Figure 12 shown, the user can input the identifier of the character to be created, and the identifier can include: number and name, and at the same time input the storage path of the model of the character to be created. The model of the character to be created usually uses the base model, that is, input the model storage path corresponding to the base model. After that, click the create button to generate the configuration file of the character to be created.

[0132] S602. Respond to the trigger operation on the target character, and for the target character, generate a configuration file of the to-be-created equipment associated with the target character according to the input identifier of the to-be-created equipment, the storage path of the model of the to-be-created equipment, and the assembly point information of the to-be-created equipment on the target character.

[0133] For the configuration file of the equipment, after selecting a character, for the selected character, the configuration file of the equipment can also be created through the creation interface.

[0134] Figure 13Schematic diagram of a creation interface for an equipment configuration file provided by an embodiment of the present application. Figure 14 Schematic diagram of an equipment editing interface provided by an embodiment of the present application. As Figure 13 shown, in an implementable manner, the creation interface of the equipment configuration file further includes a copy control. The user can load the equipment to be copied by inputting the identifier of the equipment to be created and selecting the identifier of the equipment to be copied, and then, on the basis of the copied equipment, perform equipment editing in the interface as Figure 14 shown, and assemble the edited equipment on the selected character, and click the save button to obtain the configuration file of the equipment to be created. The equipment editing here can be color adjustment of the copied equipment or partial appearance adjustment of the equipment. By reusing the equipment and making simple adjustments, the generation efficiency of the equipment configuration file can be improved.

[0135] Of course, it is also possible to create a completely new equipment configuration file from scratch. In this case, a blank equipment can be selected in Figure 13 to input the storage path of the model of the equipment to be created, click the create button to generate the equipment to be created, and then assemble the equipment to be created on the selected character and save it to generate the configuration file of the equipment to be created.

[0136] Optionally, in step S103, before determining the animation data matching each selected action identifier in response to the triggering operation of at least one action identifier corresponding to the target model, it may further include: pre-creating the animation data information corresponding to the target model, where the animation data information includes the animation data of the target model under different action identifiers.

[0137] The animation data played in this embodiment can be pre-created. For each target model, its corresponding animation data information can be created, and the animation data information may include the animation data of the target model under different action identifiers. For example, the walking animation, running animation, attack animation, etc. of the target model are created respectively. And name each animation data according to the created animation data.

[0138] Optionally, in step S103, determining the animation data matching each selected action identifier may include: determining the animation data matching the action identifier from the animation data file according to the action identifier and the identifier of each animation data in the animation data file corresponding to the target model.

[0139] For any selected action identifier, the action identifier can be matched with the naming or identifier of each animation data in the pre-created animation data information of the target model to obtain the animation data matching the action identifier.

[0140] Generally, when creating animation data, it is named according to the animation content of the animation data, and it is ensured as much as possible that the naming of the created animation data is consistent with the action identifiers pre-configured in the system. For example, the standing identifier is stand, the naming of the standing animation is stand, the walking identifier is walk, and the naming of the walking animation is walk. In this way, after selecting a certain action identifier, the animation data corresponding to the action identifier can be matched according to the naming of each animation data.

[0141] Of course, in some cases, when the user names the animation data, it may not exactly correspond to the action identifier. Then, when matching, the animation data corresponding to the action identifier may not be matched. At this time, the user can select the animation data from the animation data information, or the system can automatically match the animation data corresponding to the action identifier according to the action identifier and the actual content of the animation data.

[0142] In summary, the method for processing picture resources provided in this embodiment includes: obtaining the configuration information of the target character and the configuration information of the target equipment according to the identifier of the target character and the identifier of the target equipment associated with the target character; loading the target model and displaying the resource export interface according to the configuration information of the target character and the configuration information of the target equipment; responding to the triggering operation of at least one action identifier corresponding to the target model, and determining the animation data matching the selected action identifiers; responding to the export operation, and generating and storing the picture resources of the target model under each action identifier according to each animation data. This solution stores the information of the character and the equipment separately in the form of configuration information, so that the configuration information of the character and the configuration information of the equipment can be quickly obtained through the identifier of the character and the identifier of the equipment, and the required model can be quickly loaded based on the configuration information, reducing the overhead of the user's repeated equipment assembly. By providing optional action identifiers, the user can quickly batch export the required picture resources, reducing the number of export operations of the user and lowering the development cost.

[0143] In addition, by customizing the action identifier, the user can select and export the picture resources under the custom action according to the needs, realizing the flexibility of action export. And through the part identifier, the user can export the picture resources of the required parts in the model under the action identifier, so that after the animation data of some parts of the model is updated, it is not necessary to export the picture resources of all parts of the model, and only the picture resources of the part where the animation data has been updated need to be exported, reducing the number of repeated exports.

[0144] The following describes the devices, equipment, storage media, etc. used to execute the method for processing picture resources provided in this application. For the specific implementation process and technical effects, refer to the above, and the following will not be repeated.

[0145] Figure 15The figure is a schematic diagram of an image resource processing device provided by an embodiment of the present application. The functions implemented by the image resource processing device correspond to the steps executed by the above method. The device can be understood as the above-mentioned server, or the processor of the server, or can also be understood as a component independent of the above-mentioned server or processor that implements the functions of the present application under the control of the server, such as Figure 15 As shown in the figure, the device may include: an acquisition module 150, a loading module 151, a determination module 152, and a generation module 153;

[0146] The acquisition module 150 is configured to acquire the configuration information of the target character and the configuration information of the target equipment according to the identifier of the target character and the identifier of the target equipment associated with the target character;

[0147] The loading module 151 is configured to load the target model and display a resource export interface according to the configuration information of the target character and the configuration information of the target equipment. The target model is a combined model obtained by combining the model of the target character and the model of the target equipment; action identifiers are displayed in the resource export interface;

[0148] The determination module 152 is configured to determine, for a trigger operation on at least one action identifier corresponding to the target model, the animation data that matches each selected action identifier;

[0149] The generation module 153 is configured to respond to an export operation and generate and store image resources of the target model under each action identifier according to each animation data.

[0150] Optionally, the loading module 151 is specifically configured to determine the storage path of the model of the target character according to the configuration information of the target character;

[0151] According to the configuration information of the target equipment, determine the storage path of the model of the target equipment and the assembly point information of the target equipment on the target character;

[0152] Retrieve the model of the target character according to the storage path of the model of the target character;

[0153] Retrieve the model of the target equipment according to the storage path of the model of the target equipment;

[0154] Assemble the model of the target equipment on the model of the target character according to the assembly point information of the target equipment on the target character to obtain the target model.

[0155] Optionally, a custom action identifier is also displayed in the resource export interface;

[0156] The determination module 152 is further configured to cancel each selected action identifier in response to a trigger operation on the custom action identifier;

[0157] Determine the animation data matching the custom action information in response to the input custom action information.

[0158] Optionally, the resource export interface also displays optional part identifiers;

[0159] The determination module 152 is further configured to determine the parts to be exported of the target model under each action identifier in response to a trigger operation on at least one part identifier; the part identifier is generated according to a preset model part division rule.

[0160] Optionally, the generation module 153 is specifically configured to play the animation data of the target model under the first action identifier, and during the playing process, capture the current screen according to a preset time frame to obtain the picture resource of the target model under the first action identifier; the first action identifier is any one of the selected action identifiers;

[0161] Store the picture resource of the target model under the first action identifier in a specified path, and the specified path is composed of the identifier of the target role, the first action identifier, and a preset file suffix.

[0162] Optionally, the generation module 153 is specifically configured to generate and store the picture resources of the target model under each action identifier according to each animation data and the parts to be exported of the target model under each action identifier.

[0163] Optionally, the generation module 153 is specifically configured to play the animation data of the parts to be exported in the target model under the second action identifier, and during the playing process, capture the current screen according to a preset time frame to obtain the picture resource of the parts to be exported in the target model under the second action identifier;

[0164] Store the picture resource of the parts to be exported in the target model under the second action identifier in a specified path, and the specified path is composed of the identifier of the parts to be exported, the identifier of the target role, the second action identifier, and a preset file suffix.

[0165] Optionally, the configuration information of the target role includes: the configuration file of the target role, and the configuration information of the target equipment includes: the configuration file of the target equipment;

[0166] The generation module 153 is further configured to respond to the identifier of the role to be created and the storage path of the model of the role to be created, and generate a configuration file of the role to be created according to the identifier of the role to be created and the storage path of the model of the role to be created;

[0167] In response to a trigger operation on the target role, for the target role, generate a configuration file of the equipment to be created associated with the target role according to the identifier of the equipment to be created, the storage path of the model of the equipment to be created, and the assembly point information of the equipment to be created on the target role.

[0168] Optionally, the generating module 153 is further configured to pre-create the animation data information corresponding to the target model, where the animation data information includes the animation data of the target model under different action identifiers.

[0169] Optionally, the determining module 152 is specifically configured to determine the animation data matching the action identifier from the animation data file according to the action identifier and the identifiers of the respective animation data in the animation data file corresponding to the target model.

[0170] The above modules may be one or more integrated circuits configured to implement the above methods. For example: one or more application specific integrated circuits (ASICs), or, one or more digital signal processors (DSPs), or, one or more field programmable gate arrays (FPGAs), etc. Again, when a certain module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. Again, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0171] The above modules may be connected or communicate with each other via a wired connection or a wireless connection. The wired connection may include a metal wire cable, an optical fiber cable, a hybrid cable, etc., or any combination thereof. The wireless connection may include connections in the form of LAN, WAN, Bluetooth, ZigBee, or NFC, etc., or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems and devices described above may refer to the corresponding processes in the method embodiments, and will not be elaborated in this application.

[0172] Figure 16 A schematic structural diagram of an electronic device provided in an embodiment of the present application 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 electronic device runs a picture resource processing method as in the embodiment, the processor 801 communicates with the storage medium 802 via the bus 803, and the processor 801 executes the machine-readable instructions to perform the following steps:

[0173] Obtain the configuration information of the target character and the configuration information of the target equipment according to the identifier of the target character and the identifier of the target equipment associated with the target character;

[0174] Load the target model and display the resource export interface according to the configuration information of the target character and the configuration information of the target equipment. The target model is a combined model obtained by combining the model of the target character and the model of the target equipment; Action identifiers are displayed in the resource export interface;

[0175] In response to the triggering operation of at least one action identifier corresponding to the target model, determine the animation data that matches each selected action identifier;

[0176] In response to the export operation, generate and store the picture resources of the target model under each action identifier according to each animation data.

[0177] In a feasible implementation, when the processor 801 executes to load the target model according to the configuration information of the target character and the configuration information of the target equipment, it is specifically used for: determining the storage path of the model of the target character according to the configuration information of the target character;

[0178] Determine the storage path of the model of the target equipment and the assembly point information of the target equipment on the target character according to the configuration information of the target equipment;

[0179] Retrieve the model of the target character according to the storage path of the model of the target character;

[0180] Retrieve the model of the target equipment according to the storage path of the model of the target equipment;

[0181] Assemble the model of the target equipment on the model of the target character according to the assembly point information of the target equipment on the target character to obtain the target model.

[0182] In a feasible implementation, a custom action identifier is also displayed in the resource export interface; The processor 801 is also used to execute: in response to the triggering operation of the custom action identifier, cancel each selected action identifier;

[0183] In response to the input custom action information, determine the animation data that matches the custom action information.

[0184] In a feasible implementation, an optional part identifier is also displayed in the resource export interface; The processor 801 is also used to execute: in response to the triggering operation of at least one part identifier, determine the parts to be exported of the target model under each action identifier; The part identifier is generated according to the preset model part division rule.

[0185] In a feasible implementation, when the processor 801 executes to generate and store picture resources of the target model under each action identifier according to each piece of animation data, it is specifically used for: playing the animation data of the target model under the first action identifier, and during the playing process, intercepting the current screen according to a preset time frame to obtain the picture resources of the target model under the first action identifier; the first action identifier is any one of the selected action identifiers.

[0186] Store the picture resources of the target model under the first action identifier to a specified path, where the specified path is composed of the identifier of the target role, the first action identifier, and a preset file suffix.

[0187] In a feasible implementation, when the processor 801 executes to generate and store picture resources of the target model under each action identifier according to each piece of animation data and the parts to be exported of the target model under each action identifier, it is specifically used for: generating and storing picture resources of the target model under each action identifier according to each piece of animation data and the parts to be exported of the target model under each action identifier.

[0188] In a feasible implementation, when the processor 801 executes to generate and store picture resources of the target model under each action identifier according to each piece of animation data and the parts to be exported of the target model under each action identifier, it is specifically used for playing the animation data of the parts to be exported in the target model under the second action identifier, and during the playing process, intercepting the current screen according to a preset time frame to obtain the picture resources of the parts to be exported in the target model under the second action identifier.

[0189] Store the picture resources of the parts to be exported in the target model under the second action identifier to a specified path, where the specified path is composed of the identifier of the parts to be exported, the identifier of the target role, the second action identifier, and a preset file suffix.

[0190] In a feasible implementation, the configuration information of the target role includes: the configuration file of the target role, and the configuration information of the target equipment includes: the configuration file of the target equipment; before the processor 801 executes to obtain the configuration information of the target role and the configuration information of the target equipment according to the identifier of the target role and the identifier of the target equipment associated with the target role, it is also used for: responding to the input identifier of the role to be created and the storage path of the model of the role to be created, and generating a configuration file of the role to be created according to the identifier of the role to be created and the storage path of the model of the role to be created.

[0191] In response to the trigger operation on the target role, for the target role, generate a configuration file of the equipment to be created associated with the target role according to the input identifier of the equipment to be created, the storage path of the model of the equipment to be created, and the assembly point information of the equipment to be created on the target role.

[0192] In a feasible implementation, before the processor 801 executes the trigger operation in response to at least one action identifier corresponding to the target model and determines the animation data that matches each selected action identifier, it is further configured to perform: pre-create the animation data information corresponding to the target model, where the animation data information includes the animation data of the target model under different action identifiers.

[0193] In a feasible implementation, when the processor 801 executes to determine the animation data that matches each selected action identifier, it is specifically configured to determine the animation data that matches the action identifier from the animation data file according to the action identifier and the identifiers of the respective animation data in the animation data file corresponding to the target model.

[0194] The storage medium 802 stores program code, and when the program code is executed by the processor 801, the processor 801 is caused to execute the various steps in the picture resource processing method according to various exemplary embodiments of the present application described in the "Exemplary Method" section of this specification.

[0195] The processor 801 may be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the embodiments of the present application may be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0196] The storage medium 802, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The memory may include at least one type of storage medium, for example, it may include flash memory, hard disk, multimedia card, card-type memory, random access memory (RAM), static random access memory (SRAM), programmable read-only memory (PROM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), magnetic memory, magnetic disk, optical disc, and so on. The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The storage medium 802 in the embodiments of the present application may also be a circuit or any other device capable of implementing a storage function, for storing program instructions and / or data.

[0197] Optionally, the embodiments of the present application further provide a computer-readable storage medium, on which a computer program is stored, and when the computer program is run by a processor, the processor performs the following steps:

[0198] Obtain the configuration information of the target role and the configuration information of the target equipment according to the identifier of the target role and the identifier of the target equipment associated with the target role;

[0199] Load the target model and display a resource export interface according to the configuration information of the target role and the configuration information of the target equipment, where the target model is a combined model obtained by combining the model of the target role and the model of the target equipment; action identifiers are displayed in the resource export interface;

[0200] In response to a trigger operation on at least one action identifier corresponding to the target model, determine the animation data that matches each selected action identifier;

[0201] In response to an export operation, generate and store picture resources of the target model under each action identifier according to each animation data.

[0202] In a feasible implementation, when the processor 801 executes to load the target model according to the configuration information of the target role and the configuration information of the target equipment, it is specifically used to: determine the storage path of the model of the target role according to the configuration information of the target role;

[0203] Determine the storage path of the model of the target equipment and the assembly point information of the target equipment on the target character according to the configuration information of the target equipment;

[0204] Retrieve the model of the target character according to the storage path of the model of the target character;

[0205] Retrieve the model of the target equipment according to the storage path of the model of the target equipment;

[0206] Assemble the model of the target equipment on the model of the target character according to the assembly point information of the target equipment on the target character to obtain the target model.

[0207] In a feasible implementation, the resource export interface also displays a custom action identifier; the processor 801 is further configured to execute: in response to a trigger operation on the custom action identifier, cancel each selected action identifier;

[0208] In response to the input custom action information, determine the animation data matching the custom action information.

[0209] In a feasible implementation, the resource export interface also displays optional part identifiers; the processor 801 is further configured to execute: in response to a trigger operation on at least one part identifier, determine the parts to be exported of the target model under each action identifier; the part identifiers are generated according to a preset model part division rule.

[0210] In a feasible implementation, when the processor 801 executes to generate and store the picture resources of the target model under each action identifier according to each animation data, it is specifically configured to: play the animation data of the target model under the first action identifier, and during the playing process, intercept the current screen according to a preset time frame to obtain the picture resources of the target model under the first action identifier; the first action identifier is any one of the selected action identifiers;

[0211] Store the picture resources of the target model under the first action identifier to a specified path, and the specified path is composed of the identifier of the target character, the first action identifier, and a preset file suffix.

[0212] In a feasible implementation, when the processor 801 executes to generate and store the picture resources of the target model under each action identifier according to each animation data, it is specifically configured to: generate and store the picture resources of the target model under each action identifier according to each animation data and the parts to be exported of the target model under each action identifier.

[0213] In a feasible implementation, when the processor 801 generates and stores the picture resources of the target model under each action identifier according to the respective animation data and the parts to be exported of the target model under each action identifier, it is specifically used to play the animation data of the parts to be exported in the target model under the second action identifier, and during the playing process, intercept the current screen according to the preset time frame to obtain the picture resources of the parts to be exported in the target model under the second action identifier;

[0214] Store the picture resources of the parts to be exported in the target model under the second action identifier to the specified path, and the specified path is composed of the identifier of the part to be exported, the identifier of the target role, the second action identifier, and the preset file suffix.

[0215] In a feasible implementation, the configuration information of the target role includes: the configuration file of the target role, and the configuration information of the target equipment includes: the configuration file of the target equipment; before the processor 801 obtains the configuration information of the target role and the configuration information of the target equipment according to the identifier of the target role and the identifier of the target equipment associated with the target role, it is also used to execute: respond to the input identifier of the role to be created and the storage path of the model of the role to be created, and generate the configuration file of the role to be created according to the identifier of the role to be created and the storage path of the model of the role to be created;

[0216] In response to the trigger operation on the target role, for the target role, generate the configuration file of the equipment to be created associated with the target role according to the input identifier of the equipment to be created, the storage path of the model of the equipment to be created, and the assembly point information of the equipment to be created on the target role.

[0217] In a feasible implementation, before the processor 801 executes and responds to the trigger operation on at least one action identifier corresponding to the target model and determines the animation data matching the selected action identifiers, it is also used to execute: pre-create the animation data information corresponding to the target model, and the animation data information includes the animation data of the target model under different action identifiers.

[0218] In a feasible implementation, when the processor 801 executes and determines the animation data matching the selected action identifiers, it is specifically used to determine the animation data matching the action identifier from the animation data file according to the action identifier and the identifier of each animation data in the animation data file corresponding to the target model.

[0219] In the embodiments of the present application, when the computer program is run by the processor, it can also execute other machine-readable instructions to execute the methods described in other embodiments. For the specific method steps and principles of execution, refer to the description of the embodiments, and details will not be elaborated here.

[0220] In several embodiments provided by this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some interfaces. The indirect coupling or communication connection of the devices or units can be in electrical, mechanical or other forms.

[0221] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0222] In addition, in each embodiment of this application, each functional unit can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above-mentioned integrated units can be implemented in the form of hardware, or in the form of hardware plus software functional units.

[0223] The above-mentioned integrated units implemented in the form of software functional units can be stored in a computer-readable storage medium. The above-mentioned software functional units stored in a storage medium include several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to execute some steps of the methods described in each embodiment of this application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (English: Read-Only Memory, abbreviated as: ROM), random access memories (English: Random Access Memory, abbreviated as: RAM), magnetic disks or optical discs that can store program codes.

Claims

1. A method for processing picture resources, characterized in that, Including: Obtain the configuration information of the target character and the configuration information of the target equipment according to the identifier of the target character and the identifier of the target equipment associated with the target character; Load a target model and display a resource export interface according to the configuration information of the target character and the configuration information of the target equipment, where the target model is a combined model obtained by combining the model of the target character and the model of the target equipment; action identifiers are shown in the resource export interface; In response to a trigger operation on at least one action identifier corresponding to the target model, determine the animation data that matches each selected action identifier; In response to an export operation, generate and store the picture resources of the target model under each action identifier according to each animation data.

2. The method according to claim 1, characterized in that The loading of the target model according to the configuration information of the target character and the configuration information of the target equipment includes: Determine the storage path of the model of the target character according to the configuration information of the target character; Determine the storage path of the model of the target equipment and the assembly point information of the target equipment on the target character according to the configuration information of the target equipment; Retrieve the model of the target character according to the storage path of the model of the target character; Retrieve the model of the target equipment according to the storage path of the model of the target equipment; Assemble the model of the target equipment on the model of the target character according to the assembly point information of the target equipment on the target character to obtain the target model.

3. The method according to claim 1, characterized in that, A custom action identifier is also shown in the resource export interface; the method further includes: In response to a trigger operation on the custom action identifier, cancel each selected action identifier; In response to the input custom action information, determine the animation data that matches the custom action information.

4. The method according to claim 1, wherein Optional part identifiers are also shown in the resource export interface; the method further includes: In response to a trigger operation on at least one part identifier, determine the parts to be exported of the target model under each action identifier; the part identifier is generated according to a preset model part division rule.

5. The method according to claim 1, wherein The generating and storing the picture resources of the target model under each action identifier according to each animation data includes: Play the animation data of the target model under the first action identifier, and during the playing process, intercept the current screen according to a preset time frame to obtain the picture resources of the target model under the first action identifier; the first action identifier is any one of the selected action identifiers; Store the picture resources of the target model under the first action identifier to a specified path, where the specified path is composed of the identifier of the target character, the first action identifier, and a preset file suffix.

6. The method according to claim 4, wherein The generating and storing the picture resources of the target model under each action identifier according to each animation data includes: Generate and store the picture resources of the target model under each action identifier according to each animation data and the parts to be exported of the target model under each action identifier.

7. The method according to claim 6, characterized in that, Generating and storing picture resources of the target model under each action identifier according to each piece of animation data and the parts to be exported of the target model under each action identifier includes: Playing the animation data of the parts to be exported in the target model under the second action identifier, and during the playing process, intercepting the current screen according to a preset time frame to obtain the picture resources of the parts to be exported in the target model under the second action identifier; Storing the picture resources of the parts to be exported in the target model under the second action identifier to a specified path, where the specified path is composed of the identifier of the parts to be exported, the identifier of the target character, the second action identifier, and a preset file suffix.

8. The method according to claim 1, wherein The configuration information of the target character includes: the configuration file of the target character, and the configuration information of the target equipment includes: the configuration file of the target equipment; Before obtaining the configuration information of the target character and the configuration information of the target equipment according to the identifier of the target character and the identifier of the target equipment associated with the target character, it further includes: Responding to the input identifier of the character to be created and the storage path of the model of the character to be created, and generating the configuration file of the character to be created according to the identifier of the character to be created and the storage path of the model of the character to be created; Responding to the trigger operation on the target character, and generating the configuration file of the to-be-created equipment associated with the target character for the target character according to the input identifier of the to-be-created equipment, the storage path of the model of the to-be-created equipment, and the assembly point information of the to-be-created equipment on the target character.

9. The method according to claim 1, characterized in that, Before determining the animation data matching the selected action identifiers in response to the trigger operation on at least one action identifier corresponding to the target model, it further includes: Pre-creating the animation data information corresponding to the target model, where the animation data information includes the animation data of the target model under different action identifiers.

10. The method according to claim 9, wherein Determining the animation data matching the selected action identifiers includes: Determining the animation data matching the action identifier from the animation data file according to the action identifier and the identifier of each piece of animation data in the animation data file corresponding to the target model.

11. An image resource processing device, characterized in that, Includes: An acquisition module, a loading module, a determination module, and a generation module; The acquisition module is used to obtain the configuration information of the target character and the configuration information of the target equipment according to the identifier of the target character and the identifier of the target equipment associated with the target character; The loading module is used to load the target model and display a resource export interface according to the configuration information of the target character and the configuration information of the target equipment, where the target model is a combined model obtained by combining the model of the target character and the model of the target equipment; optional action identifiers are displayed in the resource export interface; The determination module is used to determine the animation data matching the selected action identifiers in response to the trigger operation on at least one action identifier corresponding to the target model; The generating module is configured to respond to an export operation and generate and store picture resources of the target model under each action identifier according to each piece of animation data.

12. An electronic device, characterized in that, including: A processor, a storage medium, and a bus. The storage medium stores program instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus. The processor executes the program instructions to perform the picture resource processing method according to any one of claims 1 to 10.

13. A computer-readable storage medium, characterized in that, A computer program is stored on the storage medium, and when the computer program is run by the processor, it performs the picture resource processing method according to any one of claims 1 to 10.