Resource processing method and apparatus, electronic device, and storage medium

By determining the data type of resources and creating mapping objects in the engine software, and establishing the association between resources and groups using globally unique identifiers or storage paths, the problem of users having difficulty quickly obtaining resource content is solved, thus improving resource location efficiency and image production efficiency.

CN115391278BActive Publication Date: 2026-06-02NETEASE (HANGZHOU) NETWORK CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2022-08-18
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In engine software, users have difficulty quickly obtaining resource content, resulting in low resource location efficiency, which in turn affects image production efficiency.

Method used

The data type is determined by obtaining the storage path of the object to be processed, the specified group with the specified group identifier is obtained, and a mapping object is created in the specified group. The association between the resource and the group is established by using a globally unique identifier or storage path, thus breaking through naming restrictions and realizing rapid resource location.

Benefits of technology

It improves resource location efficiency, simplifies the resource search process, and increases image production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115391278B_ABST
    Figure CN115391278B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a resource processing method and device, electronic equipment and a storage medium; the method comprises: obtaining a to-be-processed object, the to-be-processed object comprising at least one resource in an image production tool; determining a data type of the to-be-processed object based on a storage path of the to-be-processed object; obtaining a specified group having a specified group identifier, the specified group identifier comprising an input arbitrary string; and creating a mapping object corresponding to the to-be-processed object in the specified group according to the data type. The data type of the to-be-processed object is mapped to the specified group, the group identifier of the specified group can comprise an input arbitrary string, the naming restriction of the image production tool can be broken, the user can quickly obtain the content of the resource, the resource can be quickly located, and the image production efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, specifically to resource processing methods, apparatus, electronic devices, and storage media. Background Technology

[0002] Image creation tools typically refer to software used for image creation, such as engine software. Engine software is commonly used in game development, and with technological advancements, its real-time rendering capabilities have improved significantly, making it suitable for image creation.

[0003] However, when creating image content using resources in engine software, users often find it difficult to quickly understand the content of resources under the organization and management of the engine software, resulting in low efficiency in locating resources and consequently low production efficiency. Summary of the Invention

[0004] This application provides a resource processing method, apparatus, electronic device, and storage medium, which can quickly obtain the content of resources, improve the efficiency of resource location, and thus improve the efficiency of image production.

[0005] This application provides a resource processing method, including:

[0006] Obtain an object to be processed, the object to be processed including at least one resource in the image creation tool;

[0007] Based on the storage path of the object to be processed, determine the data type of the object to be processed;

[0008] Retrieve a specified group with a specified group identifier, wherein the specified group identifier includes any string input;

[0009] Based on the data type, create a mapping object corresponding to the object to be processed in the specified group.

[0010] This application embodiment also provides a resource processing apparatus, including:

[0011] An object acquisition module is used to acquire an object to be processed, wherein the object to be processed includes at least one resource in the image creation tool;

[0012] The determining module is used to determine the data type of the object to be processed based on its storage path.

[0013] The group acquisition module is used to acquire a specified group with a specified group identifier, wherein the specified group identifier includes any string input.

[0014] A creation module is used to create a mapping object corresponding to the object to be processed in the specified group according to the data type.

[0015] This application also provides an electronic device, including a memory storing multiple instructions; the processor loads instructions from the memory to execute steps in any of the resource processing methods provided in this application.

[0016] This application also provides a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute steps in any of the resource processing methods provided in this application.

[0017] This application embodiment can obtain an object to be processed, which includes at least one resource in an image editing tool; determine the data type of the object to be processed based on its storage path; obtain a specified group with an input specified group identifier; and create a mapping object corresponding to the object to be processed in the specified group according to the data type. Mapping the object to be processed to the specified group based on its data type, where the identifier of the specified group can support any string, can overcome the naming restrictions of the image editing tool, and can maintain the association between the mapping object and the object to be processed. This facilitates users to quickly obtain the content of the resource and enables rapid resource location, improving image editing efficiency. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of a scenario illustrating the resource processing method provided in an embodiment of this application;

[0020] Figure 2 This is a flowchart illustrating the resource processing method provided in an embodiment of this application;

[0021] Figure 3 This is a schematic diagram of the display resources provided in an embodiment of this application;

[0022] Figure 4 This is another schematic diagram of the display resources provided in the embodiments of this application;

[0023] Figure 5 This is a flowchart illustrating a resource processing method provided in another embodiment of this application;

[0024] Figure 6 This is a schematic diagram of the interface when previewing model action resources provided in the embodiments of this application;

[0025] Figure 7 This is a schematic diagram of the interface when previewing special effects resources provided in the embodiments of this application;

[0026] Figure 8 This is a schematic diagram of the structure of the resource processing device provided in the embodiments of this application;

[0027] Figure 9 This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0028] 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. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0029] This application provides resource processing methods, apparatus, electronic devices, and storage media.

[0030] Specifically, the resource processing device can be integrated into an electronic device, such as a terminal or server. The terminal can be a mobile phone, tablet, smart Bluetooth device, laptop, or personal computer (PC); the server can be a single server or a server cluster consisting of multiple servers.

[0031] In some embodiments, the resource processing apparatus may also be integrated into multiple electronic devices, such as multiple servers, with the resource processing method of this application being implemented by the multiple servers.

[0032] In some embodiments, the server may also be implemented as a terminal.

[0033] For example, refer to Figure 1This illustration shows a scenario diagram of the resource processing method provided in this application embodiment. The scenario may include at least one terminal 1000, at least one server 2000, at least one database 3000, and a network 4000. The user-held terminal 1000 can connect to the server 2000 via the network 4000. The terminal 1000 can be any device with computing hardware capable of supporting and executing software products corresponding to image creation. The server 2000 can be a single server or a server cluster. The network 4000 can be a wireless network or a wired network, such as a wireless local area network (WLAN), local area network (LAN), cellular network, 2G network, 3G network, 4G network, 5G network, etc. Furthermore, different terminals 1000 can also connect to other terminals or to the server 2000 using their own Bluetooth networks or hotspot networks. Additionally, the system may include at least one database 3000 for storing data generated when the user uses the terminal 1000 for resource processing.

[0034] An application can be installed on terminal 1000, and an image editing tool can run on terminal 1000, allowing users to perform resource processing. Specifically, terminal 1000 can obtain an object to be processed, which includes at least one resource from the image editing tool; determine the data type of the object to be processed based on its storage path; obtain a specified group with a specified group identifier, which includes any input string; and create a mapping object corresponding to the object to be processed in the specified group according to the data type.

[0035] The following sections will provide detailed explanations.

