Information processing method and device and electronic equipment

By storing animations separately from event information and adjusting event information in animation production software, the problem of waste of labor costs during animation updates in game production is solved, and efficient event triggering and animation rendering is achieved.

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

Patent Information

Application Number
CN202411223218.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-02
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

In the game production process, the playback of animation resources requires triggering specific game events, such as the playback of sound effects or special effects. In the existing technology, programmers need to manually configure event triggers after the animation is completed, resulting in reconfiguration every time the animation is updated, which wastes manpower cost.

Method used

The animation production software generates object files and stores event information in a preset database in a specified format, allowing the animation production software to adjust event information, generate new data files, update the animation files in the game engine, reduce manual adjustments, and improve the Accuracy of event trigger time.

Benefits of technology

It improves the efficiency of event adjustment during animation adjustment, reduces labor costs, ensures the consistency and accuracy of event information and animation, reduces downstream workload caused by upstream resource iteration, and improves overall production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119273816A_ABST
    Figure CN119273816A_ABST
Patent Text Reader

Abstract

The invention provides an information processing method and device and electronic equipment, animation production software inputs an object file containing a target animation into a game engine so as to configure event information corresponding to the target animation in the game engine, and a first data file storing the event information in a specified format is obtained; the first data file is stored in a preset database, and the object file and the first data file are combined into an animation file in a game engine; when the target animation is adjusted, the first data file is imported from a preset database, event information in the first data file is adjusted, and a second data file containing the adjusted event information is obtained; and storing the second data file into a preset database, merging the adjusted target animation and the second data file into an animation file, and importing the animation file into a game engine. According to the method, the animation and the event information are stored separately, so that the event information can be adjusted only on one platform when the animation is adjusted, and the event adjustment efficiency during animation adjustment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of game rendering, and in particular to an information processing method, device and electronic device. Background Art

[0002] In the game production process, the playback of animation resources usually needs to trigger specific game events, such as the playback of sound effects or special effects. In the related art, after the animation is completed in the 3D animation software, the completed animation is imported into the game engine, and then the programmer configures the event trigger at the corresponding time point so that when the animation is played to that time point, the configured event trigger is triggered. However, in subsequent asset iterations, each update of the animation requires reconfiguring the event trigger or adjusting the trigger time of the event trigger, resulting in a waste of manpower costs. Summary of the invention

[0003] The purpose of the present disclosure is to provide an information processing method, device and electronic device to improve the adjustment efficiency of trigger events during animation adjustment, thereby reducing the waste of manpower costs.

[0004] In a first aspect, the present disclosure provides an information processing method, which is applied to an electronic device, wherein an animation production software is provided in the electronic device; the method comprises: generating an object file including a target animation in response to an animation production instruction; inputting the object file into a game engine to configure event information corresponding to the target animation in the object file in the game engine, obtaining a first data file corresponding to the target animation, storing the first data file into a preset database, and merging the object file and the first data file into an animation file in the game engine; wherein the first data file includes event information stored in a specified format; the event information is used to indicate an event triggered when the target animation is played to an event triggering time frame; when adjusting the target animation, importing the first data file from the preset database, and adjusting the event information in the first data file based on the adjusted target animation to obtain the adjusted event information, and obtaining a second data file based on the adjusted event information; wherein the second data file includes event information stored in a specified format; storing the second data file into the preset database, and merging the object file including the adjusted target animation and the second data file into an animation file and importing it into the game engine, so that the game engine performs game rendering according to the second data file and the adjusted target animation in the animation file.

[0005] In a second aspect, the present disclosure provides an information processing method, which is applied to an electronic device, wherein a game engine is provided in the electronic device; the method comprises: receiving an object file input by an animation production software; wherein the object file comprises a target animation; in response to a configuration instruction for the target animation, generating event information corresponding to the target animation, and obtaining a first data file corresponding to the target animation; wherein the first data file comprises event information stored in a specified format; the event information is used to indicate a preset event triggered when the target animation is played to a preset event triggering time frame; storing the first data file in a preset database, and merging the object file and the first data file into an animation file, so as to render the game through the animation file; in After the target animation is adjusted, the adjusted target animation sent by the animation production software is received, and the second data file corresponding to the target animation is imported from the preset database, and the game rendering is performed according to the second data file and the adjusted target animation; wherein, the second data file and the adjusted target animation are determined in the following manner: when adjusting the target animation, the first data file is imported from the preset database through the animation production software, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and the second data file is obtained based on the adjusted event information, and the second data file is stored in the preset database; wherein, the second data file includes event information stored in a specified format.

[0006] In a third aspect, the present disclosure provides an information processing device, which is arranged in an electronic device, and the electronic device is provided with animation production software; the device comprises: an animation production module, which is used to generate an object file containing a target animation in response to an animation production instruction; a file input module, which is used to input the object file into a game engine, so as to configure event information corresponding to the target animation in the object file in the game engine, obtain a first data file corresponding to the target animation, store the first data file in a preset database, and merge the object file and the first data file into an animation file in the game engine; wherein the first data file includes event information stored in a specified format; the event information is used to indicate the target animation playback A preset event is triggered when the target animation is adjusted to the event trigger time frame; a file adjustment module is used to import a first data file from a preset database when adjusting the target animation, and adjust the event information in the first data file based on the adjusted target animation to obtain the adjusted event information, and obtain a second data file based on the adjusted event information; wherein the second data file includes event information stored in a specified format; a file storage module is used to store the second data file in the preset database, and merge the object file containing the adjusted target animation and the second data file into an animation file and import it into the game engine, so that the game engine performs game rendering according to the second data file and the adjusted target animation in the animation file.

[0007] In a fourth aspect, the present disclosure provides an information processing device, which is arranged in an electronic device, and a game engine is arranged in the electronic device; the device comprises: an animation receiving module, which is used to receive an object file input by animation production software; wherein the object file includes a target animation; a file configuration module, which is used to respond to a configuration operation for the target animation, generate event information corresponding to the target animation, and obtain a first data file corresponding to the target animation; wherein the first data file includes event information stored in a specified format; the event information is used to indicate a preset event triggered when the target animation is played to a preset event trigger time frame; a file merging module, which is used to store the first data file in a preset database, and merge the object file and the first data file into an animation file, so as to play a game through the animation file. Rendering; a file receiving module, used for receiving the adjusted target animation sent by the animation production software after the target animation is adjusted, and importing the second data file corresponding to the target animation from the preset database, and performing game rendering according to the second data file and the adjusted target animation; wherein, the second data file and the adjusted target animation are determined in the following manner: when adjusting the target animation, the first data file is imported from the preset database by the animation production software, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and the second data file is obtained based on the adjusted event information, and the second data file is stored in the preset database; wherein, the second data file includes event information stored in a specified format.

[0008] In a fifth aspect, the present disclosure provides an electronic device, which includes a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned information processing method.

[0009] In a sixth aspect, the present disclosure provides a computer-readable storage medium storing computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned information processing method.

[0010] The embodiments of the present disclosure bring the following beneficial effects:

