CN114146418A - Game resource processing method and device, computer equipment and storage medium - Google Patents

Game resource processing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114146418A
CN114146418A CN202111493874.1A CN202111493874A CN114146418A CN 114146418 A CN114146418 A CN 114146418A CN 202111493874 A CN202111493874 A CN 202111493874A CN 114146418 A CN114146418 A CN 114146418A
Authority
CN
China
Prior art keywords
game
resource
target
file
resources
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
CN202111493874.1A
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 CN202111493874.1A priority Critical patent/CN114146418A/en
Publication of CN114146418A publication Critical patent/CN114146418A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor

Abstract

The embodiment of the application discloses a method and a device for processing game resources, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring a game file to be processed; determining a first game skeletal model resource of a plurality of game skeletal model resources; copying the first game skeleton model resource, updating the resource name of the copied second game skeleton model resource to a target resource name, and obtaining an updated second game skeleton model resource; generating a target game file based on the target game skeleton model resources in response to the resource export instruction; the game skeleton model resources are copied, the copied game skeleton model resources are subjected to standard naming, and the game resources subjected to standard naming are bound with the skeleton information corresponding to the original game resources, so that the operation steps of processing the game skeleton model resources in the game files can be reduced, the processing time is shortened, and the operation efficiency of the game skeleton model resources is improved.

Description

Game resource processing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing game resources, a computer device, and a storage medium.
Background
In games, such as those developed based on client or server architectures, game avatars or game virtual objects are often built based on skeletal models in order to satisfy the user's realism in the game. The player can operate the virtual character in the screen to play a game, and can execute walking, running, jumping, fighting and other related operations in a game scene based on the third visual angle of the character operated by the player, so that the players can experience visual impact brought by the game in the scene of the scene, and the initiative and the sense of reality of the game are greatly enhanced.
Before the game is released, the game maker needs to manually preset game resources required in the game so as to realize that the player performs various game operations in the game. In the prior art, a game maker can make a large amount of action resources, and needs to perform complicated operations when deriving game resources according to different project requirements, which consumes a large amount of time to process the game resources, resulting in lower operation efficiency of game resource processing.
Disclosure of Invention
The embodiment of the application provides a game resource processing method and device, a computer device and a storage medium, and by copying the game resource, performing canonical naming and then performing skeleton information binding operation on the game resource after the canonical naming, the resource processing operation steps can be reduced, the processing time of the game resource can be reduced, and the operation efficiency of game resource processing can be improved.
The embodiment of the application provides a game resource processing method, which comprises the following steps:
the method comprises the steps of obtaining a game file to be processed, wherein the game file to be processed comprises a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names comprise naming spaces;
determining a first game skeletal model resource of the plurality of game skeletal model resources;
copying the first game skeleton model resource, updating the resource name of the copied second game skeleton model resource to a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is the initial resource name of which the name space is removed;
binding the skeleton information indicated by the name space in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource;
in response to a resource export instruction, a target game file is generated based on the target game skeletal model resource.
In some embodiments, before acquiring the game file to be processed, the method further includes:
displaying a graphical user interface, wherein the graphical user interface is used for displaying a game resource rendering page and a game resource adjusting page which is displayed on the game resource rendering page in an overlapping mode;
receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjusting page;
the acquiring of the game file to be processed comprises the following steps:
and acquiring the game file to be processed corresponding to the game file selection instruction.
In some embodiments, the receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page includes:
responding to the touch operation of the user on the game file input control, and displaying candidate game file paths of a plurality of candidate game files on the game resource adjusting page;
in response to a selection operation for a target game file path among the candidate game file paths, a pending game file is determined based on the target game file path.
In some embodiments, after displaying the graphical user interface, further comprising:
receiving a target path determining instruction triggered by the user through a file path setting control on the game resource adjusting page;
and determining a target file format and a target file path corresponding to the target path determining instruction.
In some embodiments, after obtaining the game file to be processed corresponding to the game file selection instruction, the method further includes:
displaying all game skeleton model resources of the game file to be processed in a resource display area on the game resource adjustment page;
and responding to the selection operation of the user for selecting the to-be-processed game skeleton model resource from all game skeleton model resources, and determining the to-be-processed game skeleton model resource as a first game skeleton model resource.
In some embodiments, after displaying the graphical user interface, further comprising:
a plurality of candidate resource category controls are displayed in a resource category display area on the game resource adjustment page;
in response to a selection operation directed to a target resource category control of the plurality of candidate resource category controls, determining a target derived resource category.
In some embodiments, the generating, in response to the resource export instruction, a target game file based on the target game skeletal model resource comprises:
in response to a resource export instruction, generating a target game file based on a target file export condition and the target game skeletal model resource.
In some embodiments, prior to the deriving the instruction in response to the resource, further comprising:
receiving a resource export instruction triggered by a game file export control on the game resource adjusting page by a user;
the generating a target game file based on a target file export condition and the target game skeletal model resource in response to a resource export instruction comprises:
in response to the resource export instruction, generating a target game file based on the target game skeletal model resource, the target file format, the target file path, and a target export resource category.
In some embodiments, the skeletal information comprises skeletal constraint information and skeletal animation information.
Correspondingly, the embodiment of the present application further provides a processing apparatus for game resources, including:
the game processing device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a game file to be processed, the game file to be processed comprises a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names comprise naming spaces;
a determining unit for determining a first game skeletal model resource of the plurality of game skeletal model resources;
the first processing unit is used for copying the first game skeleton model resource, updating a resource name of a second game skeleton model resource obtained after copying into a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is an initial resource name from which the name space is removed;
the second processing unit is used for binding the bone information indicated by the name space in the initial resource name with the updated second game bone model resource to obtain a target game bone model resource;
and the generating unit is used for responding to the resource export instruction and generating a target game file based on the target game skeleton model resource.
In some embodiments, the apparatus further comprises:
the game resource adjusting device comprises a first display unit, a second display unit and a display unit, wherein the first display unit is used for displaying a graphical user interface which is used for displaying a game resource rendering page and a game resource adjusting page which is overlapped and displayed on the game resource rendering page;
the first receiving unit is used for receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjusting page;
and the first determining subunit is used for acquiring the game file to be processed corresponding to the game file selection instruction.
In some embodiments, the apparatus further comprises:
a second display unit, configured to display candidate game file paths of a plurality of candidate game files on the game resource adjustment page in response to a touch operation of the user on the game file input control;
and the second determining subunit is used for responding to the selection operation of a target game file path in the candidate game file paths and determining the game file to be processed based on the target game file path.
In some embodiments, the apparatus further comprises:
the second receiving unit is used for receiving a target path determining instruction triggered by the user through a file path setting control on the game resource adjusting page;
and the third determining subunit is used for determining the target file format and the target file path corresponding to the target path determining instruction.
In some embodiments, the apparatus further comprises:
the third display unit is used for displaying all game skeleton model resources of the game file to be processed in a resource display area on the game resource adjusting page;
a fourth determining subunit, configured to determine, as the first game skeleton model resource, the to-be-processed game skeleton model resource in response to a selection operation of the user for selecting the to-be-processed game skeleton model resource from all game skeleton model resources.
In some embodiments, the apparatus further comprises:
the fourth display subunit is used for displaying a plurality of candidate resource category controls in a resource category display area on the game resource adjustment page;
a fifth determining subunit, configured to determine a target derived resource category in response to a selection operation for a target resource category control of the multiple candidate resource category controls.
In some embodiments, the apparatus further comprises:
the first generation subunit is used for responding to a resource export instruction and generating a target game file based on a target file export condition and the target game skeleton model resource.
In some embodiments, the apparatus further comprises:
the third receiving unit is used for receiving a resource export instruction triggered by a game file export control on the game resource adjusting page by a user;
the generating a target game file based on a target file export condition and the target game skeletal model resource in response to a resource export instruction comprises:
a second generating subunit, configured to generate, in response to the resource export instruction, a target game file based on the target game skeleton model resource, the target file format, the target file path, and a target export resource category.
Accordingly, embodiments of the present application further provide a computer device, which includes a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements the steps of any one of the processing methods of the game resource.
Correspondingly, the embodiment of the application also provides a storage medium, wherein a computer program is stored on the storage medium, and when being executed by a processor, the computer program realizes the steps of any one of the processing methods of the game resources.
The embodiment of the application provides a game resource processing method and device, computer equipment and a storage medium, wherein a game file to be processed is obtained, wherein the game file to be processed comprises a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names comprise naming spaces; determining a first game skeletal model resource of the plurality of game skeletal model resources; copying the first game skeleton model resource, updating the resource name of the copied second game skeleton model resource to a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is the initial resource name of which the name space is removed; binding the skeleton information indicated by the name space in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource; in response to a resource export instruction, a target game file is generated based on the target game skeletal model resource. According to the game resource processing method and device, the designated game resources in the game files are copied, the copied game resources are named in a standard mode, namely the naming space set by the original game resources is removed, the game resources named in the standard mode are bound with the bone information corresponding to the original game resources, the operation steps of game bone model resource processing in the game files can be reduced, the processing time is shortened, and therefore the operation efficiency of the game bone model resources 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 flow chart of processing of game resources according to an embodiment of the present application.
Fig. 2 is a scene schematic diagram of a processing method of game resources according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a processing device of game resources according to an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a computer 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. It is to be understood that the embodiments described are only a few embodiments of the present application and not all 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.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Specifically, the processing method of the game resource in the embodiment of the present application may be executed by a computer device, where the computer device may be a terminal or a server or other devices. 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 (PC), a Personal Digital Assistant (PDA), and the like, and may further include a client, which may be a game application client, a browser client carrying a game program, or an instant messaging client, and the like. The server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as cloud service, a cloud database, cloud computing, a cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, CDN, and a big data and artificial intelligence platform. The schematic structure of the computer device will be described in detail below.
For example, when the processing method of the game resource is executed on the terminal, the terminal device stores an application program and is used for presenting a graphical user interface page, and the graphical user interface may display a game resource rendering page and a game resource adjusting page superimposed on the game resource rendering page, for example, by downloading and installing the application program through the terminal device and executing the application program. The manner in which the terminal device provides the user interface to the user may include a variety of ways, for example, the user interface may be rendered for display on a display screen of the terminal device or presented by holographic projection. For example, the terminal device may include a touch display screen for presenting a user interface including a game page and receiving operation instructions generated by a user acting on the user interface, and a processor for executing the game, generating the user interface, responding to the operation instructions, and controlling display of the user interface on the touch display screen.
The following are detailed below. It should be noted that the order in which the following examples appear is not intended to limit the order in which the examples are preferred.
In this embodiment, a game character model processing method is provided, as shown in fig. 1, a specific flow of the game character model processing method may include the following steps 101 to 105:
101, obtaining a game file to be processed, wherein the game file to be processed comprises a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names comprise naming spaces.
Specifically, in order to enable the designer to select the target game file by himself, the step "acquire the game file to be processed" may include:
displaying a graphical user interface, wherein the graphical user interface is used for displaying a game resource rendering page and a game resource adjusting page which is displayed on the game resource rendering page in an overlapping mode;
receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjusting page;
and acquiring the game file to be processed corresponding to the game file selection instruction.
Specifically, the step of receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page may include:
responding to the touch operation of the user on the game file input control, and displaying candidate game file paths of a plurality of candidate game files on the game resource adjusting page;
in response to a selection operation for a target game file path among the candidate game file paths, a pending game file is determined based on the target game file path.
Referring to fig. 2, as shown in fig. 2, a designer may determine a path of an ma scenario file to be imported by selecting a game file input control, where the ma scenario file is generally finished by art production. The ma scene file refers to a game file with a file format of ma, for example, a designer may determine a game file according to a path of the game file by importing the path of the game file (XXX/Desktop/interactions/Actions) in the game file input control.
To be able to determine the file format and save path of the last exported file, after the step "display graphical user interface", the method may comprise:
receiving a target path determining instruction triggered by the user through a file path setting control on the game resource adjusting page;
and determining a target file format and a target file path corresponding to the target path determining instruction.
Referring to fig. 2, as shown in fig. 2, a designer may set a specified target file path and a target file format (e.g., XXX/Desktop/interactions/activities/FBX) in the file path setting control through the file path setting control, that is, set the target format to be FBX format.
In order to enable the user to personally select game skeleton model resources required by the item, after the step of "acquiring the game file to be processed corresponding to the game file selection instruction", the method may include:
displaying all game skeleton model resources of the game file to be processed in a resource display area on the game resource adjustment page;
and responding to the selection operation of the user for selecting the to-be-processed game skeleton model resource from all game skeleton model resources, and determining the to-be-processed game skeleton model resource as a first game skeleton model resource.
For example, a plurality of game skeletal model resource options may be displayed in a resource display area on the game resource adjustment page, and the options may be all options or may be displayed for the designer to select by himself.
For targeted selection of game skeletal model resources for an item, after the step of "displaying a graphical user interface", the method may comprise:
a plurality of candidate resource category controls are displayed in a resource category display area on the game resource adjustment page;
in response to a selection operation directed to a target resource category control of the plurality of candidate resource category controls, determining a target derived resource category.
For example, a plurality of candidate resource category controls may be displayed in a resource category display area on the game resource adjustment page: all character bones, all weapon bones, and all bones, and the like.
102, determining a first game skeletal model resource of the plurality of game skeletal model resources.
Specifically, the designer may select all game skeleton model resources in the game file according to the requirements of the actual project, or may select only a part of game skeleton model resources in the game file, specifically, select the game skeleton model resources according to the requirements of the actual project.
103, performing a copying operation on the first game skeleton model resource, updating the resource name of the copied second game skeleton model resource to a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is the initial resource name from which the namespace is removed.
Specifically, one game skeleton model resource (action resource) in each game scene in the game file can be copied, and the name space of the initial resource name is removed during copying, so that the copied game skeleton model resource can automatically remove the name space. For example, the initial resource name of the game skeletal model resource may be G00_ Rig _ 20210607: unrealroot, performing a copy operation on the game skeleton model resource, and during the copy process, adding the name space G00_ Rig _ 20210607: and removing the game skeleton model resource so as to update the resource name of the game skeleton model resource obtained after copying to Unrealroot.
And 104, binding the skeleton information indicated by the name space in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource.
After the first game skeleton model resource is copied, because the copied game skeleton model resource does not have skeleton information, and the skeleton animation of the game skeleton model resource before copying cannot be played, the skeleton information corresponding to the original game skeleton model resource needs to be transferred to the copied game skeleton model resource to realize the corresponding skeleton constraint of each copied game skeleton model resource, and the skeleton animation is baked to realize that the game skeleton model resource has the animation attribute. Wherein the bone information comprises bone constraint information and bone animation information.
105, in response to the resource export instruction, generating a target game file based on the target game skeletal model resource.
Designers can select corresponding target derived resource categories (selection sets) according to different project requirements, and different projects can be linked by deriving sets corresponding to different selection sets, so that game skeleton model resources can be adapted to various projects.
To enable the game file to be adaptable to a plurality of different items, the step of "generating a target game file based on said target game skeletal model resources in response to resource export instructions", the method may comprise:
in response to a resource export instruction, generating a target game file based on a target file export condition and the target game skeletal model resource.
In order to allow the designer to personalize the selection of the type of game skeletal model resource to be derived, prior to the step "in response to resource derivation instructions", the method may comprise:
receiving a resource export instruction triggered by a game file export control on the game resource adjusting page by a user;
the generating a target game file based on a target file export condition and the target game skeletal model resource in response to a resource export instruction comprises:
in response to the resource export instruction, generating a target game file based on the target game skeletal model resource, the target file format, the target file path, and a target export resource category.
To sum up, the embodiment of the present application provides a method for processing game resources, where a game file to be processed is obtained, where the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include naming spaces; determining a first game skeletal model resource of the plurality of game skeletal model resources; copying the first game skeleton model resource, updating the resource name of the copied second game skeleton model resource to a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is the initial resource name of which the name space is removed; binding the skeleton information indicated by the name space in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource; in response to a resource export instruction, a target game file is generated based on the target game skeletal model resource. According to the game resource processing method and device, the designated game resources in the game files are copied, the copied game resources are named in a standard mode, namely the naming space set by the original game resources is removed, the game resources named in the standard mode are bound with the bone information corresponding to the original game resources, the operation steps of game bone model resource processing in the game files can be reduced, the processing time is shortened, and therefore the operation efficiency of the game bone model resources is improved.
Optionally, taking a specific implementation scenario in which a designer implements the embodiment of the present application on a graphical user interface as an example, the specific implementation scenario is as follows:
(1) the terminal can respond to the touch operation of the user on the game file input control, and candidate game file paths of a plurality of candidate game files are displayed on the game resource adjusting page; in response to a selection operation for a target game file path among the candidate game file paths, a pending game file is determined based on the target game file path. The designer can determine the path of the ma scene file to be imported by selecting the game file input control, and the ma scene file is generally finished by art production. The ma scene file refers to a game file with a file format of ma, for example, a designer may determine a game file according to a path of the game file by importing the path of the game file (XXX/Desktop/interactions/Actions) in the game file input control.
(2) The terminal can receive a target path determining instruction triggered by the user through the file path setting control on the game resource adjusting page; and determining a target file format and a target file path corresponding to the target path determining instruction. The designer can set a target file path and a target file format (XXX/XXX/Desktop/interactions/Actions/FBX) in the file path setting control through the file path setting control, namely, the target format is set to be the FBX format.
(3) The terminal can display all game skeleton model resources of the game file to be processed in a resource display area on the game resource adjusting page; and responding to the selection operation of the user for selecting the to-be-processed game skeleton model resource from all game skeleton model resources, and determining the to-be-processed game skeleton model resource as a first game skeleton model resource. The specific terminal can display a plurality of game skeleton model resource options in a resource display area on the game resource adjustment page, wherein the options can be all options, and can also display a plurality of game skeleton model resource options for a designer to select.
(4) The terminal can display a plurality of candidate resource category controls in a resource category display area on the game resource adjustment page; in response to a selection operation directed to a target resource category control of the plurality of candidate resource category controls, determining a target derived resource category. The specific terminal can display a plurality of candidate resource category controls in a resource category display area on the game resource adjustment page: all character bones, all weapon bones, and all bones, and the like.
(5) The terminal can receive a resource export instruction generated by a user through a game file export control on a touch graphical user interface; then, in response to a resource export instruction, a target game file is generated based on the target game skeletal model resource, the target file format, the target file path, and a target export resource category.
Optionally, taking a specific implementation scenario of the embodiment of the present application as an example, a specific implementation scenario of the scenario is as follows:
(1) after the designer selects the target game file by himself, the designer can select game skeleton model resources in all game scenes in the game file according to the requirements of actual projects; then, action resources (game skeleton model resources) in all game scenes are copied, and the copied action resources automatically remove the name space.
(2) Since the copied action resource does not have skeleton information, it is necessary to transfer the original action resource to the copied action resource, perform corresponding constraint on each skeleton of the copied action resource, and bake the skeleton animation so that the skeleton corresponding to the action resource has animation attributes.
(3) Designers can select corresponding selection sets according to different project requirements so as to derive corresponding sets to realize the connection of different projects.
In order to better implement the processing method of the game resources provided by the embodiments of the present application, the embodiments of the present application further provide a processing device based on the game resources. The meaning of the noun is the same as that in the processing method of the game resource, and the specific implementation details can refer to the description in the method embodiment.
Referring to fig. 3, fig. 3 is a block diagram of a game resource processing device according to an embodiment of the present application, where the game resource processing device includes:
an obtaining unit 201, configured to obtain a game file to be processed, where the game file to be processed includes multiple game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include naming spaces;
a determining unit 202 for determining a first game skeletal model resource of the plurality of game skeletal model resources;
the first processing unit 203 is configured to perform a copy operation on the first game skeleton model resource, update a resource name of a second game skeleton model resource obtained after the copy operation to a target resource name, and obtain an updated second game skeleton model resource, where the target resource name is an initial resource name from which the namespace is removed;
the second processing unit 204 is configured to bind the bone information indicated by the namespace in the initial resource name with the updated second game bone model resource to obtain a target game bone model resource;
a generating unit 205, configured to generate a target game file based on the target game skeleton model resource in response to the resource export instruction.
In some embodiments, the apparatus further comprises:
the game resource adjusting device comprises a first display unit, a second display unit and a display unit, wherein the first display unit is used for displaying a graphical user interface which is used for displaying a game resource rendering page and a game resource adjusting page which is overlapped and displayed on the game resource rendering page;
the first receiving unit is used for receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjusting page;
and the first determining subunit is used for acquiring the game file to be processed corresponding to the game file selection instruction.
In some embodiments, the apparatus further comprises:
a second display unit, configured to display candidate game file paths of a plurality of candidate game files on the game resource adjustment page in response to a touch operation of the user on the game file input control;
and the second determining subunit is used for responding to the selection operation of a target game file path in the candidate game file paths and determining the game file to be processed based on the target game file path.
In some embodiments, the apparatus further comprises:
the second receiving unit is used for receiving a target path determining instruction triggered by the user through a file path setting control on the game resource adjusting page;
and the third determining subunit is used for determining the target file format and the target file path corresponding to the target path determining instruction.
In some embodiments, the apparatus further comprises:
the third display unit is used for displaying all game skeleton model resources of the game file to be processed in a resource display area on the game resource adjusting page;
a fourth determining subunit, configured to determine, as the first game skeleton model resource, the to-be-processed game skeleton model resource in response to a selection operation of the user for selecting the to-be-processed game skeleton model resource from all game skeleton model resources.
In some embodiments, the apparatus further comprises:
the fourth display subunit is used for displaying a plurality of candidate resource category controls in a resource category display area on the game resource adjustment page;
a fifth determining subunit, configured to determine a target derived resource category in response to a selection operation for a target resource category control of the multiple candidate resource category controls.
In some embodiments, the apparatus further comprises:
the first generation subunit is used for responding to a resource export instruction and generating a target game file based on a target file export condition and the target game skeleton model resource.
In some embodiments, the apparatus further comprises:
the third receiving unit is used for receiving a resource export instruction triggered by a game file export control on the game resource adjusting page by a user;
the generating a target game file based on a target file export condition and the target game skeletal model resource in response to a resource export instruction comprises:
a second generating subunit, configured to generate, in response to the resource export instruction, a target game file based on the target game skeleton model resource, the target file format, the target file path, and a target export resource category.
The embodiment of the application provides a processing device of game resources, which acquires a game file to be processed through an acquisition unit 201, wherein the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include naming spaces; the determining unit 202 determines a first game skeletal model resource of the plurality of game skeletal model resources; the first processing unit 203 performs a copy operation on the first game skeleton model resource, updates a resource name of the copied second game skeleton model resource to a target resource name, and obtains an updated second game skeleton model resource, wherein the target resource name is an initial resource name from which the namespace is removed; the second processing unit 204 binds the bone information indicated by the name space in the initial resource name with the updated second game bone model resource to obtain a target game bone model resource; the generating unit 205 generates a target game file based on the target game skeletal model resource in response to the resource export instruction. According to the game resource processing method and device, the designated game resources in the game files are copied, the copied game resources are named in a standard mode, namely the naming space set by the original game resources is removed, the game resources named in the standard mode are bound with the bone information corresponding to the original game resources, the operation steps of game bone model resource processing in the game files can be reduced, the processing time is shortened, and therefore the operation efficiency of the game bone model resources is improved.
Correspondingly, the embodiment of the present application further provides a Computer device, where the Computer 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 (PC), a Personal Digital Assistant (PDA), and the like. As shown in fig. 4, fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application. The computer apparatus 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored on the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the computer device configurations illustrated in the figures are not meant to be limiting of computer devices and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The processor 301 is a control center of the computer apparatus 300, connects various parts of the entire computer apparatus 300 by various interfaces and lines, performs various functions of the computer apparatus 300 and processes data by running or loading software programs and/or modules stored in the memory 302, and calling data stored in the memory 302, thereby monitoring the computer apparatus 300 as a whole.
In the embodiment of the present application, the processor 301 in the computer device 300 loads instructions corresponding to processes of one or more application programs into the memory 302, and the processor 301 executes the application programs stored in the memory 302 according to the following steps, so as to implement various functions:
the method comprises the steps of obtaining a game file to be processed, wherein the game file to be processed comprises a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names comprise naming spaces;
determining a first game skeletal model resource of the plurality of game skeletal model resources;
copying the first game skeleton model resource, updating the resource name of the copied second game skeleton model resource to a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is the initial resource name of which the name space is removed;
binding the skeleton information indicated by the name space in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource;
in response to a resource export instruction, a target game file is generated based on the target game skeletal model resource.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Optionally, as shown in fig. 4, the computer device 300 further includes: a touch display 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power source 307. The processor 301 is electrically connected to the touch display 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power source 307. Those skilled in the art will appreciate that the computer device configuration illustrated in FIG. 4 does not constitute a limitation of computer devices, and may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components.
The touch display screen 303 can be used for displaying a graphical player interface and receiving operation instructions generated by a player acting on the graphical player interface. The touch display screen 303 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 the player and various graphical player interfaces of the computer 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 player on or near the touch panel (for example, operations of the player on or near the touch panel using any suitable object or accessory such as a finger, a stylus pen, and the like), 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 player, 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 301, and can receive and execute commands sent by the processor 301. The touch panel may overlay the display panel, and when the touch panel detects a touch operation thereon or nearby, the touch panel transmits the touch operation to the processor 301 to determine the type of the touch event, and then the processor 301 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 303 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 303 may also be used as a part of the input unit 306 to implement an input function.
In the present embodiment, a graphical player interface is generated on the touch-sensitive display screen 303 by the processor 301 executing a game application. The touch display screen 303 is used for presenting a graphical player interface and receiving operation instructions generated by a player acting on the graphical player interface.
The rf circuit 304 may be used for transceiving rf signals to establish wireless communication with a network device or other computer device via wireless communication, and for transceiving signals with the network device or other computer device.
The audio circuit 305 may be used to provide an audio interface between a player and a computer device through speakers, microphones. The audio circuit 305 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 electric signal, which is received by the audio circuit 305 and converted into audio data, which is then processed by the audio data output processor 301, and then transmitted to, for example, another computer device via the radio frequency circuit 304, or output to the memory 302 for further processing. The audio circuit 305 may also include an earbud jack to provide communication of a peripheral headset with the computer device.
The input unit 306 may be used to receive input numbers, character information, or player characteristic information (e.g., fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to player settings and function control.
The power supply 307 is used to power the various components of the computer device 300. Optionally, the power supply 307 may be logically connected to the processor 301 through a power management system, so as to implement functions of managing charging, discharging, and power consumption management through the power management system. Power supply 307 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
Although not shown in fig. 4, the computer device 300 may further include a camera, a sensor, a wireless fidelity module, a bluetooth module, etc., 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 related descriptions of other embodiments.
As can be seen from the above, in the computer device provided in this embodiment, a game file to be processed is obtained, where the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include name spaces; determining a first game skeletal model resource of the plurality of game skeletal model resources; copying the first game skeleton model resource, updating the resource name of the copied second game skeleton model resource to a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is the initial resource name of which the name space is removed; binding the skeleton information indicated by the name space in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource; in response to a resource export instruction, a target game file is generated based on the target game skeletal model resource. According to the game resource processing method and device, the designated game resources in the game files are copied, the copied game resources are named in a standard mode, namely the naming space set by the original game resources is removed, the game resources named in the standard mode are bound with the bone information corresponding to the original game resources, the operation steps of game bone model resource processing in the game files can be reduced, the processing time is shortened, and therefore the operation efficiency of the game bone model resources is improved.
It will be understood by those of ordinary skill 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, and the instructions may be stored in a storage medium (e.g., a computer readable storage medium) and loaded and executed by a processor.
To this end, the present application provides a 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 one of the processing methods of game resources provided by the present application. For example, the computer program may perform the steps of:
the method comprises the steps of obtaining a game file to be processed, wherein the game file to be processed comprises a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names comprise naming spaces;
determining a first game skeletal model resource of the plurality of game skeletal model resources;
copying the first game skeleton model resource, updating the resource name of the copied second game skeleton model resource to a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is the initial resource name of which the name space is removed;
binding the skeleton information indicated by the name space in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource;
in response to a resource export instruction, a target game file is generated based on the target game skeletal model resource.
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 game resource processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any game resource processing method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
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 related descriptions of other embodiments.
The foregoing describes in detail a processing method, an apparatus, a computer device, and a storage medium for game resources provided in an embodiment of the present application, and a specific example is applied in the present application to explain the principle and implementation manner of the present application, and the description of the foregoing embodiment is only used to help understand the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.

Claims (12)

1. A method for processing game resources, comprising:
the method comprises the steps of obtaining a game file to be processed, wherein the game file to be processed comprises a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names comprise naming spaces;
determining a first game skeletal model resource of the plurality of game skeletal model resources;
copying the first game skeleton model resource, updating the resource name of the copied second game skeleton model resource to a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is the initial resource name of which the name space is removed;
binding the skeleton information indicated by the name space in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource;
in response to a resource export instruction, a target game file is generated based on the target game skeletal model resource.
2. The method for processing game resources according to claim 1, further comprising, before acquiring the game file to be processed:
displaying a graphical user interface, wherein the graphical user interface is used for displaying a game resource rendering page and a game resource adjusting page which is displayed on the game resource rendering page in an overlapping mode;
receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjusting page;
the acquiring of the game file to be processed comprises the following steps:
and acquiring the game file to be processed corresponding to the game file selection instruction.
3. The method for processing game resources according to claim 2, wherein the receiving of the game file selection instruction triggered by the user through the game file input control on the game resource adjustment page includes:
responding to the touch operation of the user on the game file input control, and displaying candidate game file paths of a plurality of candidate game files on the game resource adjusting page;
in response to a selection operation for a target game file path among the candidate game file paths, a pending game file is determined based on the target game file path.
4. The method for processing game resources of claim 2, further comprising, after displaying the graphical user interface:
receiving a target path determining instruction triggered by the user through a file path setting control on the game resource adjusting page;
and determining a target file format and a target file path corresponding to the target path determining instruction.
5. The method for processing game resources according to claim 2, further comprising, after obtaining the to-be-processed game file corresponding to the game file selection instruction:
displaying all game skeleton model resources of the game file to be processed in a resource display area on the game resource adjustment page;
and responding to the selection operation of the user for selecting the to-be-processed game skeleton model resource from all game skeleton model resources, and determining the to-be-processed game skeleton model resource as a first game skeleton model resource.
6. The method for processing game resources of claim 2, further comprising, after displaying the graphical user interface:
a plurality of candidate resource category controls are displayed in a resource category display area on the game resource adjustment page;
in response to a selection operation directed to a target resource category control of the plurality of candidate resource category controls, determining a target derived resource category.
7. A processing method for game resources according to any one of claims 2 to 6, wherein the generating of the target game file based on the target game skeletal model resources in response to the resource export instruction comprises:
in response to a resource export instruction, generating a target game file based on a target file export condition and the target game skeletal model resource.
8. The method of processing game resources of claim 7, further comprising, prior to responding to the resource derivation instruction:
receiving a resource export instruction triggered by a game file export control on the game resource adjusting page by a user;
the generating a target game file based on a target file export condition and the target game skeletal model resource in response to a resource export instruction comprises:
in response to the resource export instruction, generating a target game file based on the target game skeletal model resource, the target file format, the target file path, and the target export resource category.
9. A method of processing game resources according to claim 1, wherein the skeletal information includes skeletal constraint information and skeletal animation information.
10. A processing apparatus for game resources, comprising:
the game processing device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a game file to be processed, the game file to be processed comprises a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names comprise naming spaces;
a determining unit for determining a first game skeletal model resource of the plurality of game skeletal model resources;
the first processing unit is used for copying the first game skeleton model resource, updating a resource name of a second game skeleton model resource obtained after copying into a target resource name, and obtaining the updated second game skeleton model resource, wherein the target resource name is an initial resource name from which the name space is removed;
the second processing unit is used for binding the bone information indicated by the name space in the initial resource name with the updated second game bone model resource to obtain a target game bone model resource;
and the generating unit is used for responding to the resource export instruction and generating a target game file based on the target game skeleton model resource.
11. A computer device, characterized in that the computer device comprises a memory in which a computer program is stored and a processor that executes the steps in the processing method of game resources according to any one of claims 1 to 9 by calling the computer program stored in the memory.
12. A storage medium storing a computer program adapted to be loaded by a processor to perform the steps of the method of processing a game resource according to any one of claims 1 to 9.
CN202111493874.1A 2021-12-08 2021-12-08 Game resource processing method and device, computer equipment and storage medium Pending CN114146418A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111493874.1A CN114146418A (en) 2021-12-08 2021-12-08 Game resource processing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111493874.1A CN114146418A (en) 2021-12-08 2021-12-08 Game resource processing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114146418A true CN114146418A (en) 2022-03-08

Family

ID=80453949

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111493874.1A Pending CN114146418A (en) 2021-12-08 2021-12-08 Game resource processing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114146418A (en)

Similar Documents

Publication Publication Date Title
CN109416825B (en) Reality to virtual reality portal for dual presence of devices
CN112233211A (en) Animation production method and device, storage medium and computer equipment
CN113485617A (en) Animation display method and device, electronic equipment and storage medium
CN113350793A (en) Interface element setting method and device, electronic equipment and storage medium
CN113786620A (en) Game information recommendation method and device, computer equipment and storage medium
CN115040873A (en) Game grouping processing method and device, computer equipment and storage medium
CN116546242A (en) Live broadcast control method and device, computer equipment and storage medium
CN114146418A (en) Game resource processing method and device, computer equipment and storage medium
CN112843729B (en) Operation parameter determination method and device, computer equipment and storage medium
CN112799754B (en) Information processing method, information processing device, storage medium and computer equipment
CN115225971A (en) Video progress adjusting method and device, computer equipment and storage medium
CN113350801A (en) Model processing method and device, storage medium and computer equipment
CN114005431A (en) Configuration method, device and equipment of voice system and readable storage medium
CN112138397A (en) Trigger management method and device, computer equipment and storage medium
CN114095533A (en) Cloud game account login method and device, computer equipment and storage medium
CN112426722A (en) Node map hot updating method and device, storage medium and computer equipment
CN114443177A (en) Application running method and device, server and storage medium
CN106028221B (en) A kind of method and intelligent sound box controlling time synchronization
CN113625968B (en) File authority management method and device, computer equipment and storage medium
CN114416234B (en) Page switching method and device, computer equipment and storage medium
CN115888073A (en) Channel access method and device for cloud game, computer equipment and storage medium
CN115826904A (en) Sound effect configuration method and device, computer equipment and storage medium
CN114146426A (en) Control method and device for game in secret room, computer equipment and storage medium
CN106970814B (en) Processing method, device and system for software upgrading
CN117689815A (en) Model body type adjusting method, device, computer 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