[0036] In this embodiment, a resource processing method based on an image creation tool is provided, such as... Figure 2 As shown, the specific process of this resource processing method can be as follows:

[0037] S110. Obtain the object to be processed, wherein the object to be processed is at least one resource in the image creation tool.

[0038] Image creation tools refer to software used for image creation, which can include engine software such as Unity Engine, Unreal Engine, etc. Resources refer to the data used in image creation tools during the image creation process. For example, if an image needs to depict a virtual character outside a virtual building, then the creation of that image requires models of both the virtual character and the virtual building; these models are considered resources.

[0039] Resources within image editing tools can be obtained through import. Typically, when creating images using image editing tools, materials obtained from other Digital Content Creation (DCC) software can be imported into the image editing tool. These imported materials then become resources. DCC software can include Maya, 3ds Max, and so on.

[0040] An object to be processed refers to a resource that needs to be processed. This can include at least one resource within the image editing tool. An object to be processed can refer to a single resource or a collection of resources. It should be noted that resources within the image editing tool can be organized as files, and files can be organized into folders. That is, a resource can be a single file, while a collection of resources can refer to a folder, which may contain only one file.

[0041] In some implementations, the object to be processed can be determined based on the user's selection. For example, in the default data management system of an image editing tool, existing resources can be displayed hierarchically, that is, resources can be displayed according to folders or files. Here, a file represents a resource, and a folder represents all resources within that folder. Thus, if the user selects a file, the object to be processed indicates a single resource; if the user selects a folder, the object to be processed indicates a set of resources. For example, there exists resource A and resource set B, where resource set B includes resources B1 and B2. Resources A, B1, and B2 are individual files, and resource set B is a folder.

[0042] For example, see Figure 3 This illustrates one way to display resources. Figure 3 In the default data management system display, if the user selects resource A and resource collection B, two objects to be processed are generated: Object A and Object B. Object A is a single resource, and Object B is a resource collection. If the user selects resource A, resource B1, and resource B2, three objects to be processed are generated: Object A, Object B1, and Object B2.

[0043] S120. Determine the data type of the object to be processed based on its storage path.

[0044] Data type refers to the data organization type of the object to be processed in the image editing tool, which can include file type and folder type.

[0045] When determining the data type of an object based on its storage path, one can obtain the storage path of the object to be processed; if the object to be processed indicated by the storage path is a collection of resources, the data type of the object to be processed is determined to be a folder type; if the object to be processed indicated by the storage path is a single resource, the data type of the object to be processed is determined to be a file type.

[0046] After resources are imported into the image editing tool, each resource has its corresponding storage path. The objects to be processed can include at least one resource; therefore, each object to be processed also has its corresponding storage path. After obtaining the storage path, it can be determined whether the object to be processed indicated by that storage path is a collection of resources or a single resource. If the object to be processed indicated by the storage path is a collection of resources, then the data type of the object to be processed is determined to be a folder type; if the object to be processed indicated by the storage path is a single resource, then the data type of the object to be processed is determined to be a file type. For example, if the objects to be processed are object A and object B, then object A is a file type, and object B is a folder type.

[0047] As one implementation method, determining whether the object to be processed indicated by the storage path is a collection of resources or a single resource can be done by obtaining the number of resources that can be stored under that storage path. If the number of resources that can be stored is greater than 1, then the storage path is considered to indicate that the object to be processed is a collection of resources; if the number of resources that can be stored is equal to 1, then the storage path is considered to indicate that the object to be processed is a single resource. It is understood that if the object to be processed is a file, only one resource can be stored; if the object to be processed is a folder, the number of resources that can be stored can be any number.

[0048] As one implementation, if the storage path of a file contains a specified field, but the storage path of a folder does not contain a specified field, when determining whether the object to be processed indicated by the storage path is a collection of resources or a single resource, it is also possible to determine whether the specified field exists in the storage path; if it exists, the object to be processed indicated by the storage path is considered to be a collection of resources; if it does not exist, the object to be processed indicated by the storage path is considered to be a single resource.

[0049] S130. Obtain a specified group with a specified group identifier, wherein the specified group identifier includes any string input.

[0050] The specified group refers to the location where the mapping object is created. This specified group can be a user-specified group or a default group. The specified group has a specified group identifier, which can include any string entered; in other words, the specified group identifier is determined by user input and is not subject to any restrictions.

[0051] In this context, a group refers to a basic unit within a preset data management system, which is a separate data management system from the default data management system of image editing tools. Within the preset data management system, each group can contain subgroups, mapping files, etc., while mapping files do not have subgroups.

[0052] When obtaining a specified group with a specified group identifier, the specified group can be determined based on the specified user operation if the specified user operation is detected; otherwise, the default group can be determined as the specified group.

[0053] The default group can refer to the top-level group in the preset data management system, meaning that all groups and mapping files created in the preset data management system are under this default group.

[0054] In some implementations, when determining a specified group based on a specified operation, the data type of the specified object to which the specified operation is applied may be determined; if the data type of the specified object is a file type, the parent group of the specified object is determined as the specified group; if the data type of the specified object is a folder type, the specified object is determined as the specified group.

[0055] When the specified object's data type is file, it can be considered a mapped file. Since mapped files have no children, the parent group of the mapped file can be obtained and used as the specified group. The parent group refers to the parent of the current mapped file, that is, the group to which the mapped file belongs. If the specified object's data type is folder, it can be considered a group, and this group can be directly used as the specified group.

[0056] S140. Based on the data type, create a mapping object corresponding to the object to be processed in the specified group.

[0057] The specified group refers to the location where the mapping object is created. After obtaining the specified group and the data type of the object to be processed, the mapping object corresponding to the object to be processed can be created in the specified group.

[0058] In some implementations, the instruction information for the object to be processed can be determined based on the data type; the instruction information can be added to the designated group to obtain the mapping object of the object to be processed.

[0059] The indication information refers to information used to uniquely identify the object to be processed. It can be written into a designated group to establish a link between the pre-defined data management system and resources. Different data types of objects to be processed have different indication information. When determining the indication information for an object to be processed based on its data type, if the data type is a folder, the indication information can be determined as the storage path of the object; if the data type is a file, the indication information can be determined as the globally unique identifier (GUID) of the object.

[0060] If the data type of the object to be processed is a folder, it indicates that the object to be processed refers to a collection of resources. Therefore, the indication information can be determined as the storage path of the object to be processed, which is used to uniquely indicate the collection of resources.

[0061] If the data type of the object to be processed is file, it indicates that the object refers to a single resource. Therefore, the indication information can be determined as the GUID of the object to be processed, which is used to uniquely indicate a single resource. A GUID is a unique identifier automatically assigned to a resource by an image creation tool when it generates the resource, and can be used to uniquely indicate a specific resource.

