Search

CN-121982168-A - Interactive animation generation method and device

CN121982168ACN 121982168 ACN121982168 ACN 121982168ACN-121982168-A

Abstract

The embodiment of the specification provides an interactive animation generation method and device, wherein the interactive animation generation method comprises the steps of responding to an interactive animation generation request, determining a first object and a second object to be interacted, obtaining first object information of the first object and second object information of the second object, obtaining target interaction actions to be executed based on the first object information, determining initial response actions of the target interaction actions based on a response action library, adjusting the initial response actions based on the second object information, obtaining updated response actions, and generating interactive animations of the first object and the second object based on the target interaction actions and the updated response actions. The method achieves the effect that when excellent animation expressive force is obtained, independent interactive animations are not required to be manufactured for each object and action combination, the resource utilization efficiency and the development efficiency are improved, and the method can be widely applied to the field of digital cultural creative software in the digital creative industry.

Inventors

  • FENG ZIYU
  • LIU MENG
  • YANG PENG
  • MENG YAN

Assignees

  • 珠海金山数字网络科技有限公司

Dates

Publication Date
20260505
Application Date
20260129

Claims (13)

  1. 1. An interactive animation generation method, comprising: Responding to an interactive animation generation request, determining a first object and a second object to be interacted, and acquiring first object information of the first object and second object information of the second object; Acquiring a target interaction action to be executed based on the first object information; Determining an initial response action of the target interaction action based on a response action library, and adjusting the initial response action based on the second object information to obtain an updated response action; and generating the interactive animation of the first object and the second object based on the target interactive action and the updating response action.
  2. 2. The interactive animation generation method of claim 1, wherein the target interactive action comprises a plurality of interactive sub-actions arranged in time sequence, and the response action library comprises a plurality of response sub-actions; the determining an initial response action of the target interaction action based on the response action library comprises: Based on the gesture constraint condition, matching the skeleton position information of each interaction sub-action with the skeleton position information of each response sub-action in the response action library to obtain a basic response sub-action corresponding to each interaction sub-action; and combining the basic response sub-actions obtained by matching based on the time sequence relation of the interaction sub-actions to generate the initial response action.
  3. 3. The interactive animation generation method of claim 1, wherein the second object information comprises at least one of an object type, an object shape, and an object model, wherein the adjusting the initial response action based on the second object information to obtain an updated response action comprises: and adjusting skeleton position information of each sub-action in the initial response action based on at least one of the object type, the object shape and the object model to obtain the updated response action.
  4. 4. The interactive animation generation method of claim 1, wherein the first object information comprises a first initial position of a first object, a first character type, and the second object information comprises a second initial position of a second object and a second character type; The generating the interactive animation of the first object and the second object based on the target interactive action and the update response action comprises the following steps: Loading the interactive animation resources of the target interactive action and the response animation resources of the updated response action; Determining an interaction type of the first object and the second object in response to an interaction trigger event, wherein the interaction type is used for indicating a distance constraint of interaction between the first object and the second object; updating the first initial position and the second initial position based on the first initial position, the first character type, the second initial position and the second character type and combining the interaction type and the interaction environment of the first object and the second object to obtain an interaction position of the first object and a response position of the second object; and rendering the interactive animation resource at the interactive position of the first object, and rendering the response animation resource at the response position of the second object, so as to generate the interactive animation of the first object and the second object.
  5. 5. The interactive animation generation method of claim 4, wherein the rendering the interactive animation resource at the interactive position of the first object and the responsive animation resource at the responsive position of the second object generates the interactive animation of the first object and the second object, comprising: Generating an interaction flow based on an interaction time line according to the first object information, the second object information, the target interaction action and the updating response action, wherein the interaction flow is used for indicating animation resources to be rendered at each interaction moment on the interaction time line, and the animation resources to be rendered are the interaction animation resources and/or the response animation resources; And based on the interaction flow, rendering corresponding target animation resources at each interaction moment on the interaction time line, and generating the interaction animation of the first object and the second object, wherein the target animation resources are rendered at the interaction position when the target animation resources are interaction animation resources, and the target animation resources are rendered at the response position when the target animation resources are response animation resources.
  6. 6. The method for generating interactive animation according to claim 5, wherein said rendering corresponding target animation resources at each interaction time on the interaction timeline based on the interaction flow, before generating the interactive animation of the first object and the second object, further comprises: and determining each interaction moment of the animation resource to be rendered on the interaction time line based on the interaction time line and a rendering frame rate constraint, wherein the rendering frame rate constraint is used for constraining the rendering moment of the animation resource and not constraining the logic calculation of the interaction results of the first object and the second object.
  7. 7. The method of generating interactive animation according to claim 6, wherein after determining each interaction time of the animation resource to be rendered on the interaction time line based on the interaction time line and the rendering frame rate constraint, further comprising: interpolation is carried out on each interaction moment on the interaction time line, and updated interaction moment is determined; Correspondingly, based on the interaction flow, rendering corresponding target animation resources at each interaction moment on the interaction time line, and generating the interaction animation of the first object and the second object, including: And rendering corresponding target animation resources at each updating interaction moment on the interaction time line based on the interaction flow, and generating the interaction animation of the first object and the second object.
  8. 8. The interactive animation generation method of claim 1, wherein the second object comprises an interactable portion, wherein the generating the interactive animation of the first object and the second object based upon the target interactive action and the update response action comprises: acquiring interaction triggering parameters of each interactable part of the second object; Determining whether the action parameters of the target interactive action meet the interactive triggering parameters of target interactive parts, wherein the target interactive parts are interactive parts indicated by the updated response actions in the interactive parts; if so, generating an interactive animation of the first object and the second object based on the target interactive action, the updated response action and the target interactable part.
  9. 9. The interactive animation generation method of claim 4, wherein loading the interactive animation resources of the target interactive action and updating the response animation resources of the response action comprises: Determining interaction types of the first object and the second object, searching at least one type of interaction resource package in a first interaction database based on the first object information and the interaction types, and searching at least one type of response resource package in a second interaction database based on the second object information and the interaction types, wherein the first interaction database is the same as or different from the second interaction database, and the first interaction database and the second interaction database store at least one type of resource package; The interactive animation resources are obtained based on the at least one type of interactive resource package, and the response animation resources are obtained based on the at least one type of response resource package.
  10. 10. An interactive animation generating apparatus, comprising: The first determining module is configured to respond to the interactive animation generation request, determine a first object and a second object to be interacted, and acquire first object information of the first object and second object information of the second object; the acquisition module is configured to acquire a target interaction action to be executed based on the first object information; An adjustment module configured to determine an initial response action of the target interaction action based on a response action library, adjust the initial response action based on the second object information, and obtain an updated response action; and a generation module configured to generate an interactive animation of the first object and the second object based on the target interactive action and the update response action.
  11. 11. A computing device, comprising: A memory and a processor; The memory is configured to store computer-executable instructions that, when executed by the processor, implement the steps of the interactive animation generation method of any of claims 1-9.
  12. 12. A computer readable storage medium, characterized in that it stores computer executable instructions which, when executed by a processor, implement the steps of the interactive animation generation method of any of claims 1-9.
  13. 13. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the interactive animation generation method of any of claims 1-9.

Description

Interactive animation generation method and device Technical Field The embodiment of the specification relates to the field of digital culture creative software in the digital creative industry, in particular to an interactive animation generation method and device. Background In digital cultural software products, there are various types of virtual objects that can interact with actions in a virtual scene, and in order to improve expressive force, it is often necessary to insert, during the interaction of the virtual objects, close-up animation for the virtual object being interacted with, which is usually generated in real time based on pre-constructed resources and the virtual object currently being interacted with and its environment. In the prior art, a common method of generating such animations during the generation of close-up interactive animations is to pre-produce a complete animation segment containing the interactive object. However, in this animation generation method, it is necessary to create an independent interactive animation for each object and each action combination, and there is a problem that too much processing resources need to be developed, resulting in low development efficiency and flexibility. Disclosure of Invention In view of this, the present embodiment provides an interactive animation generation method. One or more embodiments of the present specification also relate to an interactive animation generating apparatus, a computing device, a computer-readable storage medium, and a computer program product that solve the technical drawbacks of the prior art. According to a first aspect of embodiments of the present specification, there is provided an interactive animation generation method, including: Responding to an interactive animation generation request, determining a first object and a second object to be interacted, and acquiring first object information of the first object and second object information of the second object; Acquiring a target interaction action to be executed based on the first object information; Determining an initial response action of the target interaction action based on the response action library, and adjusting the initial response action based on the second object information to obtain an updated response action; An interactive animation of the first object and the second object is generated based on the target interactive action and the update response action. According to a second aspect of embodiments of the present specification, there is provided an interactive animation generating apparatus comprising: The determining module is configured to respond to the interactive animation generation request, determine a first object and a second object to be interacted, and acquire first object information of the first object and second object information of the second object; The acquisition module is configured to acquire target interaction actions to be executed based on the first object information; An adjustment module configured to determine an initial response action of the target interaction action based on the response action library, adjust the initial response action based on the second object information, and obtain an updated response action; and a generation module configured to generate an interactive animation of the first object and the second object based on the target interactive action and the update response action. According to a third aspect of embodiments of the present specification, there is provided a computing device comprising: A memory and a processor; the memory is configured to store computer-executable instructions that, when executed by the processor, perform the steps of the interactive animation generation method described above. According to a fourth aspect of embodiments of the present specification, there is provided a computer-readable storage medium storing computer-executable instructions which, when executed by a processor, implement the steps of the interactive animation generation method described above. According to a fifth aspect of embodiments of the present specification, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the interactive animation generation method described above. The interactive animation generation method provided by the specification is used for responding to an animation generation request, determining a first object and a second object to be interacted, acquiring first object information of the first object and second object information of the second object, acquiring target interactive actions to be executed based on the first object information, determining initial response actions of the target interactive actions based on a response action library according to the target interactive actions of the first object, ensuring interactive logic in the animation, adjusting the initial res