CN115391278A - Resource processing method and device, electronic equipment and storage medium - Google Patents

Resource processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115391278A
CN115391278A CN202210993419.6A CN202210993419A CN115391278A CN 115391278 A CN115391278 A CN 115391278A CN 202210993419 A CN202210993419 A CN 202210993419A CN 115391278 A CN115391278 A CN 115391278A
Authority
CN
China
Prior art keywords
processed
resource
mapping
target
data type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210993419.6A
Other languages
Chinese (zh)
Inventor
左卫涛
苏晓洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202210993419.6A priority Critical patent/CN115391278A/en
Publication of CN115391278A publication Critical patent/CN115391278A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application discloses a resource processing method, a resource processing device, electronic equipment and a storage medium; the method comprises the following steps: acquiring an object to be processed, wherein the object to be processed comprises at least one resource in an image making tool; determining the data type of the object to be processed based on the storage path of the object to be processed; acquiring a designated group with a designated group identifier, wherein the designated group identifier comprises an input arbitrary character string; and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping. According to the method and the device, the data type of the object to be processed is mapped to the designated group, the group identification of the designated group can comprise any input character string, the naming limitation of an image making tool can be broken through, a user can conveniently and quickly know the content of the resource, the resource can be quickly positioned, and the image making efficiency is improved.

Description