[0062] After determining the instruction information, it can be added to a specified group to obtain a mapping object for the object to be processed. The instruction information for the object to be processed can include a storage path or a GUID; different instruction information is added to the specified group in different ways.

[0063] In some implementations, if the indication information is the storage path of the object to be processed, when adding the indication information to a specified group to obtain the mapping object of the object to be processed, it may be to obtain the link list of the specified group; add the storage path to the link list to obtain the mapping object of the object to be processed.

[0064] The link list can be used to record the storage paths of resource sets in the specified group. Therefore, if the indication information is the storage path of the object to be processed, the storage path can be added to the link list, and the storage path stored in the link list can be used as the mapping object of the object to be processed.

[0065] In some implementations, if the indication information is the GUID of the object to be processed, when adding the indication information to a specified group to obtain the mapping object of the object to be processed, the following steps may be taken: obtaining the object identifier of the object to be processed; creating a mapping file with the object identifier in the specified group; storing the globally unique identifier in the mapping file to obtain the mapping object of the object to be processed.

[0066] A GUID can be used to uniquely identify a resource. If the identifier is the GUID of the object to be processed, it can be the object identifier of the object to be processed, that is, the resource identifier corresponding to the resource indicated by the object to be processed. Then, a mapping file is created in the specified group. The name of this mapping file is the object identifier. The GUID of the object to be processed is then stored in the mapping file. The mapping file storing the corresponding GUID is used as the mapping object of the object to be processed.

[0067] For example, the objects to be processed include resource A and resource collection B, and the group is specified as Group1. When creating the mapping object for resource A, a mapping file for resource A can be created, and then the GUID of resource A can be recorded in the mapping file. When creating the mapping object for resource collection B, the link list of Group1 can be obtained, and the storage path of resource collection B can be written into the link list.

[0068] In some implementations, the mapping file or link list may also store other information about the object to be processed, such as the object identifier, runtime parameters, etc., which can be set according to actual needs and are not specifically limited here. The object identifier refers to the resource name of the resource, and the runtime parameters refer to the parameters used when using the object. As one implementation, when the object to be processed changes, the changes can be synchronously updated to the mapping file or link list based on specified information.

[0069] In some implementations, to facilitate user understanding of all resources under a specified group, after creating a mapping object in the specified group, the specified group and all resources within it can be displayed. For example, this could involve: obtaining a globally unique identifier to be used based on the instruction information for creating the mapping object; creating a temporary mapping file for each resource based on the globally unique identifier to be used; and displaying the specified group and the temporary mapping file.

[0070] It's understandable that after creating the mapping object corresponding to the object to be processed, it can be assumed that all resources indicated by the object to be processed are stored in the database. To facilitate user operations on the data in the database, all resources indicated by the object to be processed can be displayed under a specified group.

[0071] One implementation method is to obtain the indication information used to create the mapping object. As mentioned earlier, this could be a storage path or a globally unique identifier. If the indication information is a storage path, then the globally unique identifiers corresponding to all resources under that storage path are obtained; if the indication information is a globally unique identifier, it is obtained directly. This allows obtaining the globally unique identifiers corresponding to all resources indicated by the mapping object, and these globally unique identifiers are recorded as globally unique identifiers to be used.

[0072] The globally unique identifier to be used refers to the globally unique identifier corresponding to all resources indicated by the mapped object. One globally unique identifier can refer to one resource. When creating a temporary mapping file corresponding to each resource using the globally unique identifier to be used, a corresponding temporary mapping file can be created for each resource, and the globally unique identifier of the resource can be stored in the temporary mapping file. That is, one temporary mapping file stores one globally unique identifier to be used, and one temporary mapping file corresponds to one resource.

[0073] In both creating a mapping file and a temporary mapping file, the resource identifier corresponding to the resource indicated by the globally unique identifier can be used as the file identifier of the mapping file or the temporary mapping file. Therefore, in some implementations, when displaying a specified group and a temporary mapping file, the specified group identifier of the specified group and the file identifier of the temporary mapping file under the specified group can be displayed.

[0074] For example, if object A to be processed is a file and object B to be processed is a folder, the content displayed on the graphical user interface could be, under a specified group, the resource identifiers of resource A, resource B1, and resource B2. For example, see... Figure 4 This outputs another schematic diagram showcasing the resources. Among them, Figure 4 This is how resources are displayed under the preset data management system. Resources A, B1, and B2 are all displayed under Group1. The group identifier of Group1 can be modified arbitrarily and supports Chinese characters or other strings. Figure 3 The naming of resource set B and resource A, as shown, must follow certain rules. For example, only combinations of letters and numbers can be used, making it difficult for users to quickly understand the content of the resources based on their names.

[0075] Resource A has a corresponding mapping file, while resources B1 and B2 have corresponding temporary mapping files. These temporary mapping files are created only when the resource indicated by the object to be processed needs to be displayed on the graphical user interface, in order to record a globally unique identifier for each resource.

[0076] It's important to note that since a specified group can have a specified group identifier, the naming of that group is unrestricted and entirely dependent on user input. Therefore, users can set the specified group identifier as a field as needed, and quickly obtain general information about the resources within each group based on the identifier, facilitating the location of objects to be processed. Furthermore, as the number of resources increases, the group identifier can also be used to quickly retrieve the corresponding resources, avoiding the need to recreate them, thus saving costs and reducing the project package size.

[0077] To facilitate users' quick access to the detailed content of the objects to be processed under each group, a quick preview of the resources indicated by the displayed temporary mapping file can also be implemented based on user operations. For example, in response to a selection operation, a target file can be determined from the temporary mapping file; a target resource can be determined from the objects to be processed based on a globally unique identifier in the target file; the target resource can be previewed, and the target object corresponding to the target resource can be controlled to be displayed in a specified area.

[0078] The graphical user interface can display specified group identifiers and file identifiers for temporary mapping files. When a user needs to know the detailed content of the resource indicated by a certain file identifier, they can perform a selection operation. Upon detecting a selection operation, the system can respond by determining the temporary mapping file corresponding to the file identifier affected by the selection operation as the target file. For example, if the selection operation is a click operation, and the user clicks... Figure 4 If resource A is specified, the temporary mapping file indicated by resource A can be identified as the target file.

[0079] Since the target file is not the data used during preview, once the target file is identified, the corresponding target resource can be found based on the globally unique identifier recorded in the target file. The target resource is the actual resource needed during preview. Specifically, the resource with the globally unique identifier can be directly identified as the target resource, which is the resource in the object to be processed.

[0080] In existing image editing tools, previewing resources usually requires relatively complex operations, resulting in low resource preview efficiency. In order to make it easier for users to quickly understand the detailed content of the target resource, the target resource can be previewed, and the target object corresponding to the target resource can be controlled to be displayed in a specified area.

[0081] Preview processing refers to displaying the detailed content of the target resource so that users can quickly understand its details and improve resource search efficiency. When previewing a target resource, the target resource can be instantiated to obtain a target object located in a preset virtual scene; the parameters of a virtual camera in the preset virtual scene can be set to preset camera parameters to obtain a virtual camera to be used; the target object can be controlled to play within the preset virtual scene, and the images captured by the virtual camera to be used can be acquired to obtain a rendering image; the rendering image to be rendered can be processed based on preset rendering parameters to obtain a preview image; and the preview image can be output to a preset output path, which is the path corresponding to the specified area.

[0082] When instantiating a target resource, you can call the corresponding instantiation interface, such as the Object.Instantiate interface, to process the target resource, thereby generating the target object corresponding to the target resource in a preset virtual scene. The preset virtual scene is a pre-created virtual scene used for previewing the resource.

[0083] In some implementations, to ensure that the preview effect of the target resource is the same as that in actual operation, the parameters of the virtual camera during the actual operation of the target resource can be obtained, i.e., preset camera parameters. Then, the parameters of the virtual camera in the preset virtual scene can be set to these preset camera parameters to obtain the virtual camera to be used. The preset camera parameters may include camera position, camera type, etc.

[0084] The virtual camera can capture images from a preset virtual scene, and then the renderer can be used to render the captured images and output the final preview image.

[0085] Instantiate the target resource into the preset virtual scene. After obtaining the target object, you can control the target object to play in the preset virtual scene and obtain the image captured by the virtual camera to be used to obtain the image to be rendered.

[0086] In some embodiments, different interfaces need to be called when controlling the target object to play in a preset virtual scene for target resources of different resource types. Therefore, when playing the target object and obtaining the image to be rendered captured by the virtual camera to be used, the process may involve: obtaining the resource type corresponding to the target resource; determining the specified interface used to play the target object based on the resource type; calling the specified interface to control the target object to play in the preset virtual scene; and capturing the image to be rendered through the virtual camera to be used during the playback of the target object in the virtual scene.

[0087] When a target resource is acquired, its resource type can be obtained. When determining the specified interface based on the resource type, a pre-set call relationship table can be accessed. This table associates and stores the resource type with the specified interface to be called. For example, if the resource type is a special effects type, the corresponding specified interface could be the playback interface for special effects particles and the frame update interface for the editor; if the resource type is an action type, the corresponding specified interface could be the action class interface and the frame update interface for the editor.

[0088] It should be noted that if you want to preview the target resource of the action type, you first need to have the model resource and add an action file to the model. Then, use the model with the added action file as the entire target resource for previewing.

[0089] Therefore, in the call relationship table, the specified interface corresponding to the resource type of the target resource can be found, and then the specified interface can be called to control the playback of the target object in the preset virtual scene. During the playback of the target object, the image can be captured by the virtual camera to be used to obtain the image to be rendered.

[0090] Then, the image to be rendered is processed based on the preset rendering parameters to obtain the preview image. The preset rendering parameters are the rendering parameters used by the target resource at runtime, such as material parameters, color parameters, lighting parameters, texture parameters, etc.

[0091] After obtaining the preview image, to ensure it appears on the current interface, the output path of the virtual camera to be used can be modified to the path corresponding to a specified area within the current interface. This allows the preview image to be directly output to the current interface, enabling users to display a preview of the corresponding resource when clicking on a temporary mapping file.

[0092] It should be noted that the resource processing method described in this application can be used as an enhancement tool for the Timeline in image editing tools. The Timeline is a linear editing tool used to serialize different elements, including animation clips, music, special effects, camera footage, particle effects, etc., primarily for real-time playback. When using this enhancement tool, users can freely group resources within it, and the group names can be customized without being restricted by the image editing tool. Based on the group name, the approximate information of the resources within the group can be obtained, facilitating quick resource location. To further facilitate users' understanding of detailed resource information, clicking on a resource within the tool allows for a quick preview of that resource; both special effects and actions can be previewed quickly without complex operations.

[0093] In some implementations, Timelineplus can be used to improve the efficiency of timeline production. If the tools for sound effect production are integrated into Timelineplus, the sound effect resources can be processed in the same way as the aforementioned special effects resources and motion resources. This allows different types of resources to be integrated, and the general information of the resources can be obtained through grouping identifiers. The detailed information of the resources can be obtained through previewing, which can shorten the overall image production time and improve the efficiency of image production.

[0094] The resource processing solution provided in this application can be applied to various scenarios where image creation is performed using image creation tools. For example, taking the creation of cutscenes using a game engine as an example, resources can be organized and managed differently through a preset data management system, which supports custom naming, making it easier for developers to quickly understand the content of resources, achieve rapid resource location, and further improve the efficiency of image creation.

[0095] The method provided in this application embodiment can obtain an object to be processed, which includes at least one resource in an image editing tool; determine the data type of the object to be processed based on its storage path; obtain a specified group with an input specified group identifier; and create a mapping object corresponding to the object to be processed in the specified group according to the data type. Mapping the object to be processed to the specified group based on its data type, where the identifier of the specified group can support any string, can overcome the naming restrictions of the image editing tool, and can maintain the association between the mapping object and the object to be processed. This facilitates users to quickly obtain the content of the resource and enables rapid resource location, improving image editing efficiency.

[0096] The method described in the above embodiments will be further described in detail below.

[0097] In this embodiment, the method of this application embodiment will be described in detail using editing in Timelineplus as an example.

[0098] like Figure 5 As shown, the specific process of a resource processing method is as follows:

[0099] S210. Obtain the object to be processed, wherein the object to be processed includes at least one resource in the image creation tool.

[0100] S220. Determine the data type of the object to be processed based on its storage path.

[0101] S230. Obtain a specified group with a specified group identifier, wherein the specified group identifier includes any string input.

[0102] S240. Based on the data type, create a mapping object corresponding to the object to be processed in the specified group.

[0103] S250: Display the specified group identifier, as well as the resource identifier for each resource in the object to be processed.

[0104] S260. In response to the selection operation, preview the resource indicated by the selection operation.

[0105] Steps S210 to S240 involve calling a tool integrated with the embodiments of this application to reorganize the resource structure, that is, organizing resources in a preset data management system and establishing a link with the resources of the default data management system. For details, please refer to the corresponding descriptions in the foregoing embodiments. To avoid repetition, they will not be repeated here.

[0106] Understandably, image editing tools have a default data management system. Under this default data management system, certain naming conventions must be followed. For example, Chinese characters cannot be used, and only combinations of numbers and letters can be used for naming. Users often find it difficult to know the content of a resource based on its name.

[0107] After creating the mapping object corresponding to the object to be processed in the specified group, a resource mapping is created under the preset data management system. This system displays the group and the resource identifiers of all resources indicated by the object to be processed within that group. Furthermore, both the group identifier and the resource identifier can be modified to any string; for example, they can be changed to a more user-friendly expression. Users can customize these settings according to their actual needs, quickly identifying the resource content based on the group identifier or resource identifier, facilitating rapid resource location.

[0108] To further ensure that users can quickly access more detailed information about the resources, the selected resources can be previewed in real time. This means that there is no need to switch from editing mode to preview mode; the preview of the resources can be displayed directly within the graphical user interface in editing mode.

[0109] When displaying the group and the resource identifiers of all resources indicated by the objects to be processed in that group, the user can click on any resource identifier. In the preset data management system, each mapped object can establish a link with the real resource. Thus, when a resource identifier is selected, the real resource can be located, and the real resource can be previewed and processed. The processing result is then output to the specified area of ​​the current editor, realizing real-time preview of the resource.

[0110] Since this method can be integrated into Timelineplus, the graphical user interface provided uses Timelineplus's interface as the main window. This main window can consist of a series of sub-tool windows, including a quick preview window, which can be further divided into effects quick preview windows, action quick preview windows, Timeline quick preview windows, etc., and can be expanded as needed. All quick previews can be implemented through a core preview class, displaying the preview image in a specified area. During previewing, operations are performed using group identifiers and resource identifiers displayed under the preset data management system. The content in the preset data management system is linked to resources in the default data management system, thus allowing the location of the resources needed for previewing.

[0111] The following section will provide a detailed explanation of the operation and visuals during the quick preview, with reference to the accompanying diagrams.

[0112] Please see Figure 6 The diagram illustrates the interface when previewing model motion resources. Within the area indicated by 101, groups and resources under "Model Motions" are displayed. If the user selects "Resource A," the motions associated with "Resource A" will be displayed in the area indicated by 102. If the user selects "Action 2," the image of Resource A performing Action 2 will be displayed in the area indicated by 103. For example, if "Resource A" is a model of a small dinosaur and "Action 2" is holding a virtual arrow, then the motion of the small dinosaur holding a virtual arrow will be displayed in the area indicated by 103.

[0113] This interface also displays "Timeline" controls, "Effects" controls, and "Model Actions" controls, used to switch between different types of resources. The "Add" control can be used to add mapping objects, the "Delete" control can be used to delete mapping objects, and the "Create Group" control can be used to create new groups.

[0114] The preview tools for Timeline and Effects resources are similar; the following explanation will use Effects resources as an example. Please refer to [link / reference]. Figure 7 The diagram illustrates the interface when previewing special effects resources. In the area indicated by 104, the groups and resources under "Special Effects" are displayed. If the user selects "Resource C," the area indicated by 105 shows the operations that can be performed on "Resource C," such as adding sound effect components, saving sound effect settings, etc. The area indicated by 106 displays the image corresponding to "Resource C." For example, if Resource C is a fire effect, then the fire effect will be displayed in the area indicated by 106.

[0115] As can be seen from the above, the embodiments of this application can create a mapping object corresponding to the object to be processed in a specified group in a preset data management system, and display the specified group and all resources under that group. The group identifier of the specified group can be customized to overcome the naming restrictions of image editing tools, allowing users to quickly identify the content of the resources based on the customized group identifier. To further facilitate real-time previewing of resources, the user-selected resources can also be previewed directly within the current tool's interface, eliminating the need to switch between modes and windows, simplifying the previewing process and further improving image editing efficiency.

[0116] To better implement the above methods, this application also provides a resource processing device, which can be integrated into an electronic device, such as a terminal or server. The terminal can be a mobile phone, tablet computer, smart Bluetooth device, laptop computer, personal computer, etc.; the server can be a single server or a server cluster composed of multiple servers.

[0117] For example, in this embodiment, the method of this application embodiment will be described in detail by taking the resource processing device specifically integrated into the terminal as an example.

[0118] For example, such as Figure 8 As shown, the resource processing device 300 may include an object acquisition module 310, a determination module 320, a group acquisition module 330, and a creation module 340.

[0119] The object acquisition module 310 is used to acquire an object to be processed, the object to be processed including at least one resource in the image creation tool;

[0120] The determining module 320 is used to determine the data type of the object to be processed based on the storage path of the object to be processed;

[0121] The group acquisition module 330 is used to acquire a specified group with a specified group identifier, wherein the specified group identifier includes any string input.

[0122] The creation module 340 is used to create a mapping object corresponding to the object to be processed in the specified group according to the data type.

[0123] In some embodiments, the determining module 320 is further configured to:

[0124] Obtain the storage path of the object to be processed;

[0125] If the object to be processed indicated by the storage path is a resource collection, the data type of the object to be processed is determined to be a folder type;

[0126] If the object to be processed indicated by the storage path is a single resource, the data type of the object to be processed is determined to be a file type.

[0127] In some embodiments, the creation module 340 further includes:

[0128] An instruction information determining unit is used to determine instruction information for the object to be processed based on the data type.

[0129] The mapping unit is used to add the indication information to the specified group to obtain the mapping object of the object to be processed.

[0130] In some embodiments, the data type includes a file type or a folder type, and the information determination unit is further configured to:

[0131] If the data type is a folder, the indication information is determined as the storage path of the object to be processed;

[0132] If the data type is a file type, the indication information is determined as the globally unique identifier of the object to be processed.

[0133] In some embodiments, the indication information is the storage path of the object to be processed, and the mapping unit is further configured to:

[0134] Retrieve the list of links for the specified group;

[0135] Add the storage path of the object to be processed to the link list to obtain the mapping object of the object to be processed.

[0136] In some embodiments, the indication information is a globally unique identifier of the object to be processed, and the mapping unit is further configured to:

[0137] Obtain the object identifier of the object to be processed;

[0138] Create a mapping file with the object identifier in the specified group;

[0139] The globally unique identifier of the object to be processed is stored in the mapping file to obtain the mapping object of the object to be processed.

[0140] In some embodiments, after adding the indication information to the designated group to obtain the mapping object of the object to be processed, the mapping unit is further configured to:

[0141] Based on the instruction information for creating the mapping object, obtain the globally unique identifier to be used, wherein the globally unique identifier to be used is the globally unique identifier corresponding to the resource indicated by the mapping object;

[0142] Based on the globally unique identifier to be used, create a temporary mapping file for each resource;

[0143] Display the specified group and the temporary mapping file.

[0144] In some embodiments, the resource processing apparatus 300 further includes a preview module, which includes:

[0145] A response unit is configured to determine the target file from the temporary mapping file in response to a selection operation;

[0146] The target resource determination unit is used to determine the target resource from the object to be processed based on the globally unique identifier in the target file;

[0147] The preview unit is used to preview the target resource and control the target object corresponding to the target resource to be displayed in a specified area.

[0148] In some embodiments, the preview unit is further configured to:

[0149] The target resource is instantiated to obtain a target object located in a preset virtual scene;

[0150] Set the parameters of the virtual camera in the preset virtual scene to the preset camera parameters to obtain the virtual camera to be used;

[0151] The target object is controlled to play in the preset virtual scene, and the images captured by the virtual camera to be used are obtained to obtain the image to be rendered;

[0152] The image to be rendered is rendered based on preset rendering parameters to obtain a preview image;

[0153] The preview image is output to a preset output path, which is the path corresponding to the specified area.

[0154] In some embodiments, the preview unit is further configured to:

[0155] Obtain the resource type corresponding to the target resource;

[0156] Based on the resource type, determine the specified interface used to play the target object;

[0157] Call the specified interface to control the target object to play in the preset virtual scene;

[0158] During the playback of the target object in the virtual scene, the image is captured by the virtual camera to be used to obtain the image to be rendered.

[0159] In practice, each of the above modules or units can be implemented as an independent entity or can be combined arbitrarily to be implemented as the same or several entities. For the specific implementation of each of the above modules or units, please refer to the previous method embodiments, which will not be repeated here.

[0160] As can be seen from the above, the resource processing device of this embodiment can acquire a to-be-processed object, which includes at least one resource in the image editing tool; determine the data type of the to-be-processed object based on its storage path; acquire a specified group with an input specified group identifier; and create a mapping object corresponding to the to-be-processed object in the specified group according to the data type. Mapping the to-be-processed object to the specified group based on its data type, where the identifier of the specified group can support any string, can overcome the naming restrictions of the image editing tool, and can maintain the association between the mapping object and the to-be-processed object. This facilitates users in obtaining resource content and enables rapid resource location, improving image editing efficiency.

[0161] Accordingly, this application also provides an electronic device, which can be a terminal or a server. The terminal can be a smartphone, tablet computer, laptop computer, touch screen, game console, personal computer, personal digital assistant (PDA) and other terminal devices.

[0162] like Figure 9 As shown, Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device 400 includes a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 and the memory 402 are electrically connected. Those skilled in the art will understand that the electronic device structure shown in the figure does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0163] The processor 401 is the control center of the electronic device 400. It connects various parts of the electronic device 400 through various interfaces and lines. By running or loading software programs and / or modules stored in the memory 402, and calling data stored in the memory 402, it performs various functions of the electronic device 400 and processes data, thereby monitoring the electronic device 400 as a whole.

[0164] In this embodiment, the processor 401 in the electronic device 400 loads the instructions corresponding to the processes of one or more applications into the memory 402 according to the following steps, and the processor 401 runs the applications stored in the memory 402 to realize various functions:

[0165] Obtain an object to be processed, the object to be processed including at least one resource in the image creation tool; determine the data type of the object to be processed based on the storage path of the object to be processed; obtain a specified group with a specified group identifier, the specified group identifier including any input string; and create a mapping object corresponding to the object to be processed in the specified group according to the data type.

[0166] Creating a mapping object corresponding to the object to be processed in a group with a specified group identifier allows for the reorganization and management of resources. The specified group identifier supports any input string, which can break through the naming restrictions of image editing tools. Users can set it arbitrarily according to their own preferences, making it easy for users to quickly understand the content of the resource and also to quickly locate the resource, thus improving the efficiency of image editing.

[0167] Obtain the storage path of the object to be processed; if the object to be processed indicated by the storage path is a collection of resources, determine the data type of the object to be processed as a folder type; if the object to be processed indicated by the storage path is a single resource, determine the data type of the object to be processed as a file type.

[0168] The data type of the object to be processed can be determined based on the storage path, which facilitates the subsequent process of creating different mapping objects according to the data type.

[0169] Based on the data type, determine the instruction information for the object to be processed; add the instruction information to the specified group to obtain the mapping object of the object to be processed.

[0170] Based on the data type, the instruction information can be determined. Using the instruction information, a mapping object can be created, and a link can be established between the mapping object and the object to be processed, which facilitates the mutual location of the mapping object and the object to be processed.

[0171] If the data type is a folder, the indication information is determined as the storage path of the object to be processed; if the data type is a file, the indication information is determined as the globally unique identifier of the object to be processed.

[0172] Using different indication information for different data types can improve the accuracy of creating corresponding mappings based on the indication information.

[0173] Obtain the link list of the specified group; add the storage path of the object to be processed to the link list to obtain the mapping object of the object to be processed.

[0174] Obtain the object identifier of the object to be processed; create a mapping file with the object identifier in the specified group; store the globally unique identifier of the object to be processed into the mapping file to obtain the mapping object of the object to be processed.

[0175] Using different methods when creating mapping objects with different instructions ensures accurate linking and avoids linking errors.

[0176] Based on the instruction information for creating the mapping object, obtain the globally unique identifier to be used, which is the globally unique identifier corresponding to the resource indicated by the mapping object; based on the globally unique identifier to be used, create a temporary mapping file corresponding to each resource; display the specified group and the temporary mapping file.

[0177] To facilitate subsequent user operations, all resources indicated by the created mapping object and their corresponding groups can be displayed.

[0178] In response to a selection operation, a target file is determined from the temporary mapping file; a target resource is determined from the objects to be processed based on a globally unique identifier in the target file; the target resource is previewed, and the target object corresponding to the target resource is displayed in a specified area.

[0179] To reduce the complexity of previewing, users can directly interact with the displayed resources and groups, previewing the selected resources in a designated area in real time, allowing users to quickly learn about the detailed content of the resources.

[0180] The target resource is instantiated to obtain a target object located in a preset virtual scene; the parameters of the virtual camera in the preset virtual scene are set to preset camera parameters to obtain a virtual camera to be used; the target object is controlled to play in the preset virtual scene, and the image captured by the virtual camera to be used is acquired to obtain an image to be rendered; the image to be rendered is rendered based on preset rendering parameters to obtain a preview image; the preview image is output to a preset output path, which is the path corresponding to the specified area.