[0011] The present disclosure provides an information processing method, device and electronic device. First, an animation production instruction is responded to by animation production software to generate an object file containing a target animation; the object file is input into a game engine to configure event information corresponding to the target animation in the object file in the game engine to obtain a first data file corresponding to the target animation, the first data file is stored in a preset database, and the object file and the first data file are merged into an animation file in the game engine; wherein the first data file includes event information stored in a specified format; the event information is used to indicate an event triggered when the target animation is played to an event triggering time frame; when adjusting the target animation, the first data file is imported from the preset database, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and a second data file is obtained based on the adjusted event information; wherein the second data file includes event information stored in a specified format; the second data file is stored in the preset database, and the object file containing the adjusted target animation and the second data file are merged into an animation file and imported into the game engine, so that the game engine performs game rendering according to the second data file and the adjusted target animation in the animation file. This method stores animation and event information separately, so that event information can be adjusted on only one platform when adjusting animation, which improves the efficiency of event adjustment when adjusting animation. At the same time, by importing and exporting event information in a specified format, it reduces labor costs and improves the accuracy of event triggering time, and also ensures the consistency and accuracy of event information and animation, reducing the downstream workload caused by upstream resource iteration, thereby reducing production costs and improving overall efficiency.

[0012] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.

[0013] In order to make the above-mentioned objectives, features and advantages of the present disclosure more obvious and easy to understand, the following specifically cites preferred implementation modes and describes them in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0015] Figure 1 A flowchart of an information processing method provided by an embodiment of the present disclosure;

[0016] Figure 2 A schematic diagram of adding an event control panel provided in an embodiment of the present disclosure;

[0017] Figure 3 A flowchart of another information processing method provided by an embodiment of the present disclosure;

[0018] Figure 4 A workflow diagram for configuring a game animation event provided by an embodiment of the present disclosure;

[0019] Figure 5 A schematic diagram of the structure of an information processing device provided by an embodiment of the present disclosure;

[0020] Figure 6 A schematic diagram of the structure of another information processing device provided by an embodiment of the present disclosure;

[0021] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. The components of the embodiments of the present disclosure described and shown in the drawings here can be arranged and designed in various different configurations.

[0023] Therefore, the following detailed description of the embodiments of the present disclosure provided in the accompanying drawings is not intended to limit the scope of the present disclosure claimed for protection, but merely represents selected embodiments of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present disclosure.

[0024] In game production, when certain frames of animation are played, the event program in the game is started or triggered. The event program may include certain specific events in the game, linkage with props, animation-related sound effects, or animation-linked special effects, etc. For example, an animation of flipping a book for learning displays the information of the linkage event. At the 3rd frame, the book opening event is triggered (controlling the book prop to play the opening animation), and the book flipping event is triggered at the 55th frame (controlling the book prop to play the page turning animation).

[0025] In the game production process, the playback of animation resources usually needs to trigger specific game events, such as the playback of sound effects or special effects. The typical process includes: after the animation is completed, it is imported into the game engine, and then the programmer configures the event trigger at the corresponding time point. In the first or subsequent iterations, after the animator finishes the animation and imports it into the game engine, the programmer or other production staff are required to configure the relevant trigger events at the corresponding time for the official use of the game, but this method requires manual judgment and is prone to errors; at the same time, the iteration of the upstream process requires the downstream link to participate again, which wastes manpower costs.

[0026] Based on the above problems, the embodiments of the present disclosure provide an information processing method, device and electronic device. The technology can be applied to the iterative scenario of animation event information.

[0027] In order to facilitate understanding of the embodiments of the present disclosure, an information processing method provided by the embodiments of the present disclosure is first described in detail. The method is applied to an electronic device, and the electronic device is provided with animation production software; Figure 1 As shown, the method comprises the following specific steps:

[0028] Step S102, generating an object file including a target animation in response to an animation production instruction.

[0029] In specific implementation, the user can use animation production software to produce the target animation, and the target animation can be any animation produced according to the requirements. The animation production software can be 3D animation software Maya, Blender, etc., which can be determined according to the research and development requirements.

[0030] In a specific implementation, the object file may be an Fbx file, which is a 3D model and animation file saved in the Autodesk Filmbox format, and can be used for the exchange and use of 3D data between DCC (Digital Content Creation) software. The file format supports all major three-dimensional data elements as well as two-dimensional, audio and video media elements. Fbx files are usually used for game development and animation production. Through Fbx files, users can access three-dimensional files from most suppliers. Among them, the animation production software and game engines mentioned above are both DDC software.

[0031] Step S104, inputting the object file into the game engine to configure event information corresponding to the target animation in the object file in the game engine, obtaining a first data file corresponding to the target animation, storing the first data file in a preset database, and merging the object file and the first data file into an animation file in the game engine; wherein the first data file includes event information stored in a specified format; the event information is used to indicate an event triggered when the target animation is played to an event trigger time frame.

[0032] When the user completes the production of the target animation in the animation production software, an object file containing the target animation will be output, and the object file will be imported into the game engine to form an animation file in the game engine. The game engine is a software framework for designing, developing, testing and running electronic games. It contains the core functions of the game, such as graphics rendering, physical simulation, audio processing, scripting language, artificial intelligence, etc., and provides a fast, efficient and reliable development environment for game developers. When the target animation is first imported into the game engine, the user will refer to the target animation in the game engine, configure the event information corresponding to the target animation, obtain the first data file corresponding to the target animation, and merge the object file and the first data file into an animation file in the game engine, and store the first data file in a preset database. Specifically, the above-mentioned first data file includes event information stored in a specified format, and the event information corresponds to an event trigger time frame and a corresponding trigger event. Among them, the above-mentioned specified format can be determined according to the research and development requirements, and the specified format is pre-defined, and is not specifically limited here.

[0033] In the prior art, event information only exists in the animation file of the game engine. The present disclosure adds an additional data file specifically for storing event information, and the data file is saved in a preset database, which can be a disk in an electronic device or a network disk. At the same time, in the animation production software, a script tool is written to read and output the data file of event information; in the game engine, a corresponding tool is developed to be able to read the application and output the data file containing event information.

[0034] Step S106, when adjusting the target animation, importing the first data file from the preset database, and adjusting the event information in the first data file based on the adjusted target animation to obtain the adjusted event information, and obtaining the second data file based on the adjusted event information; wherein the second data file includes event information stored in a specified format.

[0035] The user can adjust the target animation in the animation production software, and when adjusting the target animation, the animation production software determines whether the preset database contains the data file corresponding to the target animation. If it does, the data file corresponding to the target animation is imported into the animation production software, and while adjusting the target animation, the corresponding event information is adjusted, and the adjusted event information is determined as the second data file; the adjustment includes adjusting the event trigger time frame, or adding, deleting or modifying the event corresponding to a certain time trigger time frame.

[0036] Step S108, storing the second data file in a preset database, and merging the object file containing the adjusted target animation and the second data file into an animation file and importing it into the game engine, so that the game engine performs game rendering according to the second data file and the adjusted target animation in the animation file.