Resource processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a resource processing method and apparatus, an electronic device, and a storage medium.
Background
An image production tool generally refers to software for producing an image, for example, engine software. The engine software is generally used in game production, and with the development of technology, the real-time rendering effect of the engine software is better and better, so that the engine software can be used for producing images.
However, when image content is created by resources in engine software, it is often difficult for a user to quickly obtain the content of the resources under the organization and management of the engine software, which causes low efficiency in locating the resources and further low creation efficiency.
Disclosure of Invention
The embodiment of the application provides a resource processing method and device, an electronic device and a storage medium, so that the content of a resource can be quickly acquired, the efficiency of locating the resource is improved, and the image manufacturing efficiency is further improved.
An embodiment of the present application provides a resource processing method, including:
acquiring an object to be processed, wherein the object to be processed comprises at least one resource in an image making tool;
determining the data type of the object to be processed based on the storage path of the object to be processed;
acquiring a designated group with a designated group identifier, wherein the designated group identifier comprises an input arbitrary character string;
and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping.
An embodiment of the present application further provides a resource processing apparatus, including:
the object acquisition module is used for acquiring an object to be processed, wherein the object to be processed comprises at least one resource in an image making tool;
the determining module is used for determining the data type of the object to be processed based on the storage path of the object to be processed;
the device comprises a group acquisition module, a group identification module and a group identification module, wherein the group acquisition module is used for acquiring a specified group with a specified group identification, and the specified group identification comprises an input arbitrary character string;
and the creating module is used for creating a mapping object corresponding to the object to be processed in the specified grouping according to the data type.
The embodiment of the application also provides an electronic device, which comprises a memory and a control unit, wherein the memory stores a plurality of instructions; the processor loads instructions from the memory to execute the steps of any resource processing method provided by the embodiment of the application.
The embodiments of the present application further provide a computer-readable storage medium, where multiple instructions are stored, and the instructions are suitable for being loaded by a processor to perform the steps in any resource processing method provided in the embodiments of the present application.
The method comprises the steps that an object to be processed can be obtained, wherein the object to be processed comprises at least one resource in an image manufacturing tool; determining the data type of the object to be processed based on the storage path of the object to be processed; acquiring a designated group with an input designated group identifier; and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping. The method comprises the steps of mapping objects to be processed to designated groups based on the data types of the objects to be processed, wherein the identifiers of the designated groups can support any character strings, the naming limitation of an image production tool can be broken through, the mapping objects are created based on the data types, and the association between the mapping objects and the objects to be processed can also be kept, so that a user can conveniently and quickly know the content of resources, the resources can be quickly positioned, and the image production efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a resource processing method provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart illustrating a resource processing method according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a presentation resource provided by an embodiment of the present application;
FIG. 4 is another schematic diagram of a presentation resource provided by an embodiment of the application;
FIG. 5 is a flowchart illustrating a resource processing method according to another embodiment of the present application;
FIG. 6 is a schematic interface diagram when previewing a model action resource according to an embodiment of the present application;
FIG. 7 is a schematic interface diagram of previewing special effects resources according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a resource processing apparatus according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a resource processing method and device, electronic equipment and a storage medium.
The resource processing apparatus may be specifically integrated in an electronic device, and the electronic device may be a terminal, a server, or other devices. The terminal can be a mobile phone, a tablet Computer, an intelligent bluetooth device, a notebook Computer, or a Personal Computer (PC); the server may be a single server or a server cluster composed of a plurality of servers.
In some embodiments, the resource processing apparatus may also be integrated in a plurality of electronic devices, for example, the resource processing apparatus may be integrated in a plurality of servers, and the resource processing method of the present application is implemented by the plurality of servers.
In some embodiments, the server may also be implemented in the form of a terminal.
For example, referring to fig. 1, a schematic view of a scenario of a resource processing method provided in an embodiment of the present application is shown, where the scenario may include at least one terminal 1000, at least one server 2000, at least one database 3000, and a network 4000. The terminal 1000 held by the user can be connected to the server 2000 through the network 4000. Wherein terminal 1000 is any device having computing hardware capable of supporting and executing a software product corresponding to image production; the server 2000 may be a single server, or may be a cluster of servers; the network 4000 may be a wireless network or a wired network, such as a Wireless Local Area Network (WLAN), a Local Area Network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, and so on. In addition, different terminals 1000 may also be connected to other terminals or to the server 2000 using their own bluetooth network or hotspot network. In addition, the system may further include at least one database 3000, wherein the database 3000 is used for storing data generated when the user uses the terminal 1000 to perform resource processing.
An application program may be installed on the terminal 1000, and the image creation tool is run on the terminal 1000, so that a user can perform resource processing using the image creation tool. Specifically, the terminal 1000 can obtain an object to be processed, where the object to be processed includes at least one resource in an image production tool; determining the data type of the object to be processed based on the storage path of the object to be processed; acquiring a designated group with a designated group identifier, wherein the designated group identifier comprises an input arbitrary character string; and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping.
The following are detailed descriptions.
In this embodiment, a resource processing method based on an image production tool is provided, and as shown in fig. 2, a specific flow of the resource processing method may be as follows:
s110, obtaining an object to be processed, wherein the object to be processed is at least one resource in the image manufacturing tool.
The image production tool refers to software for producing an image, and may include engine software such as a unity engine, a ghost engine, and the like. The resource is data used for image creation in the image creation tool. For example, it is necessary to present a virtual character outside a virtual building in the created image, and when creating the image, it is necessary to use a model of the virtual character and a model of the virtual building, and the model of the virtual character and the model of the virtual building used therefor are resources.
The resources in the image creation tool may be obtained by importing. In general, when an image is created by an image Creation tool, a material obtained by another Digital Content Creation software (DCC) may be introduced into the image Creation tool, and the material becomes a resource after being introduced into the image Creation tool. Among them, the DCC software may be Maya, 3Ds Max, etc.
The object to be processed refers to a resource that needs to be processed, and may include at least one resource in the image production tool, where one object to be processed may refer to a single resource or a set of resources. It should be noted that the resources may be organized in files within the image production tool, and the files may be organized under folders. That is, a resource may be a file, and a resource collection may refer to a folder, where the resource collection may or may not have only one file.
In some embodiments, the object to be processed may be determined based on a selection operation of a user, for example, under a default data management system of an image production tool, an existing resource may be displayed hierarchically, that is, the resource may be displayed in a folder or file manner. One file represents one resource, and one folder represents all resources in the folder, so that if the file is selected by the user, the object to be processed indicates a single resource, and if the folder is selected by the user, the object to be processed indicates a resource set. For example, there is a resource a and a resource set B, and the resource set B includes a resource B1 and a resource B2, where the resource a, the resource B1, and the resource B2 are single files, and the resource set B is a folder.
For example, referring to FIG. 3, a schematic diagram illustrating a resource is shown. In fig. 3, as a display mode under the default data management system, if a resource a and a resource set B are selected by a user, two to-be-processed objects are generated, which are the to-be-processed object a and the to-be-processed object B, respectively, where the to-be-processed object a is a single resource and the to-be-processed object B is a resource set. If the resource A, the resource B1 and the resource B2 are selected by the user, three objects to be processed are generated, namely the object to be processed A, the object to be processed B1 and the object to be processed B2.
S120, determining the data type of the object to be processed based on the storage path of the object to be processed.
The data type refers to the data organization type of the object to be processed in the image production tool, and may include a file type and a folder type.
When determining the data type of the object to be processed based on the storage path of the object to be processed, the storage path of the object to be processed may be acquired; if the object to be processed indicated by the storage path is a resource set, determining the data type of the object to be processed as a folder type; and if the object to be processed indicated by the storage path is a single resource, determining the data type of the object to be processed as a file type.
After the resources are imported into the image production tool, each resource has its corresponding storage path, and the object to be processed may include at least one resource, whereby each object to be processed also has its corresponding storage path. After the storage path is acquired, whether the object to be processed indicated by the storage path is a resource set or a single resource can be determined; if the object to be processed indicated by the storage path is a resource set, determining the data type of the object to be processed as a folder type; and if the object to be processed indicated by the storage path is a single resource, determining the data type of the object to be processed as a file type. As in the foregoing example, if the to-be-processed object is the to-be-processed object a and the to-be-processed object B, the to-be-processed object a is a file type, and the to-be-processed object B is a folder type.
When determining whether the object to be processed indicated by the storage path is a resource set or a single resource, acquiring the number of resources storable in the storage path; if the number of the storable resources is greater than 1, the storage path indicates that the object to be processed is a resource set; and if the number of the storable resources is equal to 1, considering that the to-be-processed object indicated by the storage path is a single resource. It can be understood that, if the object to be processed is a file type, only one resource can be stored, and if the object to be processed is a folder type, the number of resources that can be stored may be any number.
As an implementation manner, if the storage path of the file contains a specified field and the storage path of the folder does not contain the specified field, when determining whether the object to be processed indicated by the storage path is a resource set or a single resource, it may also be determined whether the specified field exists in the storage path; if yes, the object to be processed indicated by the storage path is considered to be a resource set; if not, the object to be processed indicated by the storage path is considered as a single resource.
S130, acquiring a designated group with a designated group identifier, wherein the designated group identifier comprises any input character string.
The designated group refers to a location where the mapping object is created, and may be a group designated by a user or a default group. Wherein the designated group has a designated group identification, which may include any character string entered, in other words, the designated group identification is determined by user input without any limitation.
The group may refer to a basic unit in a preset data management system, and the preset data management system is another data management system different from a default data management system of the image creation tool. Under the preset data management system, the sub-level of each group can accommodate the group, the mapping file and the like, and the mapping file does not exist in the sub-level.
When acquiring a designated group with a designated group identifier, if a designated operation of a user is detected, determining the designated group according to the designated operation; if the specified operation is not detected, the default packet is determined to be the specified packet.
The default group may refer to a group in the default data management system that is located at the topmost layer, that is, a group created in the default data management system and a mapping file are both below the default group.
In some embodiments, determining the specified grouping according to the specified operation may be determining a data type of the specified object acted upon by the specified operation; if the data type of the designated object is a file type, determining the parent group of the designated object as a designated group; and if the data type of the designated object is the folder type, determining the designated object as a designated group.
When the data type of the designated object is a file type, the designated object can be considered as a mapping file, and because the mapping file does not have a child level, a parent level group of the mapping file can be obtained and used as the designated group. The parent group refers to the parent of the mapping file currently, that is, the group to which the mapping file belongs. If the data type of the designated object is a folder type, the designated object can be considered as a group, and the group can be directly used as a designated group.
S140, according to the data type, creating a mapping object corresponding to the object to be processed in the designated grouping.
The designated grouping refers to a position where a mapping object is created, and after the designated grouping and the data type of the object to be processed are obtained, the mapping object corresponding to the object to be processed can be created in the designated grouping.
In some embodiments, the indication information indicating the object to be processed may be determined according to a data type; and adding the indication information into the specified grouping to obtain a mapping object of the object to be processed.
The indication information is information for uniquely indicating the object to be processed, and can be written into the designated group for establishing a link relation between the preset data management system and the resource. And indicating information of the objects to be processed in different data types is different. When determining the indication information of the object to be processed according to the data type, if the data type is a folder type, determining the indication information as a storage path of the object to be processed; and if the data type is a file type, determining the indication information as a Globally Unique Identifier (GUID) of the object to be processed.
If the data type of the object to be processed is the folder type, it indicates that the object to be processed indicates the resource set, and therefore, the indication information can be determined as the storage path of the object to be processed and used for uniquely indicating the resource set.
If the data type of the object to be processed is a file type, it indicates that the object to be processed indicates a single resource, and thus, the indication information can be determined as the GUID of the object to be processed, which is used for uniquely indicating the single resource. The GUID is a unique identifier that the image production tool automatically assigns to a resource when generating it, and can be used to uniquely indicate a certain resource.
After the indication information is determined, the indication information may be added to the specified group to obtain a mapping object of the object to be processed. The indication information of the object to be processed may include a storage path or a GUID, and different indication information may be added to the designated group in different ways.
In some embodiments, if the indication information is a storage path of the object to be processed, when the indication information is added to the specified group to obtain the mapping object of the object to be processed, a link list of the specified group may be obtained; and adding the storage path into the link list to obtain a mapping object of the object to be processed.
The link list may be used to record a storage path of the resource set in the designated group, so that, if the indication information is the storage path of the object to be processed, the storage path may be added to the link list, and the storage path stored in the link list may be used as a mapping object of the object to be processed.
In some embodiments, if the indication information is the GUID of the object to be processed, when the indication information is added to the specified group to obtain the mapping object of the object to be processed, the object identifier of the object to be processed may be obtained; creating a mapping file with the object identification in the specified grouping; and storing the global unique identifier to the mapping file to obtain a mapping object of the object to be processed.
The GUID may be used to uniquely indicate a certain resource, and if the indication information is the GUID of the object to be processed, the GUID may be an object identifier obtained from the object to be processed, that is, a resource identifier corresponding to the resource indicated by the object to be processed. Then, a mapping file is created in the designated grouping, the name of the mapping file is the object identifier, the GUID of the object to be processed is stored in the mapping file, and the mapping file in which the corresponding GUID is stored is used as the mapping object of the object to be processed.
For example, the object to be processed includes a resource a and a resource set B, the designated Group is Group1, when the mapping object of the resource a is created, a mapping file of the resource a may be created, and then the GUID of the resource a is recorded in the mapping file; when creating the mapping object of the resource set B, the link list of Group1 may be obtained, and the storage path of the resource set B is written into the link list.
In some embodiments, the mapping file or the link list may further store other information of the object to be processed, for example, an object identifier of the object to be processed, an operation parameter of the object to be processed, and the like, which may be specifically set according to an actual need and is not specifically limited herein. The object identifier of the object to be processed refers to a resource name of the resource, and the operation parameter of the object to be processed may refer to a parameter when the object to be processed is used. As an embodiment, when the object to be processed changes, the change can be synchronously updated to the mapping file or the link list based on the specified information.
In some embodiments, to facilitate a user's understanding of all resources under a specified grouping, the specified grouping and all resources in the specified grouping may be exposed after a mapping object is created in the specified grouping. For example, it may be: acquiring a global unique identifier to be used according to the indication information for creating the mapping object, wherein the global unique identifier to be used is a global unique identifier corresponding to the resource indicated by the mapping object; based on the global unique identifier to be used, a temporary mapping file corresponding to each resource is created; and displaying the specified grouping and the temporary mapping file.
It can be understood that, after the mapping object corresponding to the object to be processed is created, all the resources indicated by the object to be processed may be considered to be stored in the database. In order to facilitate the user to operate on the data in the database, all the resources indicated by the object to be processed may be exposed under a specified grouping.
As an embodiment, the indication information used for creating the mapping object may be obtained, and as described above, the indication information may be a storage path or a globally unique identifier. If the indication information is a storage path, acquiring global unique identifiers corresponding to all resources under the storage path; and if the indication information is the globally unique identifier, directly acquiring the indication information. Therefore, the global unique identifiers corresponding to all the resources indicated by the mapping object can be obtained, and the global unique identifiers are recorded as global unique identifiers to be used.
The global unique identifier to be used refers to global unique identifiers corresponding to all resources indicated by the mapping object, and one global unique identifier may refer to one resource. When the temporary mapping file corresponding to each resource is created by using the global unique identifier to be used, the corresponding temporary mapping file may be created for each resource, and the global unique identifier of the resource may 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.
When the mapping file or the temporary mapping file is created, the resource identifier corresponding to the resource indicated by the globally unique identifier may be used as the file identifier of the mapping file or the temporary mapping file. Thus, in some embodiments, when the designated group and the temporary mapping file are exposed, the designated group identifier of the designated group and the file identifier of the temporary mapping file under the designated group may be exposed.
For example, the object a to be processed is a file type, the object B to be processed is a folder type, and the content displayed on the graphical user interface may be a resource identifier showing the resource a, a resource identifier showing the resource B1, and a resource identifier showing the resource B2 in a specified group. For example, referring to FIG. 4, another schematic diagram illustrating a resource is output. Fig. 4 shows a display mode of resources in a preset data management system, where a resource a, a resource B1, and a resource B2 are all displayed in Group1, and a Group identifier of Group1 may be modified at will and may support chinese or other character strings. In the content shown in fig. 3, the naming of the resource set B and the resource a needs to follow a certain rule, for example, only a combination of letters and numbers can be used, which makes it difficult for the user to know the content of the resource directly according to the naming.
Wherein resource A has a corresponding mapping file, and resource B1 and resource B2 have corresponding temporary mapping files. And the temporary mapping file is only created when the resource indicated by the object to be processed needs to be displayed on the graphical user interface so as to record the globally unique identifier corresponding to each resource.
It should be noted that, because the designated group may have the designated group identifier, which also indicates that the naming of the group may not be limited, and completely depends on the user input, the user may set the designated group identifier as required to a required field, and based on the designated group identifier, the approximate information of the resource under each group may be quickly obtained, so as to facilitate the positioning of the object to be processed. And under the condition that more and more resources are available, the corresponding resources can be quickly retrieved through the grouping identification, the resources are prevented from being remanufactured, the cost can be saved, and the size of the project bag body can be reduced.
In order to facilitate the user to quickly know the detailed content of the object to be processed under each group, the resource indicated by the displayed temporary mapping file can be quickly previewed based on the user operation. For example, a target file may be determined from the temporary mapping file in response to the selected operation; determining a target resource from the object to be processed according to the global unique identifier in the target file; and previewing the target resource, and controlling a target object corresponding to the target resource to be displayed in a specified area.
The designated grouping identification and the file identification of the temporary mapping file can be displayed in the graphical user interface, and when a user needs to know the detailed content of the resource indicated by a certain file identification, the user can perform selection operation. When the selection operation is detected, the temporary mapping file corresponding to the file identifier acted by the selection operation can be determined as the target file in response to the selection operation. For example, the selection operation is a click operation, and the user clicks on resource a in fig. 4, so that the temporary mapping file indicated by resource a can be determined as the target file.
Because the target file is not data used in the preview process, after the target file is determined, the corresponding target resource can be searched based on the globally unique identifier recorded in the target file, wherein the target resource is a real resource required to be used in the preview process. Specifically, the resource having the globally unique identifier may be directly determined as a target resource, where the target resource is a resource in the object to be processed.
In the existing image production tool, to implement the preview of the resource, a relatively complex operation is generally required to be performed, which results in low resource preview efficiency, so that a user can quickly obtain the detailed content of the target resource, the target resource can be previewed, and the target object corresponding to the target resource is controlled to be displayed in a specified area.
The preview processing means displaying the content of the target resource in detail, so that a user can quickly obtain the detailed content of the target resource, and the search efficiency of the resource is improved. When the target resource is previewed, the target resource can be instantiated to obtain a target object in a preset virtual scene; setting parameters of a virtual camera in the preset virtual scene as preset camera parameters to obtain a virtual camera to be used; controlling the target object to be played in the preset virtual scene, and acquiring the picture acquired by the virtual camera to be used to obtain the picture to be rendered; rendering the picture to be rendered based on preset rendering parameters to obtain a preview picture; and outputting the preview picture to a preset output path, wherein the preset output path is a path corresponding to the designated area.
When the instantiation process is performed on the target resource, a corresponding instantiation interface, for example, an object. The preset virtual scene is a virtual scene created in advance and used for previewing resources.
In some embodiments, in order to ensure that the preview effect of the target resource is the same as that in the real operation, the parameters of the virtual camera, that is, the preset camera parameters, may be obtained when the target resource is in the real operation. Then, the parameters of the virtual camera in the preset virtual scene may be set as the preset camera parameters, so as to obtain the virtual camera to be used. The preset camera parameters may include a camera position, a camera type, and the like.
The virtual camera to be used can acquire pictures in a preset virtual scene, then the acquired pictures are rendered by using the renderer, and a final preview picture is output.
And adding the target resource into the preset virtual scene, after the target object is obtained, controlling the target object to play in the preset virtual scene, and acquiring the picture to be acquired by using the virtual camera to obtain the picture to be rendered.
In some embodiments, for target resources of different resource types, when a target object is controlled to be played in a preset virtual scene, interfaces to be called are different, so that when the target object is played and a picture to be rendered to be acquired by using a virtual camera is acquired, a resource type corresponding to the target resource may be acquired; determining a designated interface used for playing the target object based on the resource type; calling the designated interface, and controlling the target object to play in the preset virtual scene; and in the process of playing the target object in the virtual scene, acquiring a picture through the to-be-used virtual camera to obtain the to-be-rendered picture.
When the target resource is acquired, the resource type of the acquired target resource can be corresponded, and when the specified interface is determined based on the resource type, a preset calling relation table can be accessed, and the calling relation table can store the resource type and the called specified interface in an associated manner. For example, when the resource type is a special effect type, the corresponding designated interface may be a play interface of a special effect particle and a frame update interface of an editor; when the resource type is an action type, the corresponding specified interface can be an interface of the action type and a frame update interface of the editor.
If the target resource of the action type is to be previewed, a resource having a model is first required, an action file is added to the model, and the model to which the action file is added is previewed as the entire target resource.
Therefore, in the calling relation table, the appointed interface corresponding to the resource type of the target resource can be found, the appointed interface is called to control the target object to be played in the preset virtual scene, and in the process of playing the target object, the virtual camera to be used is used for carrying out image acquisition, so that the image to be rendered can be obtained.
And then rendering the picture to be rendered based on the preset rendering parameters to obtain a preview picture. The preset rendering parameters are rendering parameters used by the target resource at runtime, and may include, for example, material parameters, color parameters, illumination parameters, texture parameters, and the like.
After the preview screen is obtained, in order to ensure that the preview screen can be presented in the current interface, the output path of the virtual camera to be used can be modified into a path corresponding to the designated area, and the designated area is a certain area designated in the current interface. Therefore, the preview picture can be directly output to the current interface, and the preview picture of the corresponding resource can be displayed when a user clicks a certain temporary mapping file.
It should be noted that the resource processing method described in the embodiment of the present application may be used as an enhancement tool for Timeline in an image production tool. The Timeline is a linear editing tool, is used for serializing different elements, including animation clips, music, special effects, camera pictures, particle special effects and the like, and mainly realizes real-time playing. When the user uses the enhancement tool, the resources can be freely grouped in the enhancement tool, and the grouping name can be customized without being limited by an image making tool. Therefore, the general information of the resources under the grouping can be obtained based on the names of the grouping, and the resources can be conveniently and quickly positioned. In order to further facilitate the user to know the detailed information of the resource, a certain resource can be clicked in the tool, the resource can be quickly previewed, and the special effect or the action can be quickly previewed without complex operation.
In some embodiments, the Timelineplus can be used to improve Timeline production efficiency, and if a tool of a sound effect production link is connected to the Timelineplus, sound effect resources can be processed in the same way as the special effect resources and the action resources, so that different types of resources can be integrated, general information of the resources can be obtained through grouping identification, detailed information of the resources can be obtained through a preview mode, the time for producing the whole image can be shortened, and the efficiency for producing the image can be improved.
The resource processing scheme provided by the embodiment of the application can be applied to various scenes for image production based on image production tools. For example, by taking the scene crossing animation production through the game engine as an example, different organization management can be performed on resources through a preset data management system, custom naming can be supported, developers can conveniently and quickly acquire the content of the resources, resources can be quickly located, and the image production efficiency is further improved.
The method provided by the embodiment of the application can be used for obtaining the object to be processed, wherein the object to be processed comprises at least one resource in an image making tool; determining the data type of the object to be processed based on the storage path of the object to be processed; acquiring a designated group with an input designated group identifier; and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping. The method comprises the steps of mapping the object to be processed into a designated group based on the data type of the object to be processed, wherein the identifier of the designated group can support any character string, the naming limitation of an image production tool can be broken through, the mapping object is created based on the data type, and the association between the mapping object and the object to be processed can be kept, so that a user can conveniently and quickly know the content of resources, the resources can be quickly positioned, and the image production efficiency is improved.
The method described in the above embodiments is further described in detail below.
In this embodiment, the method in the embodiment of the present application will be described in detail by taking the editing in Timelineplus as an example.
As shown in fig. 5, a specific flow of the resource processing method is as follows:
s210, obtaining an object to be processed, wherein the object to be processed comprises at least one resource in an image manufacturing tool.
S220, determining the data type of the object to be processed based on the storage path of the object to be processed.
S230, acquiring a specified group with a specified group identifier, wherein the specified group identifier comprises any input character string.
S240, according to the data type, creating a mapping object corresponding to the object to be processed in the designated grouping.
And S250, displaying the specified grouping identification and the resource identification of each resource in the object to be processed.
And S260, responding to the selected operation, and previewing the resource indicated by the selected operation.
In steps S210 to S240, the tool integrated with the embodiment of the present application is called to implement a resource reorganization, that is, the resources are organized in the preset data management system, and a link is established with the resources of the default data management system, and specific contents may refer to the corresponding description in the foregoing embodiment, and are not described herein again to avoid repetition.
It will be appreciated that there is a default data management system in the image production tool under which a certain naming convention needs to be followed, for example, chinese cannot appear, only named by a combination of numbers and letters, and it is often difficult for a user to know the content of a resource by its name.
After the mapping object corresponding to the object to be processed is created in the designated group, that is, the mapping of the resource is created under the preset data management system, and the resource identifiers of the group and all the resources indicated by the object to be processed in the group can be displayed under the preset data management system. And, the group identification and the resource identification can be modified into any character string, for example, the character string is modified into an expression which is more in line with the habit of the user, so that the user can set according to the actual requirement, and the user can quickly acquire the content of the resource according to the group identification or the resource identification, thereby being convenient for quickly positioning the resource.
In order to further ensure that the user can quickly acquire more detailed contents of the resources, the resources selected by the user can be previewed in real time, namely, a preview screen of the resources can be directly displayed in a graphical user interface in the editing mode without switching the editing mode to the preview mode.
When the group and the resource identifiers of all the resources indicated by the objects to be processed in the group are displayed, a user can click any resource identifier, and each mapping object can establish a link with a real resource in a preset data management system, so that when a certain resource identifier is selected, the real resource can be positioned, the real resource is previewed, the processing result is output to a specified area of a current editor, and real-time preview of the resource is realized.
Since the method can be integrated in the Timelineplus, the graphical user interfaces provided thereby all use the interface of the Timelineplus as the main window. The main window can be composed of a series of sub tool windows, including a quick preview window, which can be divided into a special effect quick preview window, an action quick preview window, a Timeline quick preview window, and the like, and can be expanded according to actual needs. All the quick previews can be previewed through a core preview class, and a preview picture is displayed in a specified area. During previewing, the operation is carried out in the group mark and the resource mark displayed under the preset data management system, and the content in the preset data management system is linked with the resource in the default data management system, so that the resource required to be used during previewing can be positioned.
The operation and screen in the quick preview will be described in detail with reference to the drawings.
Referring to FIG. 6, a diagram of an interface for previewing model action resources is shown. Here, the group and the resource under the "model action" can be displayed in the area indicated by 101, the action of the "resource a" can be displayed in the area indicated by 102 if the user selects "resource a", and the image of the resource a performing action 2 can be displayed in the area indicated by 103 if the user selects "action 2". For example, "resource a" is a model of a small dinosaur and "action 2" is holding a virtual arrow, the small dinosaur can be held within the area indicated by action show 103 holding the virtual arrow.
The interface can also display a "Timeline" control, a "special effect" control and a "model action" control, and is used for switching different types of resources. An "add" control may be used to add mapping objects, a "delete" control may be used to delete mapping objects, and a "create group" control may be used to create new groups.
The Timeline resource and the special effect resource are similar to each other in the tool interface during preview, and the description will be given only by taking the special effect resource as an example. Referring to fig. 7, a schematic interface diagram when previewing a special effect resource is shown. The grouping and resources under the "special effect" can be displayed in the area indicated by 104, if the user selects "resource C", the operations that can be performed on the "resource C" can be shown in the area indicated by 105, for example, adding sound effect components, saving sound effect settings, and the like, and the image corresponding to the "resource C" can be shown in the area indicated by 106. For example, if resource C is a flame effect, the flame effect may be exhibited in the area indicated at 106.
As can be seen from the above, in the embodiment of the present application, the mapping object corresponding to the object to be processed may be created in the designated group in the preset data management system, and the designated group and all resources under the group are displayed, where the group identifier of the designated group may be modified in a user-defined manner, so as to break through the naming limitation of the image creation tool, and thus, a user may quickly obtain the content of the resource based on the user-defined group identifier. In order to further facilitate the user to preview the resources in real time, the resources selected by the user can be directly previewed in the interface of the current tool without switching modes and windows back and forth, the operation of previewing the resources is simplified, and the efficiency of image making is further improved.
In order to better implement the method, an embodiment of the present application further provides a resource processing apparatus, where the resource processing apparatus may be specifically integrated in an electronic device, and the electronic device may be a terminal, a server, or another device. The terminal can be a mobile phone, a tablet computer, an intelligent Bluetooth device, a notebook computer, a personal computer and other devices; the server may be a single server or a server cluster composed of a plurality of servers.
For example, in the present embodiment, the method in the embodiment of the present application will be described in detail by taking an example in which the resource processing apparatus is specifically integrated in the terminal.
For example, as shown in fig. 8, the resource processing apparatus 300 may include an object acquisition module 310, a determination module 320, a grouping acquisition module 330, and a creation module 340.
An object obtaining module 310, configured to obtain an object to be processed, where the object to be processed includes at least one resource in an image production tool;
a determining module 320, configured to determine a data type of the object to be processed based on a storage path of the object to be processed;
a group acquiring module 330, configured to acquire a specified group having a specified group identifier, where the specified group identifier includes an input arbitrary character string;
a creating module 340, configured to create, according to the data type, a mapping object corresponding to the object to be processed in the designated group.
In some embodiments, the determining module 320 is further configured to:
acquiring a storage path of the object to be processed;
if the object to be processed indicated by the storage path is a resource set, determining the data type of the object to be processed as a folder type;
and if the object to be processed indicated by the storage path is a single resource, determining the data type of the object to be processed as a file type.
In some embodiments, the creation module 340 further comprises:
an indication information determining unit, configured to determine, according to the data type, indication information indicating the object to be processed;
and the mapping unit is used for adding the indication information into the specified grouping to obtain a mapping object of the object to be processed.
In some embodiments, the data type includes a file type or a folder type, and the indication information determining unit is further configured to:
if the data type is a folder type, determining the indication information as a storage path of the object to be processed;
and if the data type is a file type, determining the indication information as a global unique identifier of the object to be processed.
In some embodiments, the indication information is a storage path of the object to be processed, and the mapping unit is further configured to:
acquiring a link list of the specified group;
and adding the storage path of the object to be processed into the link list to obtain a mapping object of the object to be processed.
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:
acquiring an object identifier of the object to be processed;
creating a mapping file with the object identification in the specified grouping;
and storing the global unique identifier of the object to be processed into the mapping file to obtain the mapping object of the object to be processed.
In some embodiments, after the indication information is added to the designated group and a mapping object of the object to be processed is obtained, the mapping unit is further configured to:
acquiring a global unique identifier to be used according to the indication information for creating the mapping object, wherein the global unique identifier to be used is a global unique identifier corresponding to the resource indicated by the mapping object;
based on the global unique identifier to be used, creating a temporary mapping file corresponding to each resource;
and displaying the specified grouping and the temporary mapping file.
In some embodiments, the resource handling apparatus 300 further comprises a preview module comprising:
a response unit, configured to determine a target file from the temporary mapping file in response to the selection operation;
the target resource determining unit is used for determining target resources from the objects to be processed according to the global unique identifier in the target file;
and the preview unit is used for performing preview processing on the target resource and controlling a target object corresponding to the target resource to be displayed in a specified area.
In some embodiments, the preview unit is further to:
instantiation processing is carried out on the target resource to obtain a target object in a preset virtual scene;
setting parameters of a virtual camera in the preset virtual scene as preset camera parameters to obtain a virtual camera to be used;
controlling the target object to be played in the preset virtual scene, and acquiring the picture acquired by the virtual camera to be used to obtain the picture to be rendered;
rendering the picture to be rendered based on preset rendering parameters to obtain a preview picture;
and outputting the preview picture to a preset output path, wherein the preset output path is a path corresponding to the designated area.
In some embodiments, the preview unit is further to:
acquiring a resource type corresponding to the target resource;
determining a designated interface used for playing the target object based on the resource type;
calling the designated interface, and controlling the target object to play in the preset virtual scene;
and in the process of playing the target object in the virtual scene, acquiring pictures through the to-be-used virtual camera to obtain the to-be-rendered picture.
In a specific implementation, each of the modules or units may be implemented as an independent entity, or may be combined arbitrarily and implemented as one or several entities, and the specific implementation of each of the modules or units may refer to the foregoing method embodiments, which are not described herein again.
As can be seen from the above, the resource processing apparatus of this embodiment may obtain an object to be processed, where the object to be processed includes at least one resource in the image production tool; determining the data type of the object to be processed based on the storage path of the object to be processed; acquiring a designated group with an input designated group identifier; and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping. The method comprises the steps of mapping an object to be processed into a designated group based on the data type of the object to be processed, wherein the identifier of the designated group can support any character string, the naming limitation of an image production tool can be broken through, the mapping object is created based on the data type, and the association between the mapping object and the object to be processed can be kept.
Correspondingly, the embodiment of the present application further provides an electronic device, where the electronic device may be a terminal or a server, and the terminal may be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game machine, a Personal computer, and a Personal Digital Assistant (PDA).
As shown in fig. 9, fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application, where the electronic device 400 includes a processor 401 having one or more processing cores, a memory 402 having one or more computer-readable storage media, and a computer program stored in the memory 402 and executable on the processor. The processor 401 is electrically connected to the memory 402. Those skilled in the art will appreciate that the electronic device configurations shown in the figures do not constitute limitations of the electronic device, and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device 400 using various interfaces and lines, performs various functions of the electronic device 400 and processes data by operating or loading software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby integrally monitoring the electronic device 400.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to processes of one or more application programs into the memory 402 according to the following steps, and the processor 401 runs the application programs stored in the memory 402, so as to implement various functions:
acquiring an object to be processed, wherein the object to be processed comprises at least one resource in an image making tool; determining the data type of the object to be processed based on the storage path of the object to be processed; acquiring a designated group with a designated group identifier, wherein the designated group identifier comprises an input arbitrary character string; and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping.
The mapping object corresponding to the object to be processed is created in the group with the designated group identification, reorganization and management of resources can be achieved, the designated group identification can support any input character string, naming limitation of an image making tool can be broken through, a user can set freely according to own preference, the user can conveniently and quickly know content of the resources, quick resource positioning can also be achieved, and image making efficiency is improved.
Acquiring a storage path of the object to be processed; if the object to be processed indicated by the storage path is a resource set, determining the data type of the object to be processed as a folder type; and if the object to be processed indicated by the storage path is a single resource, determining the data type of the object to be processed as a file type.
The data type of the object to be processed can be determined according to the difference of the storage paths, so that the subsequent process of creating the mapping object according to the data type is facilitated.
According to the data type, determining indication information indicating the object to be processed; and adding the indication information into the specified grouping to obtain a mapping object of the object to be processed.
Based on the data type, the indication information can be determined, the mapping object is created by using the indication information, and the link between the mapping object and the object to be processed can be established, so that the mapping object and the object to be processed can be positioned conveniently.
If the data type is a folder type, determining the indication information as a storage path of the object to be processed; and if the data type is a file type, determining the indication information as a global unique identifier of the object to be processed.
Different data types adopt different indication information, and the accuracy of mapping establishment based on the indication information can be improved.
Acquiring a link list of the specified group; and adding the storage path of the object to be processed into the link list to obtain a mapping object of the object to be processed.
Acquiring an object identifier of the object to be processed; creating a mapping file with the object identification in the designated group; and storing the global unique identifier of the object to be processed into the mapping file to obtain the mapping object of the object to be processed.
Different indication information and different modes are used when the mapping object is created, so that accurate linking can be ensured, and errors in linking are avoided.
Acquiring a global unique identifier to be used according to the indication information for creating the mapping object, wherein the global unique identifier to be used is a global unique identifier corresponding to the resource indicated by the mapping object; based on the global unique identifier to be used, creating a temporary mapping file corresponding to each resource; and displaying the specified grouping and the temporary mapping file.
For the convenience of subsequent operations of the user, all the resources indicated by the created mapping object and the corresponding groups can be shown.
In response to the selected operation, determining a target file from the temporary mapping file; determining a target resource from the object to be processed according to the global unique identifier in the target file; and performing preview processing on the target resource, and controlling a target object corresponding to the target resource to be displayed in a specified area.
In order to reduce the complexity of the preview, the user can directly operate on the displayed resources and the displayed groups, and preview the resources selected by the user in a designated area in real time, so that the user can quickly know the detailed contents of the resources.
Instantiation processing is carried out on the target resource to obtain a target object in a preset virtual scene; setting parameters of a virtual camera in the preset virtual scene as preset camera parameters to obtain a virtual camera to be used; controlling the target object to be played in the preset virtual scene, and acquiring the picture acquired by the virtual camera to be used to obtain a picture to be rendered; rendering the picture to be rendered based on preset rendering parameters to obtain a preview picture; and outputting the preview picture to a preset output path, wherein the preset output path is a path corresponding to the designated area.
Acquiring a resource type corresponding to the target resource; determining a designated interface used for playing the target object based on the resource type; calling the designated interface, and controlling the target object to play in the preset virtual scene; and in the process of playing the target object in the virtual scene, acquiring a picture through the to-be-used virtual camera to obtain the to-be-rendered picture.
In order to ensure that the preview effect is the same as the real operation, the data in the real operation can be acquired for preview processing, and the accuracy of real-time preview is ensured.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Optionally, as shown in fig. 9, the electronic device 400 further includes: a touch display 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 source 407. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 9 does not constitute a limitation of the electronic device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The touch display screen 403 can be used for displaying a graphical user interface and receiving operation instructions generated by a user acting on the graphical user interface. The touch display screen 403 may include a display panel and a touch panel. The display panel may be used, among other things, to display information entered by or provided to a user and various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof. Alternatively, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. The touch panel may be used to collect touch operations of a user (for example, operations of the user on or near the touch panel by using a finger, a stylus pen, or any other suitable object or accessory) and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Alternatively, the touch panel may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 401, and can receive and execute commands sent by the processor 401. The touch panel may overlay the display panel and, when the touch panel detects a touch operation thereon or nearby, transmit the touch operation to the processor 401 to determine the type of the touch event, and then the processor 401 provides a corresponding visual output on the display panel according to the type of the touch event. In the embodiment of the present application, the touch panel and the display panel may be integrated into the touch display screen 403 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be implemented as two separate components to perform the input and output functions. That is, the touch display screen 403 may also be used as a part of the input unit 406 to implement an input function.
The rf circuit 404 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 405 may be used to provide an audio interface between the user and the electronic device through a speaker, microphone. The audio circuit 405 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 405 and converted into audio data, and the audio data is processed by the audio data output processor 401, and then sent to another electronic device through the radio frequency circuit 404, or the audio data is output to the memory 402 for further processing. The audio circuit 405 may also include an earbud jack to provide communication of a peripheral headset with the electronic device.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control.
The power supply 407 is used to power the various components of the electronic device 400. Optionally, the power supply 407 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, power consumption management, and the like through the power management system. The power supply 407 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, or any other component.
Although not shown in fig. 9, the electronic device 400 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, and the like, which are not described in detail herein.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to the related descriptions of other embodiments.
As can be seen from the above, the electronic device provided in this embodiment may acquire an object to be processed, where the object to be processed includes at least one resource in an image production tool; determining the data type of the object to be processed based on the storage path of the object to be processed; acquiring a designated group with an input designated group identifier; and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping. The method comprises the steps of mapping the object to be processed into a designated group based on the data type of the object to be processed, wherein the identifier of the designated group can support any character string, the naming limitation of an image production tool can be broken through, the mapping object is created based on the data type, and the association between the mapping object and the object to be processed can be kept, so that a user can conveniently and quickly know the content of resources, the resources can be quickly positioned, and the image production efficiency is improved.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer programs can be loaded by a processor to execute the steps in any resource processing method provided by the present application. For example, the computer program may perform the steps of:
acquiring an object to be processed, wherein the object to be processed comprises at least one resource in an image making tool; determining the data type of the object to be processed based on the storage path of the object to be processed; acquiring a designated group with a designated group identifier, wherein the designated group identifier comprises an input arbitrary character string; and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping.
The mapping object corresponding to the object to be processed is created in the group with the designated group identification, reorganization and management of resources can be achieved, the designated group identification can support any input character string, naming limitation of an image making tool can be broken through, a user can set freely according to own preference, the user can conveniently and quickly know content of the resources, the resources can be quickly positioned, and image making efficiency is improved.
Acquiring a storage path of the object to be processed; if the object to be processed indicated by the storage path is a resource set, determining the data type of the object to be processed as a folder type; and if the object to be processed indicated by the storage path is a single resource, determining the data type of the object to be processed as a file type.
The data type of the object to be processed can be determined according to the difference of the storage paths, so that the subsequent process of creating the mapping object according to the data type is facilitated.
According to the data type, determining indication information indicating the object to be processed; and adding the indication information into the specified grouping to obtain a mapping object of the object to be processed.
Based on the data type, the indication information can be determined, the mapping object is created by using the indication information, and the link between the mapping object and the object to be processed can be established, so that the mapping object and the object to be processed can be positioned conveniently.
If the data type is a folder type, determining the indication information as a storage path of the object to be processed; and if the data type is a file type, determining the indication information as a global unique identifier of the object to be processed.
Different data types adopt different indication information, and the accuracy of establishing mapping based on the indication information can be improved.
Acquiring a link list of the specified group; and adding the storage path of the object to be processed into the link list to obtain a mapping object of the object to be processed.
Acquiring an object identifier of the object to be processed; creating a mapping file with the object identification in the specified grouping; and storing the global unique identifier of the object to be processed into the mapping file to obtain the mapping object of the object to be processed.
Different indication information and different modes are used when the mapping object is created, so that accurate linking can be ensured, and errors in linking are avoided.
Acquiring a global unique identifier to be used according to the indication information for creating the mapping object, wherein the global unique identifier to be used is a global unique identifier corresponding to the resource indicated by the mapping object; based on the global unique identifier to be used, creating a temporary mapping file corresponding to each resource; and displaying the specified grouping and the temporary mapping file.
For the convenience of subsequent operations of the user, all the resources indicated by the created mapping object and the corresponding groups can be shown.
In response to the selected operation, determining a target file from the temporary mapping file; determining a target resource from the object to be processed according to the global unique identifier in the target file; and performing preview processing on the target resource, and controlling a target object corresponding to the target resource to be displayed in a specified area.
In order to reduce the complexity of the preview, the user can directly operate on the displayed resources and the displayed groups, and preview the resources selected by the user in a designated area in real time, so that the user can quickly know the detailed contents of the resources.
Instantiation processing is carried out on the target resource, and a target object located in a preset virtual scene is obtained; setting parameters of a virtual camera in the preset virtual scene as preset camera parameters to obtain a virtual camera to be used; controlling the target object to be played in the preset virtual scene, and acquiring the picture acquired by the virtual camera to be used to obtain a picture to be rendered; rendering the picture to be rendered based on preset rendering parameters to obtain a preview picture; and outputting the preview picture to a preset output path, wherein the preset output path is a path corresponding to the designated area.
Acquiring a resource type corresponding to the target resource; determining a designated interface used for playing the target object based on the resource type; calling the designated interface, and controlling the target object to play in the preset virtual scene; and in the process of playing the target object in the virtual scene, acquiring pictures through the to-be-used virtual camera to obtain the to-be-rendered picture.
In order to ensure that the preview effect is the same as the real operation, the data in the real operation can be acquired for preview processing, and the accuracy of real-time preview is ensured.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), random Access Memory (RAM), magnetic or optical disks, and the like.
Since the computer program stored in the storage medium can execute the steps in any resource processing method provided in the embodiments of the present application, beneficial effects that can be achieved by any resource processing method provided in the embodiments of the present application can be achieved, and detailed descriptions are omitted here for the foregoing embodiments.
The foregoing detailed description is directed to a resource processing method, a resource processing apparatus, a storage medium, and an electronic device provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and the core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (13)