[0181] Obtain the resource type corresponding to the target resource; based on the resource type, determine the specified interface used to play the target object; call the specified interface to control the target object to play in the preset virtual scene; during the playback of the target object in the virtual scene, capture images through the virtual camera to be used to obtain the image to be rendered.

[0182] To ensure that the preview effect is the same as the actual running effect, data from the actual running process can be obtained for preview processing to ensure the accuracy of the real-time preview.

[0183] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0184] Optional, such as Figure 9 As shown, the electronic device 400 also includes: a touch display screen 403, a radio frequency circuit 404, an audio circuit 405, an input unit 406, and a power supply 407. The processor 401 is electrically connected to the touch display screen 403, the radio frequency circuit 404, the audio circuit 405, the input unit 406, and the power supply 407. Those skilled in the art will understand that... Figure 9 The electronic device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0185] The touch display screen 403 can be used to display a graphical user interface (GUI) and receive operation commands generated by the user interacting with the GUI. The touch display screen 403 may include a display panel and a touch panel. The display panel can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Optionally, the display panel can be configured using a liquid crystal display (LCD), organic light-emitting diode (OLED), or other similar technologies. The touch panel can be used to collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch panel), generate corresponding operation commands, and execute the corresponding program according to the operation commands. Optionally, the touch panel may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch location and the signal generated by the touch operation, transmitting the signal to the touch controller. The touch controller receives touch information from the touch detection device, converts it into touch point coordinates, and sends it to the processor 401. It can also receive and execute commands from the processor 401. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it transmits the information to the processor 401 to determine the type of touch event. Subsequently, the processor 401 provides corresponding visual output on the display panel based on the type of touch event. In this embodiment, the touch panel and the display panel can be integrated into the touch display screen 403 to achieve input and output functions. However, in some embodiments, the touch panel and the touch display screen 403 can be implemented as two independent components to achieve input and output functions. That is, the touch display screen 403 can also be used as part of the input unit 406 to achieve input functions.

[0186] The radio frequency circuit 404 can be used to transmit and receive radio frequency signals to establish wireless communication with network devices or other electronic devices, and to transmit and receive signals with network devices or other electronic devices.

[0187] Audio circuit 405 can be used to provide an audio interface between a user and an electronic device via a speaker and a microphone. Audio circuit 405 can convert received audio data into electrical signals and transmit them to the speaker, where the speaker converts them into sound signals for output. Conversely, the microphone converts collected sound signals into electrical signals, which are then received by audio circuit 405, converted back into audio data, and then processed by processor 401 before being transmitted via radio frequency circuit 404 to, for example, another electronic device, or output to memory 402 for further processing. Audio circuit 405 may also include an earphone jack to provide communication between peripheral headphones and electronic devices.

[0188] The input unit 406 can be used to receive input numbers, characters, or user characteristic information (such as fingerprints, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.

[0189] Power supply 407 is used to supply power to various components of electronic device 400. Optionally, power supply 407 can be logically connected to processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. Power supply 407 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0190] although Figure 9 As not shown in the diagram, the electronic device 400 may also include a camera, sensor, wireless fidelity module, Bluetooth module, etc., which will not be described in detail here.

[0191] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0192] As can be seen from the above, the electronic device provided in this embodiment can acquire an object to be processed, which includes at least one resource in the image editing tool; determine the data type of the object to be processed based on its storage path; acquire a specified group with an input specified group identifier; and create a mapping object corresponding to the object to be processed in the specified group according to the data type. Based on the data type of the object to be processed, the object is mapped to the specified group. The identifier of the specified group can support any string, which can overcome the naming restrictions of the image editing tool. Creating a mapping object based on the data type can also maintain the association between the mapping object and the object to be processed, making it convenient for users to quickly obtain the content of the resource and enabling rapid resource location, thus improving image editing efficiency.

[0193] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0194] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute steps in any of the resource processing methods provided in embodiments of this application. For example, the computer program can execute the following steps:

[0195] Obtain an object to be processed, the object to be processed including at least one resource in the image creation tool; determine the data type of the object to be processed based on the storage path of the object to be processed; obtain a specified group with a specified group identifier, the specified group identifier including any input string; and create a mapping object corresponding to the object to be processed in the specified group according to the data type.

[0196] Creating a mapping object corresponding to the object to be processed in a group with a specified group identifier allows for the reorganization and management of resources. The specified group identifier supports any input string, which can break through the naming restrictions of image editing tools. Users can set it arbitrarily according to their own preferences, making it easy for users to quickly understand the content of the resource and also to quickly locate the resource, thus improving the efficiency of image editing.

[0197] Obtain the storage path of the object to be processed; if the object to be processed indicated by the storage path is a collection of resources, determine the data type of the object to be processed as a folder type; if the object to be processed indicated by the storage path is a single resource, determine the data type of the object to be processed as a file type.

[0198] The data type of the object to be processed can be determined based on the storage path, which facilitates the subsequent process of creating different mapping objects according to the data type.

[0199] Based on the data type, determine the instruction information for the object to be processed; add the instruction information to the specified group to obtain the mapping object of the object to be processed.

[0200] Based on the data type, the instruction information can be determined. Using the instruction information, a mapping object can be created, and a link can be established between the mapping object and the object to be processed, which facilitates the mutual location of the mapping object and the object to be processed.

[0201] If the data type is a folder, the indication information is determined as the storage path of the object to be processed; if the data type is a file, the indication information is determined as the globally unique identifier of the object to be processed.

[0202] Using different indication information for different data types can improve the accuracy of creating corresponding mappings based on the indication information.

[0203] Obtain the link list of the specified group; add the storage path of the object to be processed to the link list to obtain the mapping object of the object to be processed.

[0204] Obtain the object identifier of the object to be processed; create a mapping file with the object identifier in the specified group; store the globally unique identifier of the object to be processed into the mapping file to obtain the mapping object of the object to be processed.

[0205] Using different methods when creating mapping objects with different instructions ensures accurate linking and avoids linking errors.

[0206] Based on the instruction information for creating the mapping object, obtain the globally unique identifier to be used, which is the globally unique identifier corresponding to the resource indicated by the mapping object; based on the globally unique identifier to be used, create a temporary mapping file corresponding to each resource; display the specified group and the temporary mapping file.

[0207] To facilitate subsequent user operations, all resources indicated by the created mapping object and their corresponding groups can be displayed.