[0037] After obtaining the second data file, the second data file is stored in a preset database, and based on the object file containing the adjusted target animation and the second data file, a new animation file is merged, and the new animation file is imported into the game engine, and iterated into the latest version of the animation file corresponding to the target animation in the game engine to overwrite the previous version of the animation file corresponding to the target animation, so that the game engine directly uses the latest version of the animation file for game rendering. In this way, when adjusting the target animation, it is only necessary to adjust the event information in the animation production software to achieve iterative interaction, without the need for manual adjustment in the game engine again, thereby reducing the use of human resources.

[0038] The above method isolates data and decouples the two processes, so that both the event configuration process and the animation process can independently control their final output files, allowing each process to iterate and modify without affecting other processes. When finally imported into the game engine, the object file and the data file are merged into the same animation file, which does not affect the final file call of the game.

[0039] The above information processing method, by storing animation and event information separately, can adjust event information only on one platform when adjusting animation, thereby improving the efficiency of event adjustment when adjusting animation. At the same time, by importing and exporting event information in a specified format, it reduces labor costs and improves the accuracy of event triggering time, and also ensures the consistency and accuracy of event information and animation, reducing the downstream workload caused by upstream resource iteration, thereby reducing production costs and improving overall efficiency.

[0040] The following embodiments are used to describe the format of event information and the contents included therein.

[0041] Specifically, the R&D personnel need to first define the specified format of the data file of the event information, so as to refer to the specified format of the event information later and write tools in the animation production software and the game engine to realize the import and export of the data file.

[0042] The above event information includes: a key-value pair consisting of an event triggering time frame and an event list; wherein the event list includes multiple events, and a single event includes: an event name, a calling function, and parameters required for calling the function.

[0043] Specifically, a single event description structure EventData: list data, including event name, calling function, and multiple parameters required for calling the function. For example, a certain EventData is: ['PlayFx', 'PlayFxFunc', ' / Game / Fx / TestFx', 1, 5], where the event name is PlayFx, the calling function is PlayFxFunc, and the parameters required for calling the function are / Game / Fx / TestFx, 1, 5. Here, / Game / Fx / TestFx is the resource path of the special effect to be played, 1 represents the triggering of the special effect, and it is automatically destroyed after a certain time; 5 represents the duration of 5 seconds.

[0044] Multiple event description structures EventList (equivalent to the above event list): list data, multiple EventData constitute an EventList. That is [EventData1, EventData2, EventData3]. The above event information is a description of the Json file data structure EventInfo: a typical data structure {T1: EventList1, T2: EventList2}, that is, a key-value dictionary structure with time frame as the key (key is also the key) and EventList as the Value. Among them, the dictionary data structure contains a series of data stored in the form of key-value pairs. In many programming languages, dictionaries are used to quickly find and retrieve data. Each key must be unique, and the value can be any type of data, including numbers, strings, lists, and even other dictionaries.

[0045] The above-mentioned Json (JavaScript Object Notation) file is a lightweight data exchange format that is easy for humans to read and write, and is also easy for machines to parse and generate. Json files usually have a ".json" file extension. They consist of key-value pairs, which are separated by commas, and keys and values ​​are separated by colons. The entire structure is wrapped in curly braces and can represent objects or arrays.

[0046] Based on the above description, the above-mentioned first data file includes at least one event information; based on this, the specific process of the above-mentioned animation production software importing the first data file from the preset database may include: reading the first data file from the preset database, and obtaining all event trigger time frames in the first data file, sorting the event trigger time frames, and obtaining an event trigger time list; from the first data file, obtaining an event list corresponding to the event trigger time frame in the event trigger time list, and converting the event list into an event string; for each event trigger time frame, setting the key frame value of the event attribute of the preset event node in the animation production software in the current event trigger time frame to the corresponding event string, so as to record the event string corresponding to the current event trigger time frame on the preset event node.

[0047] In the specific implementation, the above-mentioned event trigger time list TList is a list data structure of all key values ​​in the first data file and sorted. For example, [1,12,50] means that an event occurs in the 1st, 12th, and 50th frames. The above-mentioned preset event node can be created in the animation software, and the node name is a node with a specified name. All event information is recorded in this preset event node. If the preset event node does not exist in the animation software, a preset event node is automatically created when reading the event information (that is, reading the data file). For example, the preset event node can be a node named EvnetDataNode in the animation software. The above-mentioned event attribute is an Enum attribute belonging to the preset event node. This attribute is usually used to describe that a variable can only take a value in a specific value set (equivalent to the above-mentioned data file). In programming, the Enum attribute is usually called enumeration. The enumeration attribute helps to limit the value range of the variable and improve the readability and maintainability of the code.

[0048] In the specific implementation, assuming that the animation software is Maya software, and the first data file is a Json file, the process of importing the first data file into the animation software includes: using the standard Json library to read the Json file, obtain the complete event information EventInfo, obtain all the key values ​​in EventInfo, convert them into int form, and sort them to obtain the event trigger time list TList; among them, since Json stores dictionaries with Int as the key, it will convert Int into String for storage, and the String structure needs to be converted back to Int when reading. Then iterate the time T in TList in sequence, and obtain the corresponding EventList in the time T corresponding to EventInfo; use the Json library to convert EventList into EventListStr (equivalent to the above event string). Then find the node named EvnetDataNode in the Maya scene (equivalent to the above preset event node), find the Event attribute, find all Enum values, whether there is an EventListStr, if not, create a new EventListStr. At time T, the key frame value of Enum of EvnetDataNode is set to EventListStr; after iterating TLIst, the key frame of the Event attribute in EventDataNode is obtained, so that all event information is stored in EventDataNode, that is, the event information in the json file is imported into the animation production software.

[0049] The above standard json library is the standard json library of python language, that is, the JSON parsing and generation library supported by the official python programming language. Such a library allows developers to easily process JSON format data in the programming language they use, without the need to install or introduce third-party libraries, and can ensure the accuracy of json data reading and writing. The json library has a built-in standard function json.dumps, which can convert list data types into string data types. For example, the data structure of List or Dict can be converted into a readable String format, similar to ['a', 'b'] converted into '["a", "b"]', d = {'lang': '? ? ? ? ? ? '} converted into '{"lang":"????????"}' and other readable string formats.

[0050] Specifically, for each event attribute in the preset event node, determine whether the current event attribute corresponds to an event string. If not, create a new event string and set the new event string as the key frame value of the current event attribute. If there is a corresponding event string, determine the event string as the event string corresponding to the current event attribute. This method can add event information in animation production software.

[0051] In an optional embodiment, the specific process of creating a new event string may include: in response to the event adding operation, generating a target event list based on the event adding operation; converting the target event list into a target event string, and determining the target event string as the new event string. Specifically, the target event list includes at least one event.

[0052] like Figure 2 FIG. 1 is a schematic diagram of an event adding control panel provided by an embodiment of the present disclosure. Figure 2 It includes input items corresponding to the event name, input items corresponding to the calling function, input items corresponding to the parameters required for calling the function, and controls for adding events. Users can set the event name, calling function, and parameters required for calling the function in the event adding control panel, and then click the control for adding an event to concatenate the event name, calling function, and parameters to obtain an event list EventList containing an event, for example, ['PlayFx', 'PlayFxFunc', ' / Game / Fx / TestFx', 1, 5]. Then, use the Json library Dumps to convert EventList into EventListStr, and then add the key frame value of the current time frame T as EventListStr.

[0053] The following embodiments are used to describe the method of adjusting event information and exporting data files in animation production software.

[0054] Specifically, the specific process of adjusting the event information in the first data file based on the adjusted target animation to obtain the adjusted event information may include: in response to the event adjustment operation, adjusting the event information in the first data file based on the event adjustment operation to obtain the adjusted event information; wherein the adjustment process includes at least one of the following: adding, deleting and modifying. In specific implementation, the user can adjust the event trigger time, add, delete or modify one or more events in the event information, etc. through the event adjustment operation, and the user's adjustment of the event information is matched with the adjusted animation.

[0055] In the prior art, when adjusting animation, it is necessary to manually adjust the animation and event information in the animation production software and the game engine respectively. For example, after the animation is completed in the animation production software, the event is adjusted in the game engine. In some cases, it is necessary to delete the original game engine's animation resources and then re-import them, that is, re-import the animation with the existing resources. There may be some errors that cannot be repaired, such as frame rate, frame range settings are changed, or part of the skeletal animation is deleted, and the event configuration operation needs to be re-performed, which wastes manpower. However, the solution disclosed in the present invention only needs to be adjusted on one platform. Even if the original resources are deleted and the animation is re-imported, the event configuration can be imported quickly and conveniently.

[0056] In an optional embodiment, the specific process of obtaining the second data file based on the adjusted event information includes: obtaining the event trigger time frame on the preset event node and the key frame corresponding to the event trigger time frame, integrating the obtained event trigger time frame to obtain a time list, and integrating the obtained key frames to obtain a key frame list; for each event trigger time frame in the time list, determining the key frame corresponding to the current event trigger time frame from the key frame list; determining the event string corresponding to the key frame value through the key frame value of the event attribute of the preset event node corresponding to the key frame, and converting the event string into an event list to obtain an event list corresponding to each key frame; for each key frame, combining the event trigger time frame corresponding to the current key frame and the event list corresponding to the current key frame into a key-value pair corresponding to the current key frame; integrating the key-value pairs corresponding to each key frame to obtain the second data file.

[0057] In the specific implementation, assuming that the animation software is Maya software, and the first data file and the second data file are Json files, then the process of exporting the second data file in the animation software includes: finding the node named EvnetDataNode in the Maya scene (equivalent to the above-mentioned preset event node), finding the Event attribute, finding the event triggering time frame time, value key frame, and obtaining the time list TimeList and the key frame list ValueList. The event triggering time frame Time in TimeList obtains the corresponding key frame value Value (int) in ValueList; then, through the Enum attribute of Event corresponding to EventDataNode of Value, similar to 0 corresponding to the first Enum value, obtain its EventListStr. Then, through Json's loads function, EventListStr is converted into an EventList dictionary structure. Combined with the key time and the value EventList, a key-value pair of EventData is generated, and EventData finally generates an event information Json file through the Json library, that is, the second data file is generated.

[0058] The above separate storage of animation and event information allows each file to focus more on its own function, thus improving the maintainability of the entire system.

[0059] Corresponding to the above method embodiment, the embodiment of the present disclosure also provides another information processing method, which is applied to an electronic device, wherein a game engine is provided in the electronic device; Figure 3 As shown, the method comprises the following specific steps:

[0060] Step S302, receiving an object file input by animation production software; wherein the object file includes a target animation.

[0061] Step S304, responding to the configuration instruction for the target animation, generating event information corresponding to the target animation, and obtaining the first data file corresponding to the target animation; wherein the first data file includes event information stored in a specified format; the event information is used to indicate a preset event triggered when the target animation is played to a preset event trigger time frame.

[0062] In a specific implementation, in response to the configuration instruction for the target animation, the event trigger time frame corresponding to the target animation is set, and an event list is configured for the event trigger time frame; the key-value pairs corresponding to the event trigger time frame are generated by combining the event trigger time frame and the event list corresponding to the event trigger time frame, and the key-value pairs corresponding to all event trigger time frames are combined to generate the first data file corresponding to the target animation. Specifically, the user can set the event trigger time frame in the preset event setting panel (for example, Figure 2 Enter the event name in the panel shown in the figure, call the function and set the event list with the parameters required for calling the function (also called event trigger). The user can set the event trigger time frame corresponding to the target animation and set the corresponding event list for each event trigger time frame.

[0063] In the specific implementation, the process of writing the first data file in the game engine includes: iterating all events in the event information within the time range of the animation file (equivalent to the above object file), and then obtaining the event name, calling function and parameters required for calling the function of each event, and generating an event list EventList, such as [Paramterize,Paramterize,13,0,0,0,0,7014]; then obtaining the event trigger time frame T corresponding to each event; combining the key T and the value EventList to generate the key-value pair of EventData. After the iteration is completed, EventData is generated, and the Json library is used to output the event information Json file (equivalent to the above first data file).

[0064] Step S306, storing the first data file in a preset database, and merging the object file and the first data file into an animation file, so as to perform game rendering through the animation file.

[0065] Step S308, after the target animation is adjusted, the adjusted target animation sent by the animation production software is received, and the second data file corresponding to the target animation is imported from the preset database, and the game rendering is performed according to the second data file and the adjusted target animation.

[0066] The above-mentioned second data file and the adjusted target animation are determined in the following manner: when adjusting the target animation, the first data file is imported from the preset database through the animation production software, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and the second data file is obtained based on the adjusted event information, and the second data file is stored in the preset database; wherein the second data file includes event information stored in a specified format. The specific implementation process of this method can refer to the above-mentioned method embodiment, which will not be repeated here.

[0067] In specific implementation, the specific process of importing the second data file corresponding to the target animation from the preset database may include: reading the second data file from the preset database; wherein the event information in the second data file includes a key-value pair consisting of an event trigger time frame and an event list; obtaining all the event trigger time frames in the second data file, and sorting the event trigger time frames to obtain an event trigger time list; obtaining an event list corresponding to each event trigger time frame in the event trigger time list from the second data file; and adding the events in the corresponding event list to the corresponding event trigger time frames in the animation file to generate events corresponding to all the event trigger time frames in the event trigger time list.

[0068] In actual applications, the process of importing the event information Json file (equivalent to the second data file mentioned above) into the game engine includes: using the standard Json library to read the Json file, obtain the complete event information EventInfo, obtain all Key values, convert them into int format, and sort them to obtain the event trigger time list TList. Since Json stores dictionaries with Int as the key, it will convert the Int into String for storage, and the String structure needs to be converted back to Int when reading. Iterate the time T in TList in sequence, and obtain the corresponding EventList in the time T corresponding to EventInfo. Then add the event list to the corresponding time T in the animation file of the game engine. For example, EventList is [Paramterize,Paramterize,13,0,0,0,0,7014].

[0069] like Figure 4 FIG. 1 is a flowchart of a game animation event configuration provided by an embodiment of the present disclosure. Figure 4 Maya is the animation software, and UE is the game engine. The animation group makes animations in Maya and exports Fbx1 files (equivalent to object files), and imports them into UE to save them as engine animation files uasset1 (uasset is used to store game resources, such as models, textures, animations, etc. These files contain data and metadata of game resources and can be read and processed by UE editor and engine). Then the event configuration group configures event triggers (equivalent to the above events) at specific frames (equivalent to the above event triggering event frames) according to the animation file uasset1 in UE, iterates the engine animation file uasset2 and outputs the event information Json1 file (equivalent to the above first data file). In subsequent animation iterations, the Json1 file is imported into Maya, and the Fbx2 file and the Json2 file (equivalent to the above second data file) are made and exported, and then imported into the engine to form an animation file uasset3 with event trigger information. During this period, the animation iteration keeps importing the latest Json file into Maya and iteratively outputs new Fbx files and Json files until the event configuration group iterates the animation events in UE and outputs the updated event information Json file. This cycle repeats until the final game animation file is a combination of the latest animation fbx file and the latest event information Json file.

[0070] In the above method, the animation process and event configuration process independently control their own output files, reducing the dependencies between the processes and allowing them to be modified and optimized independently. Because each process is independent, it is easier to iterate and improve without causing unnecessary impact on other processes. At the same time, different types of files can be more easily version controlled, reducing the possibility of conflicts and facilitating team collaboration.

[0071] Corresponding to the above Figure 1 The method embodiment shown in the figure, the embodiment of the present disclosure also provides an information processing device, which is arranged in an electronic device, and the electronic device is provided with animation production software; Figure 5 As shown, the device comprises:

[0072] The animation production module 50 is used to generate an object file containing a target animation in response to an animation production instruction.

[0073] The file input module 51 is used to input the object file into the game engine to configure the event information corresponding to the target animation in the object file in the game engine, obtain the first data file corresponding to the target animation, store the first data file in a preset database, and merge the object file and the first data file into an animation file in the game engine; wherein the first data file includes event information stored in a specified format; the event information is used to indicate a preset event that is triggered when the target animation is played to an event trigger time frame.

[0074] The file adjustment module 52 is used to import a first data file from a preset database when adjusting a target animation, and adjust event information in the first data file based on the adjusted target animation to obtain the adjusted event information, and obtain a second data file based on the adjusted event information; wherein the second data file includes event information stored in a specified format.

[0075] The file storage module 53 is used to store the second data file in a preset database, and merge the object file containing the adjusted target animation and the second data file into an animation file and import it into the game engine, so that the game engine performs game rendering according to the second data file and the adjusted target animation in the animation file.

[0076] The above information processing device, by storing animation and event information separately, can adjust event information only on one platform when adjusting animation, thereby improving the efficiency of event adjustment when adjusting animation. At the same time, by importing and exporting event information in a specified format, it reduces labor costs and improves the accuracy of event triggering time, and also ensures the consistency and accuracy of event information and animation, reducing the downstream workload caused by upstream resource iteration, thereby reducing production costs and improving overall efficiency.

[0077] Specifically, the above event information includes: a key-value pair consisting of an event triggering time frame and an event list; wherein the event list includes multiple events, and the events include: an event name, a calling function, and parameters required for calling the function.

[0078] Furthermore, the above-mentioned first data file includes at least one event information; the above-mentioned file adjustment module 52 is used to: read the first data file from the preset database, and obtain all the event trigger time frames in the first data file, sort the event trigger time frames, and obtain the event trigger time list; from the first data file, obtain the event list corresponding to the event trigger time frame in the event trigger time list, and convert the event list into an event string; for each event trigger time frame, set the key frame value of the event attribute of the preset event node in the animation production software in the current event trigger time frame to the corresponding event string, so as to record the event string corresponding to the current event trigger time frame on the preset event node.

[0079] Furthermore, the above-mentioned device also includes an event creation module, which is used to: for each event attribute in the preset event node, determine whether the current event attribute corresponds to an event string, if not, create a new event string, and set the new event string as the key frame value of the current event attribute.

[0080] In a specific implementation, the event creation module is further used to: generate a target event list based on the event adding operation in response to the event adding operation; convert the target event list into a target event string, and determine the target event string as the newly created event string.

[0081] Furthermore, the file adjustment module 52 is used to: in response to an event adjustment operation, adjust the event information in the first data file based on the event adjustment operation to obtain adjusted event information; wherein the adjustment process includes at least one of the following: addition, deletion and modification.

[0082] Furthermore, the above-mentioned file adjustment module 52 is also used to: obtain the event trigger time frame on the preset event node and the key frame corresponding to the event trigger time frame, integrate the obtained event trigger time frame to obtain a time list, and integrate the obtained key frames to obtain a key frame list; for each event trigger time frame in the time list, determine the key frame corresponding to the current event trigger time frame from the key frame list; determine the event string corresponding to the key frame value through the key frame value of the event attribute of the preset event node corresponding to the key frame, and convert the event string into an event list to obtain an event list corresponding to each key frame; for each key frame, combine the event trigger time frame corresponding to the current key frame and the event list corresponding to the current key frame into a key-value pair corresponding to the current key frame; integrate the key-value pairs corresponding to each key frame to obtain a second data file.

[0083] The information processing device provided in the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0084] Corresponding to the above Figure 3 The method embodiment shown in the figure, the embodiment of the present disclosure also provides another information processing device, which is arranged in an electronic device, and a game engine is arranged in the electronic device; Figure 6 As shown, the device comprises:

[0085] The animation receiving module 60 is used to receive an object file input by the animation making software; wherein the object file includes a target animation.

[0086] The file configuration module 61 is used to respond to the configuration operation for the target animation, generate event information corresponding to the target animation, and obtain the first data file corresponding to the target animation; wherein the first data file includes event information stored in a specified format; the event information is used to indicate the preset event triggered when the target animation is played to the preset event trigger time frame.

[0087] The file merging module 62 is used to store the first data file in a preset database, and merge the object file and the first data file into an animation file, so as to perform game rendering through the animation file.

[0088] The file receiving module 63 is used to receive the adjusted target animation sent by the animation production software after the target animation is adjusted, and import the second data file corresponding to the target animation from the preset database, and perform game rendering according to the second data file and the adjusted target animation.

[0089] The second data file and the adjusted target animation are determined in the following manner: when adjusting the target animation, the first data file is imported from a preset database through the animation production software, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and the second data file is obtained based on the adjusted event information, and the second data file is stored in the preset database; wherein the second data file includes event information stored in a specified format.

[0090] The above-mentioned information processing device, animation process and event configuration process independently control their own output files, which reduces the dependence between each process and allows them to be modified and optimized independently. Because each process is independent, it can be more easily iterated and improved without causing unnecessary impact on other processes.

[0091] Specifically, the above-mentioned file configuration module 61 is used to: respond to configuration instructions for the target animation, set the event trigger time frame corresponding to the target animation, and configure the event list for the event trigger time frame; combine the event trigger time frame and the event list corresponding to the event trigger time frame to generate a key-value pair corresponding to the event trigger time frame, and combine all the key-value pairs corresponding to the event trigger time frames to generate the first data file corresponding to the target animation.

[0092] Furthermore, the above-mentioned file receiving module 63 is used to: read in a second data file from a preset database; wherein the event information in the second data file includes a key-value pair consisting of an event trigger time frame and an event list; obtain all event trigger time frames in the second data file, and sort the event trigger time frames to obtain an event trigger time list; obtain an event list corresponding to each event trigger time frame in the event trigger time list from the second data file; add the corresponding events in the event list to the corresponding event trigger time frames in the animation file to generate events corresponding to all event trigger time frames in the event trigger time list.

[0093] The information processing device provided in the embodiment of the present disclosure has the same implementation principle and technical effects as those of the aforementioned method embodiment. For the sake of brief description, for matters not mentioned in the device embodiment, reference may be made to the corresponding contents in the aforementioned method embodiment.

[0094] The present disclosure also provides an electronic device, such as Figure 7 As shown, the electronic device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above information processing method.

[0095] Specifically, the above-mentioned information processing method is applied to an electronic device, in which an animation production software is provided; the method comprises: generating an object file containing a target animation in response to an animation production instruction; inputting the object file into a game engine to configure event information corresponding to the target animation in the object file in the game engine, obtaining a first data file corresponding to the target animation, storing the first data file into a preset database, and merging the object file and the first data file into an animation file in the game engine; wherein, the first data file comprises event information stored in a specified format; the event information is used to indicate an event triggered when the target animation is played to an event triggering time frame; when adjusting the target animation, importing the first data file from the preset database, and adjusting the event information in the first data file based on the adjusted target animation to obtain the adjusted event information, and obtaining a second data file based on the adjusted event information; wherein, the second data file comprises event information stored in a specified format; storing the second data file into the preset database, and merging the object file containing the adjusted target animation and the second data file into an animation file and importing it into the game engine, so that the game engine performs game rendering according to the second data file and the adjusted target animation in the animation file.

[0096] In an optional embodiment, the above event information includes: a key-value pair consisting of an event triggering time frame and an event list; wherein the event list includes multiple events, and the events include: an event name, a calling function, and parameters required for calling the function.

[0097] In an optional embodiment, the first data file includes at least one event information; the above-mentioned step of importing the first data file from the preset database includes: reading the first data file from the preset database, and obtaining all event trigger time frames in the first data file, sorting the event trigger time frames, and obtaining an event trigger time list; from the first data file, obtaining an event list corresponding to the event trigger time frame in the event trigger time list, and converting the event list into an event string; for each event trigger time frame, setting the key frame value of the event attribute of the preset event node in the animation production software in the current event trigger time frame to the corresponding event string, so as to record the event string corresponding to the current event trigger time frame on the preset event node.

[0098] In an optional embodiment, the method further includes: for each event attribute in a preset event node, determining whether the current event attribute corresponds to an event string; if not, creating a new event string, and setting the new event string as a key frame value of the current event attribute.

[0099] In an optional embodiment, the step of creating a new event string includes: in response to an event adding operation, generating a target event list based on the event adding operation; converting the target event list into a target event string, and determining the target event string as a new event string.

[0100] In an optional embodiment, the above-mentioned step of adjusting the event information in the first data file based on the adjusted target animation to obtain the adjusted event information includes: in response to the event adjustment operation, adjusting the event information in the first data file based on the event adjustment operation to obtain the adjusted event information; wherein the adjustment processing includes at least one of the following: addition, deletion and modification processing.

[0101] In an optional embodiment, the above-mentioned step of obtaining a second data file based on the adjusted event information includes: obtaining an event trigger time frame on a preset event node and a key frame corresponding to the event trigger time frame, integrating the obtained event trigger time frame to obtain a time list, and integrating the obtained key frames to obtain a key frame list; for each event trigger time frame in the time list, determining the key frame corresponding to the current event trigger time frame from the key frame list; determining the event string corresponding to the key frame value through the key frame value of the event attribute of the preset event node corresponding to the key frame, and converting the event string into an event list to obtain an event list corresponding to each key frame; for each key frame, combining the event trigger time frame corresponding to the current key frame and the event list corresponding to the current key frame into a key-value pair corresponding to the current key frame; integrating the key-value pairs corresponding to each key frame to obtain the second data file.

[0102] The above information processing method, by storing animation and event information separately, can adjust event information only on one platform when adjusting animation, thereby improving the efficiency of event adjustment when adjusting animation. At the same time, by importing and exporting event information in a specified format, it reduces labor costs and improves the accuracy of event triggering time, and also ensures the consistency and accuracy of event information and animation, reducing the downstream workload caused by upstream resource iteration, thereby reducing production costs and improving overall efficiency.

[0103] Furthermore, the above information processing method is applied to an electronic device, in which a game engine is provided; specifically, the method comprises: receiving an object file input by an animation production software; wherein the object file comprises a target animation; in response to a configuration instruction for the target animation, generating event information corresponding to the target animation, and obtaining a first data file corresponding to the target animation; wherein the first data file comprises event information stored in a specified format; the event information is used to indicate a preset event triggered when the target animation is played to a preset event triggering time frame; storing the first data file in a preset database, and merging the object file and the first data file into an animation file, so as to render the game through the animation file; in the target animation After the target animation is adjusted, the adjusted target animation sent by the animation production software is received, and the second data file corresponding to the target animation is imported from the preset database, and the game rendering is performed according to the second data file and the adjusted target animation; wherein the second data file and the adjusted target animation are determined in the following manner: when adjusting the target animation, the first data file is imported from the preset database by the animation production software, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and the second data file is obtained based on the adjusted event information, and the second data file is stored in the preset database; wherein the second data file includes event information stored in a specified format.

[0104] In an optional embodiment, the above-mentioned step of responding to the configuration instruction for the target animation, generating event information corresponding to the target animation, and obtaining the first data file corresponding to the target animation includes: responding to the configuration instruction for the target animation, setting the event trigger time frame corresponding to the target animation, and configuring an event list for the event trigger time frame; combining the event trigger time frame and the event list corresponding to the event trigger time frame, generating a key-value pair corresponding to the event trigger time frame, and combining all the key-value pairs corresponding to the event trigger time frames to generate the first data file corresponding to the target animation.

[0105] In an optional embodiment, the above-mentioned step of importing the second data file corresponding to the target animation from a preset database includes: reading the second data file from the preset database; wherein the event information in the second data file includes a key-value pair consisting of an event trigger time frame and an event list; obtaining all the event trigger time frames in the second data file, and sorting the event trigger time frames to obtain an event trigger time list; obtaining an event list corresponding to each event trigger time frame in the event trigger time list from the second data file; and adding the corresponding events in the event list to the corresponding event trigger time frames in the animation file to generate events corresponding to all event trigger time frames in the event trigger time list.

[0106] The above information processing method, animation process and event configuration process independently control their own output files, reducing the dependence between each process, so that they can be modified and optimized independently. Because each process is independent, it can be more easily iterated and improved without causing unnecessary impact on other processes.

[0107] Further, Figure 7 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 101 , the communication interface 103 and the memory 100 are connected via the bus 102 .

[0108] The memory 100 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0109] The processor 101 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 101. The above processor 101 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present disclosure can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present disclosure can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100 and completes the steps of the method of the above embodiment in combination with its hardware.

[0110] The embodiments of the present disclosure also provide a computer-readable storage medium, which stores computer-executable instructions. When the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the above-mentioned information processing method. The specific implementation can be found in the method embodiment, which will not be repeated here.

[0111] Specifically, the above-mentioned information processing method is applied to an electronic device, in which an animation production software is provided; the method comprises: generating an object file containing a target animation in response to an animation production instruction; inputting the object file into a game engine to configure event information corresponding to the target animation in the object file in the game engine, obtaining a first data file corresponding to the target animation, storing the first data file into a preset database, and merging the object file and the first data file into an animation file in the game engine; wherein, the first data file comprises event information stored in a specified format; the event information is used to indicate an event triggered when the target animation is played to an event triggering time frame; when adjusting the target animation, importing the first data file from the preset database, and adjusting the event information in the first data file based on the adjusted target animation to obtain the adjusted event information, and obtaining a second data file based on the adjusted event information; wherein, the second data file comprises event information stored in a specified format; storing the second data file into the preset database, and merging the object file containing the adjusted target animation and the second data file into an animation file and importing it into the game engine, so that the game engine performs game rendering according to the second data file and the adjusted target animation in the animation file.

[0112] In an optional embodiment, the above event information includes: a key-value pair consisting of an event triggering time frame and an event list; wherein the event list includes multiple events, and the events include: an event name, a calling function, and parameters required for calling the function.

[0113] In an optional embodiment, the first data file includes at least one event information; the above-mentioned step of importing the first data file from the preset database includes: reading the first data file from the preset database, and obtaining all event trigger time frames in the first data file, sorting the event trigger time frames, and obtaining an event trigger time list; from the first data file, obtaining an event list corresponding to the event trigger time frame in the event trigger time list, and converting the event list into an event string; for each event trigger time frame, setting the key frame value of the event attribute of the preset event node in the animation production software in the current event trigger time frame to the corresponding event string, so as to record the event string corresponding to the current event trigger time frame on the preset event node.

[0114] In an optional embodiment, the method further includes: for each event attribute in a preset event node, determining whether the current event attribute corresponds to an event string; if not, creating a new event string, and setting the new event string as a key frame value of the current event attribute.

[0115] In an optional embodiment, the step of creating a new event string includes: in response to an event adding operation, generating a target event list based on the event adding operation; converting the target event list into a target event string, and determining the target event string as a new event string.

[0116] In an optional embodiment, the above-mentioned step of adjusting the event information in the first data file based on the adjusted target animation to obtain the adjusted event information includes: in response to the event adjustment operation, adjusting the event information in the first data file based on the event adjustment operation to obtain the adjusted event information; wherein the adjustment processing includes at least one of the following: addition, deletion and modification processing.

[0117] In an optional embodiment, the above-mentioned step of obtaining a second data file based on the adjusted event information includes: obtaining an event trigger time frame on a preset event node and a key frame corresponding to the event trigger time frame, integrating the obtained event trigger time frame to obtain a time list, and integrating the obtained key frames to obtain a key frame list; for each event trigger time frame in the time list, determining the key frame corresponding to the current event trigger time frame from the key frame list; determining the event string corresponding to the key frame value through the key frame value of the event attribute of the preset event node corresponding to the key frame, and converting the event string into an event list to obtain an event list corresponding to each key frame; for each key frame, combining the event trigger time frame corresponding to the current key frame and the event list corresponding to the current key frame into a key-value pair corresponding to the current key frame; integrating the key-value pairs corresponding to each key frame to obtain the second data file.

[0118] The above information processing method, by storing animation and event information separately, can adjust event information only on one platform when adjusting animation, thereby improving the efficiency of event adjustment when adjusting animation. At the same time, by importing and exporting event information in a specified format, it reduces labor costs and improves the accuracy of event triggering time, and also ensures the consistency and accuracy of event information and animation, reducing the downstream workload caused by upstream resource iteration, thereby reducing production costs and improving overall efficiency.

[0119] Furthermore, the above information processing method is applied to an electronic device, in which a game engine is provided; specifically, the method comprises: receiving an object file input by an animation production software; wherein the object file comprises a target animation; in response to a configuration instruction for the target animation, generating event information corresponding to the target animation, and obtaining a first data file corresponding to the target animation; wherein the first data file comprises event information stored in a specified format; the event information is used to indicate a preset event triggered when the target animation is played to a preset event triggering time frame; storing the first data file in a preset database, and merging the object file and the first data file into an animation file, so as to render the game through the animation file; in the target animation After the target animation is adjusted, the adjusted target animation sent by the animation production software is received, and the second data file corresponding to the target animation is imported from the preset database, and the game rendering is performed according to the second data file and the adjusted target animation; wherein the second data file and the adjusted target animation are determined in the following manner: when adjusting the target animation, the first data file is imported from the preset database by the animation production software, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and the second data file is obtained based on the adjusted event information, and the second data file is stored in the preset database; wherein the second data file includes event information stored in a specified format.

[0120] In an optional embodiment, the above-mentioned step of responding to the configuration instruction for the target animation, generating event information corresponding to the target animation, and obtaining the first data file corresponding to the target animation includes: responding to the configuration instruction for the target animation, setting the event trigger time frame corresponding to the target animation, and configuring an event list for the event trigger time frame; combining the event trigger time frame and the event list corresponding to the event trigger time frame, generating a key-value pair corresponding to the event trigger time frame, and combining all the key-value pairs corresponding to the event trigger time frames to generate the first data file corresponding to the target animation.

[0121] In an optional embodiment, the above-mentioned step of importing the second data file corresponding to the target animation from a preset database includes: reading the second data file from the preset database; wherein the event information in the second data file includes a key-value pair consisting of an event trigger time frame and an event list; obtaining all the event trigger time frames in the second data file, and sorting the event trigger time frames to obtain an event trigger time list; obtaining an event list corresponding to each event trigger time frame in the event trigger time list from the second data file; and adding the corresponding events in the event list to the corresponding event trigger time frames in the animation file to generate events corresponding to all event trigger time frames in the event trigger time list.

[0122] The above information processing method, animation process and event configuration process independently control their own output files, reducing the dependence between each process, so that they can be modified and optimized independently. Because each process is independent, it can be more easily iterated and improved without causing unnecessary impact on other processes.

[0123] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present disclosure, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0124] In the description of the present disclosure, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present disclosure and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present disclosure. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0125] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present disclosure, which are used to illustrate the technical solutions of the present disclosure, rather than to limit them. The protection scope of the present disclosure is not limited thereto. Although the present disclosure is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present disclosure, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present disclosure, and should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. An information processing method, characterized in that: The method is applied to an electronic device, wherein the electronic device is provided with animation production software; the method comprises: In response to the animation production instruction, generating an object file including a target animation; Input the object file into the game engine to configure event information corresponding to the target animation in the object file in the game engine, obtain a first data file corresponding to the target animation, store the first data file in a preset database, and merge the object file and the first data file into an animation file in the game engine; wherein the first data file includes event information stored in a specified format; the event information is used to indicate an event triggered when the target animation is played to an event triggering time frame; When adjusting the target animation, the first data file is imported from the preset database, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and a second data file is obtained based on the adjusted event information; wherein the second data file includes event information stored in a specified format; The second data file is stored in the preset database, and the object file containing the adjusted target animation and the second data file are merged into an animation file and imported into the game engine, so that the game engine performs game rendering according to the second data file and the adjusted target animation in the animation file.

2. The method according to claim 1, characterized in that The event information includes: a key-value pair consisting of an event triggering time frame and an event list; wherein the event list includes multiple events, and the events include: an event name, a calling function, and parameters required for calling the function.

3. The method according to claim 2, characterized in that The first data file includes at least one event information; The step of importing the first data file from the preset database includes: Reading the first data file from the preset database, obtaining all event trigger time frames in the first data file, sorting the event trigger time frames, and obtaining an event trigger time list; Obtaining, from the first data file, an event list corresponding to the event trigger time frame in the event trigger time list, and converting the event list into an event character string; For each of the event triggering time frames, the key frame value of the event attribute of the preset event node in the animation production software is set as the corresponding event string in the current event triggering time frame, so as to record the event string corresponding to the current event triggering time frame on the preset event node.

4. The method according to claim 3, characterized in that The method further comprises: For each event attribute in the preset event node, determine whether the current event attribute corresponds to an event string. If not, create a new event string and set the new event string as the key frame value of the current event attribute.

5. The method according to claim 4, characterized in that The step of creating a new event string includes: In response to an event adding operation, generating a target event list based on the event adding operation; The target event list is converted into a target event character string, and the target event character string is determined as the newly created event character string.

6. The method according to claim 1, characterized in that The step of adjusting the event information in the first data file based on the adjusted target animation to obtain the adjusted event information includes: In response to the event adjustment operation, the event information in the first data file is adjusted based on the event adjustment operation to obtain adjusted event information; wherein the adjustment processing includes at least one of the following: addition, deletion and modification processing.

7. The method according to claim 1, characterized in that The step of obtaining a second data file based on the adjusted event information includes: Acquire an event triggering time frame on a preset event node and a key frame corresponding to the event triggering time frame, integrate the acquired event triggering time frame to obtain a time list, and integrate the acquired key frames to obtain a key frame list; For each event triggering time frame in the time list, determining a key frame corresponding to the current event triggering time frame from the key frame list; Determine the event string corresponding to the key frame value through the key frame value of the event attribute of the preset event node, and convert the event string into an event list to obtain the event list corresponding to each key frame; For each key frame, combining the event triggering time frame corresponding to the current key frame and the event list corresponding to the current key frame into a key-value pair corresponding to the current key frame; The key-value pairs corresponding to each of the key frames are integrated to obtain the second data file.

8. An information processing method, characterized in that: The method is applied to an electronic device, wherein a game engine is provided in the electronic device; the method comprises: Receiving an object file input by an animation production software; wherein the object file includes a target animation; In response to the configuration instruction for the target animation, event information corresponding to the target animation is generated, and a first data file corresponding to the target animation is obtained; wherein the first data file includes event information stored in a specified format; the event information is used to indicate a preset event triggered when the target animation is played to a preset event triggering time frame; storing the first data file in a preset database, and merging the object file and the first data file into an animation file, so as to perform game rendering through the animation file; After the target animation is adjusted, the adjusted target animation sent by the animation production software is received, and a second data file corresponding to the target animation is imported from the preset database, and game rendering is performed according to the second data file and the adjusted target animation; Wherein, the second data file and the adjusted target animation are determined in the following manner: when adjusting the target animation, the first data file is imported from the preset database through the animation production software, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and the second data file is obtained based on the adjusted event information, and the second data file is stored in the preset database; wherein, the second data file includes event information stored in a specified format.

9. The method according to claim 8, characterized in that The step of responding to the configuration instruction for the target animation, generating event information corresponding to the target animation, and obtaining a first data file corresponding to the target animation includes: In response to the configuration instruction for the target animation, set the event triggering time frame corresponding to the target animation, and configure an event list for the event triggering time frame; The event triggering time frame and the event list corresponding to the event triggering time frame are combined to generate a key-value pair corresponding to the event triggering time frame, and the key-value pairs corresponding to all event triggering time frames are combined to generate a first data file corresponding to the target animation.

10. The method according to claim 8, characterized in that The step of importing the second data file corresponding to the target animation from the preset database includes: Read the second data file from the preset database; wherein the event information in the second data file includes a key-value pair consisting of an event triggering time frame and an event list; Acquire all event trigger time frames in the second data file, and sort the event trigger time frames to obtain an event trigger time list; Obtaining, from the second data file, an event list corresponding to each event trigger time frame in the event trigger time list; The events in the corresponding event list are added to the corresponding event trigger time frame in the animation file to generate events corresponding to all event trigger time frames in the event trigger time list.

11. An information processing device, characterized in that: The device is arranged in an electronic device, and the electronic device is provided with animation production software; the device comprises: An animation production module, for generating an object file containing a target animation in response to an animation production instruction; A file input module, used for inputting the object file into the game engine, so as to configure event information corresponding to the target animation in the object file in the game engine, obtain a first data file corresponding to the target animation, store the first data file in a preset database, and merge the object file and the first data file into an animation file in the game engine; wherein the first data file includes event information stored in a specified format; the event information is used to indicate a preset event triggered when the target animation is played to an event triggering time frame; A file adjustment module, used for importing the first data file from the preset database when adjusting the target animation, and adjusting the event information in the first data file based on the adjusted target animation to obtain the adjusted event information, and obtaining a second data file based on the adjusted event information; wherein the second data file includes event information stored in a specified format; The file storage module is used to store the second data file in the preset database, and merge the object file containing the adjusted target animation and the second data file into an animation file and import it into the game engine, so that the game engine performs game rendering according to the second data file and the adjusted target animation in the animation file.

12. An information processing device, characterized in that: The device is arranged in an electronic device, and a game engine is arranged in the electronic device; the device comprises: Animation receiving module, used for receiving object files input by animation making software; wherein the object files include target animation; A file configuration module, for responding to a configuration operation for the target animation, generating event information corresponding to the target animation, and obtaining a first data file corresponding to the target animation; wherein the first data file includes event information stored in a specified format; the event information is used to indicate a preset event triggered when the target animation is played to a preset event triggering time frame; A file merging module, used for storing the first data file in a preset database, and merging the object file and the first data file into an animation file, so as to perform game rendering through the animation file; A file receiving module, configured to receive the adjusted target animation sent by the animation production software after the target animation is adjusted, import a second data file corresponding to the target animation from the preset database, and perform game rendering according to the second data file and the adjusted target animation; Wherein, the second data file and the adjusted target animation are determined in the following manner: when adjusting the target animation, the first data file is imported from the preset database through the animation production software, and based on the adjusted target animation, the event information in the first data file is adjusted to obtain the adjusted event information, and the second data file is obtained based on the adjusted event information, and the second data file is stored in the preset database; wherein, the second data file includes event information stored in a specified format.

13. An electronic device, characterized in that: The electronic device includes a processor and a memory, the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the information processing method according to any one of claims 1 to 10.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are called and executed by a processor, the computer-executable instructions prompt the processor to implement the information processing method according to any one of claims 1 to 10.