1. A method for processing resources, the method comprising:
acquiring an object to be processed, wherein the object to be processed comprises at least one resource in an image making tool;
determining the data type of the object to be processed based on the storage path of the object to be processed;
acquiring a designated group with a designated group identifier, wherein the designated group identifier comprises an input arbitrary character string;
and according to the data type, creating a mapping object corresponding to the object to be processed in the specified grouping.
2. The method according to claim 1, wherein the determining the data type of the object to be processed based on the storage path of the object to be processed comprises:
acquiring a storage path of the object to be processed;
if the object to be processed indicated by the storage path is a resource set, determining the data type of the object to be processed as a folder type;
and if the object to be processed indicated by the storage path is a single resource, determining the data type of the object to be processed as a file type.
3. The method according to claim 1, wherein the creating a mapping object corresponding to the object to be processed in the designated group according to the data type includes:
according to the data type, determining indication information indicating the object to be processed;
and adding the indication information into the specified grouping to obtain a mapping object of the object to be processed.
4. The method according to claim 3, wherein the data type includes a file type or a folder type, and the determining indication information indicating the object to be processed according to the data type includes:
if the data type is a folder type, determining the indication information as a storage path of the object to be processed;
and if the data type is a file type, determining the indication information as a global unique identifier of the object to be processed.
5. The method according to claim 4, wherein the indicating information is a storage path of the object to be processed, and the adding the indicating information to the specified packet to obtain a mapping object of the object to be processed comprises:
acquiring a link list of the specified group;
and adding the storage path of the object to be processed into the link list to obtain a mapping object of the object to be processed.
6. The method according to claim 4, wherein the indication information is a globally unique identifier of the object to be processed, and the adding the indication information to the designated group to obtain a mapping object of the object to be processed comprises:
acquiring an object identifier of the object to be processed;
creating a mapping file with the object identification in the specified grouping;
and storing the global unique identifier of the object to be processed into the mapping file to obtain the mapping object of the object to be processed.
7. The method according to claim 5 or 6, wherein after adding the indication information to the specified group to obtain the mapping object of the object to be processed, the method further comprises:
acquiring a global unique identifier to be used according to the indication information for creating the mapping object, wherein the global unique identifier to be used is a global unique identifier corresponding to the resource indicated by the mapping object;
based on the global unique identifier to be used, a temporary mapping file corresponding to each resource is created;
and displaying the specified grouping and the temporary mapping file.
8. The method of claim 7, wherein after presenting the specified group and the temporary mapping file, the method further comprises:
in response to the selected operation, determining a target file from the temporary mapping file;
determining a target resource from the object to be processed according to the global unique identifier in the target file;
and previewing the target resource, and controlling a target object corresponding to the target resource to be displayed in a specified area.
9. The method according to claim 8, wherein the previewing the target resource and controlling the target object corresponding to the target resource to be displayed in a designated area comprises:
instantiation processing is carried out on the target resource, and a target object located in a preset virtual scene is obtained;
setting parameters of a virtual camera in the preset virtual scene as preset camera parameters to obtain a virtual camera to be used;
controlling the target object to be played in the preset virtual scene, and acquiring the picture acquired by the virtual camera to be used to obtain the picture to be rendered;
rendering the picture to be rendered based on preset rendering parameters to obtain a preview picture;
and outputting the preview picture to a preset output path, wherein the preset output path is a path corresponding to the designated area.
10. The method according to claim 9, wherein the controlling the target object to be played in the preset virtual scene and acquiring the picture acquired by the virtual camera to be used to obtain the picture to be rendered comprises:
acquiring a resource type corresponding to the target resource;
determining a designated interface used for playing the target object based on the resource type;
calling the designated interface, and controlling the target object to play in the preset virtual scene;
and in the process of playing the target object in the virtual scene, acquiring pictures through the to-be-used virtual camera to obtain the to-be-rendered picture.
11. An apparatus for resource handling, the apparatus comprising:
the object acquisition module is used for acquiring an object to be processed, wherein the object to be processed comprises at least one resource in an image making tool;
the determining module is used for determining the data type of the object to be processed based on the storage path of the object to be processed;
the device comprises a group acquisition module, a group selection module and a group selection module, wherein the group acquisition module is used for acquiring a specified group with a specified group identifier, and the specified group identifier comprises an input arbitrary character string;
and the creating module is used for creating a mapping object corresponding to the object to be processed in the specified grouping according to the data type.
12. An electronic device comprising a processor and a memory, the memory storing a plurality of instructions; the processor loads instructions from the memory to perform the steps in the resource handling method of any of claims 1 to 10.
13. A computer-readable storage medium storing a plurality of instructions adapted to be loaded by a processor to perform the steps of the resource processing method according to any one of claims 1 to 10.
CN202210993419.6A 2022-08-18 2022-08-18 Resource processing method and device, electronic equipment and storage medium Pending CN115391278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210993419.6A CN115391278A (en) 2022-08-18 2022-08-18 Resource processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210993419.6A CN115391278A (en) 2022-08-18 2022-08-18 Resource processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115391278A true CN115391278A (en) 2022-11-25