[0208] In response to a selection operation, a target file is determined from the temporary mapping file; a target resource is determined from the objects to be processed based on a globally unique identifier in the target file; the target resource is previewed, and the target object corresponding to the target resource is displayed in a specified area.

[0209] To reduce the complexity of previewing, users can directly interact with the displayed resources and groups, previewing the selected resources in a designated area in real time, allowing users to quickly learn about the detailed content of the resources.

[0210] The target resource is instantiated to obtain a target object located in a preset virtual scene; the parameters of the virtual camera in the preset virtual scene are set to preset camera parameters to obtain a virtual camera to be used; the target object is controlled to play in the preset virtual scene, and the image captured by the virtual camera to be used is acquired to obtain an image to be rendered; the image to be rendered is rendered based on preset rendering parameters to obtain a preview image; the preview image is output to a preset output path, which is the path corresponding to the specified area.

[0211] Obtain the resource type corresponding to the target resource; based on the resource type, determine the specified interface used to play the target object; call the specified interface to control the target object to play in the preset virtual scene; during the playback of the target object in the virtual scene, capture images through the virtual camera to be used to obtain the image to be rendered.

[0212] To ensure that the preview effect is the same as the actual running effect, data from the actual running process can be obtained for preview processing to ensure the accuracy of the real-time preview.

[0213] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0214] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0215] Since the computer program stored in the storage medium can execute the steps of any of the resource processing methods provided in the embodiments of this application, the beneficial effects that any of the resource processing methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.

[0216] The resource processing method, apparatus, storage medium, and electronic device provided in the embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A resource processing method, characterized in that, The method includes: Obtain an object to be processed, the object to be processed including at least one resource in the image creation tool; Based on the storage path of the object to be processed, determine the data type of the object to be processed; Retrieve a specified group with a specified group identifier, wherein the specified group identifier includes any string input; Based on the data type, create a mapping object corresponding to the object to be processed in the specified group; The target resource is instantiated to obtain a target object located in a preset virtual scene; the parameters of the virtual camera in the preset virtual scene are set to preset camera parameters to obtain a virtual camera to be used; wherein, the target resource is determined based on the globally unique identifier of the target file determined in the temporary mapping file, and the temporary mapping file is created according to the globally unique identifier to be used obtained from the instruction information for creating the mapping object; The target object is controlled to play in the preset virtual scene, and the images captured by the virtual camera to be used are obtained to obtain the image to be rendered; The image to be rendered is rendered based on preset rendering parameters to obtain a preview image; the preview image is then output to a preset output path, which is the path corresponding to a specified area.

2. The method according to claim 1, characterized in that, Determining the data type of the object to be processed based on its storage path includes: Obtain the storage path of the object to be processed; If the object to be processed indicated by the storage path is a resource collection, the data type of the object to be processed is determined to be a folder type; If the object to be processed indicated by the storage path is a single resource, the data type of the object to be processed is determined to be a file type.

3. The method according to claim 1, characterized in that, The step of creating a mapping object corresponding to the object to be processed in the specified group according to the data type includes: Based on the data type, determine the instruction information indicating the object to be processed; The instruction information is added to the specified group to obtain the mapping object of the object to be processed.

4. The method according to claim 3, characterized in that, The data type includes file type or folder type, and the step of determining the indication information indicating the object to be processed based on the data type includes: If the data type is a folder, the indication information is determined as the storage path of the object to be processed; If the data type is a file type, the indication information is determined as the globally unique identifier of the object to be processed.

5. The method according to claim 4, characterized in that, The indication information is the storage path of the object to be processed. Adding the indication information to the specified group to obtain the mapping object of the object to be processed includes: Retrieve the list of links for the specified group; Add the storage path of the object to be processed to the link list to obtain the mapping object of the object to be processed.

6. The method according to claim 4, characterized in that, The indication information is a globally unique identifier for the object to be processed. Adding the indication information to the specified group to obtain the mapping object of the object to be processed includes: Obtain the object identifier of the object to be processed; Create a mapping file with the object identifier in the specified group; The globally unique identifier of the object to be processed is stored in the mapping file to obtain the mapping object of the object to be processed.

7. The method according to claim 5 or 6, characterized in that, After adding the indication information to the designated group to obtain the mapping object of the object to be processed, the method further includes: Based on the instruction information for creating the mapping object, obtain the globally unique identifier to be used, wherein the globally unique identifier to be used is the globally unique identifier corresponding to the resource indicated by the mapping object; Based on the globally unique identifier to be used, create a temporary mapping file for each resource; Display the specified group and the temporary mapping file.

8. The method according to claim 7, characterized in that, After displaying the specified group and the temporary mapping file, the method further includes: In response to a selection operation, the target file is determined from the temporary mapping file; The target resource is determined from the object to be processed based on the globally unique identifier in the target file; The target resource is previewed, and the target object corresponding to the target resource is displayed in a specified area.

9. The method according to claim 1, characterized in that, The process of controlling the target object to play within the preset virtual scene and acquiring the images captured by the virtual camera to be used to obtain the image to be rendered includes: Obtain the resource type corresponding to the target resource; Based on the resource type, determine the specified interface used to play the target object; Call the specified interface to control the target object to play in the preset virtual scene; During the playback of the target object in the virtual scene, the image is captured by the virtual camera to be used to obtain the image to be rendered.

10. A resource processing device, characterized in that, The device includes: An object acquisition module is used to acquire an object to be processed, wherein the object to be processed includes at least one resource in the image creation tool; The determining module is used to determine the data type of the object to be processed based on its storage path. The group acquisition module is used to acquire a specified group with a specified group identifier, wherein the specified group identifier includes any string input. A creation module is used to create a mapping object corresponding to the object to be processed in the specified group according to the data type; The preview unit is used to instantiate the target resource to obtain the target object located in the preset virtual scene; set the parameters of the virtual camera in the preset virtual scene to preset camera parameters to obtain the virtual camera to be used; wherein, the target resource is determined based on the globally unique identifier of the target file determined in the temporary mapping file, and the temporary mapping file is created according to the globally unique identifier to be used obtained from the instruction information for creating the mapping object; The preview unit is also used to control the target object to play in the preset virtual scene and to acquire the image captured by the virtual camera to be used, so as to obtain the image to be rendered; The preview unit is also used to render the image to be rendered based on preset rendering parameters to obtain a preview image; and to output the preview image to a preset output path, wherein the preset output path is the path corresponding to a specified area.

11. An electronic device, characterized in that, The system includes a processor and a memory, the memory storing multiple instructions; the processor loads instructions from the memory to perform the steps of the resource processing method as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the resource processing method according to any one of claims 1 to 9.