Family

ID=84119729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210993419.6A Pending CN115391278A (en) 2022-08-18 2022-08-18 Resource processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115391278A (en)

Similar Documents

Publication Publication Date Title
KR102084977B1 (en) Multimedia poster generation method and terminal
US10558698B2 (en) Lyric page generation method and lyric page generation apparatus
CN110533755B (en) Scene rendering method and related device
CN111240777B (en) Dynamic wallpaper generation method and device, storage medium and electronic equipment
WO2021008334A1 (en) Data binding method, apparatus, and device of mini program, and storage medium
CN112870724B (en) Resource management method and device, storage medium and electronic equipment
US20190012320A1 (en) Multimedia File Management Method, Electronic Device, And Graphical User Interface
CN112181576A (en) Form processing method, device, terminal and storage medium
CN112116690B (en) Video special effect generation method, device and terminal
US9330099B2 (en) Multimedia apparatus and method for providing content
CN113516742A (en) Model special effect manufacturing method and device, storage medium and electronic equipment
CN111857531A (en) Mobile terminal and file display method thereof
CN113467663B (en) Interface configuration method, device, computer equipment and medium
CN112163174B (en) Message display method and device, storage medium and computer equipment
CN116594616A (en) Component configuration method and device and computer readable storage medium
CN116546242A (en) Live broadcast control method and device, computer equipment and storage medium
CN113138996A (en) Statement generation method and device
CN114998068B (en) Learning plan generation method and electronic equipment
CN115391278A (en) Resource processing method and device, electronic equipment and storage medium
CN112783386A (en) Page jump method, device, storage medium and computer equipment
CN112138397A (en) Trigger management method and device, computer equipment and storage medium
CN113220954A (en) Information display method and device and projection equipment
CN114911759A (en) File connection method, device, terminal equipment and storage medium
CN114915850B (en) Video playing control method and device, electronic equipment and storage medium
CN115100328A (en) Video production method, video production device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination