Target animation generation method and device, equipment and storage medium
By receiving editing instructions and target objects, determining the playback order of the pending clips and component animations, and generating target animations, solving the problems of cumbersome and high cost of animation production in the existing technology, and achieving efficient and convenient animation production.
Patent Information
- Application Number
- CN202411940903.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-25
- Publication Date
- 2025-04-22
AI Technical Summary
In the prior art, when creating an animation for displaying the item installation process, it is necessary to design animations for each component that constitutes the object, and when it is necessary to adjust the animation, the animation of multiple components needs to be adjusted one by one, resulting in a cumbersome animation production process and increasing time and cost.
By receiving editing instructions and target objects, the playback order of pending clips and component animations are determined, and the target animation is generated. This method only needs to adjust the playback order of the clip and component animations to achieve overall adjustment of the target animation.
It improves the efficiency of animation production, reduces the cumbersomeness and professionalism of animation production, and reduces the time and cost of animation production.
Smart Images

Figure CN119863553A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to technical fields such as animation rendering. Background Art
[0002] In recent years, with the rapid development of virtual reality, augmented reality and computer graphics, animation production technology has also been constantly innovating and developing. When users install various items, they are increasingly relying on animations that can show the installation process of items.
[0003] However, when producing animations for displaying the installation process of an object, the prior art often needs to design animations for each component that constitutes the object. In addition, if the generated animation needs to be adjusted, the prior art usually needs to adjust the animations corresponding to multiple components. This not only makes the animation production process cumbersome, but also increases the production time and cost of the animation.
[0004] Therefore, how to efficiently and conveniently produce animations for displaying the installation process of items has become an urgent problem to be solved. Summary of the invention
[0005] The present disclosure provides a method, device, equipment and storage medium for generating a target animation to solve or alleviate one or more technical problems in the prior art.
[0006] In a first aspect, the present disclosure provides a method for generating a target animation, comprising:
[0007] Receiving an editing instruction and a target object; wherein the target object includes a plurality of segments to be processed; each segment to be processed includes at least one component to be processed;
[0008] Using the editing instruction, determine the first order and the second order corresponding to each to-be-processed segment; wherein the first order represents the play order of the segment animations corresponding to each to-be-processed segment; for any to-be-processed segment, the second order represents the play order of the component animations corresponding to each to-be-processed component in the to-be-processed segment;
[0009] According to the first order, the fragment animations corresponding to each fragment to be processed are played in sequence to obtain the target animation corresponding to the target object; wherein, for any fragment to be processed, the fragment animation is determined according to the second order corresponding to the fragment to be processed and the component animations corresponding to each component to be processed in the fragment to be processed.
[0010] In a second aspect, the present disclosure provides a device for generating a target animation, comprising:
[0011] A receiving module, used for receiving an editing instruction and a target object; wherein the target object includes a plurality of segments to be processed; each segment to be processed includes at least one component to be processed;
[0012] A determination module, used to determine the first order and the second order corresponding to each to-be-processed segment by using the editing instruction; wherein the first order represents the play order of the segment animation corresponding to each to-be-processed segment; and for any to-be-processed segment, the second order represents the play order of the component animation corresponding to each to-be-processed component in the to-be-processed segment;
[0013] The target animation generation module is used to play the fragment animations corresponding to each to-be-processed fragment in sequence according to the first order to obtain the target animation corresponding to the target object; wherein, for any to-be-processed fragment, the fragment animation is determined according to the second order corresponding to the to-be-processed fragment and the component animation corresponding to each to-be-processed component in the to-be-processed fragment.
[0014] In a third aspect, an electronic device is provided, including:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.
[0018] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method according to the embodiments of the present disclosure.
[0019] In a fifth aspect, a computer program product is provided, comprising a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.
[0020] The beneficial effects of the technical solution provided by the present disclosure include at least: the present disclosure only needs to adjust the first order and / or the second order corresponding to each to-be-processed segment to achieve overall adjustment of the target animation; wherein the first order represents the playback order of the segment animations corresponding to each to-be-processed segment in the target animation; for any to-be-processed segment, the second order is used to represent the playback order of the component animations corresponding to each to-be-processed component in the to-be-processed segment in the segment animation corresponding to the to-be-processed segment. By adjusting the target animation in the above manner, the present disclosure can improve the efficiency of animation production, reduce the complexity of animation production and the professionalism required for animation production.
[0021] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0023] Figure 1 is a schematic diagram of an application scenario according to an embodiment of the present disclosure;
[0024] Figure 2 is a flow chart of a method for generating a target animation according to an embodiment of the present disclosure;
[0025] Figure 3 is a schematic block diagram of a method for generating a target animation according to an embodiment of the present disclosure;
[0026] Figure 4A is a schematic block diagram of a hierarchical model for representing a target object according to an embodiment of the present disclosure. Figure 1 ;
[0027] Figure 4B is a schematic block diagram of a hierarchical model for representing a target object according to an embodiment of the present disclosure. Figure 2 ;
[0028] Figure 5 is a schematic block diagram of another method for generating a target animation according to an embodiment of the present disclosure;
[0029] Figure 6 is a structural schematic diagram of a target animation generating device 600 according to an embodiment of the present disclosure;
[0030] Figure 7 FIG. 4 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0031] The present disclosure will be further described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0032] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0033] With the rapid development of virtual reality, augmented reality and computer graphics, animation, as an intuitive and vivid means of display, is playing an increasingly important role in various fields. However, the traditional animation production method is not only cumbersome, repetitive and time-consuming, but also requires animators to have certain professional skills.
[0034] Specifically, if an animation is needed to show the installation process of a target object (such as furniture, etc.) (hereinafter referred to as target animation), the prior art often requires splitting the target object to obtain multiple components contained in the target object; and designing the animation corresponding to each component one by one to obtain the target animation corresponding to the target object. Since the animation corresponding to each component needs to be designed separately, this not only increases the design time and cost of the target animation, but also further increases the probability of error when making the target animation.
[0035] In addition, if the appearance order of the animation corresponding to any component in the target animation needs to be adjusted, the prior art not only requires manual adjustment of the appearance order of the animation corresponding to the component in the target animation, but also requires adjustment of multiple components associated with the component one by one, that is, adjustment of the appearance order of the animation corresponding to each component in the multiple components in the target animation one by one. This often results in a significant increase in the production cost of the target animation and a significant reduction in production efficiency, which causes considerable obstacles to the animation production process.
[0036] In order to solve the above problem and efficiently generate a target animation for displaying the installation process of a target object, an embodiment of the present disclosure proposes a method for generating a target animation, where the target animation is used to display the installation process of a target object.
[0037] Figure 1 is a schematic diagram of an application scenario according to an embodiment of the present disclosure, such as Figure 1 As shown, the application scenario includes: a terminal device 110 and a server 120; wherein the terminal device 110 and the server 120 can communicate with each other through any type of wired or wireless network.
[0038] In one example, the terminal device 110 is used to receive a target object and an editing instruction input by a user, and send the editing instruction and the target object to the server 120 through a network; wherein the target object may include any object that needs to be installed, such as furniture, and the target object may include multiple segments to be processed, and each segment to be processed may include multiple components to be processed. The server 120 is used to receive the editing instruction and the target object from the terminal device 110 through a network; according to the editing instruction, determine the first order corresponding to the target object and the second order corresponding to each segment to be processed; according to the first order, the second order, and the editing instruction, determine the target animation corresponding to the target object, and send the target animation to the terminal 110 through the network. wherein the first order represents the play order of the segment animation corresponding to each segment to be processed; for any segment to be processed, the second order represents the play order of the component animation corresponding to each component to be processed in the segment to be processed.
[0039] It should be noted that the application scenario of the embodiment of the present disclosure does not limit the number of terminal devices 110. For example, the application scenario may include one or more terminal devices 110. The terminal device 110 includes but is not limited to electronic devices such as mobile phones and computers. The server 120 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers.
[0040] Figure 2 FIG. 1 is a flow chart of a method for generating a target animation according to an embodiment of the present disclosure, wherein the target animation is used to display the installation process of the target object. Figure 2 As shown, the method for generating the target animation includes:
[0041] S210, receiving an editing instruction and a target object; wherein the target object includes a plurality of segments to be processed; each segment to be processed includes at least one component to be processed;
[0042] S220, using the editing instruction, determining a first order and a second order corresponding to each to-be-processed segment; wherein the first order represents the play order of the segment animations corresponding to each to-be-processed segment; and for any to-be-processed segment, the second order represents the play order of the component animations corresponding to each to-be-processed component in the to-be-processed segment;
[0043] S230. Play the fragment animations corresponding to each fragment to be processed in sequence according to the first order to obtain the target animation corresponding to the target object; wherein, for any fragment to be processed, the fragment animation is determined according to the second order corresponding to the fragment to be processed and the component animation corresponding to each component to be processed in the fragment to be processed.
[0044] The prior art usually needs to determine the multiple components to be processed contained in the target object, and play each component animation in sequence according to the play order of the component animation corresponding to each component to be processed, so as to obtain the target animation. However, when adjusting the play order of any component animation, this method not only needs to manually adjust the play order of the component animation, but also needs to adjust the play order of the remaining multiple component animations associated with the component animation one by one, which often results in a significant increase in the production cost of the target animation and a significant reduction in production efficiency.
[0045] Compared with the prior art, the embodiment of the present disclosure only needs to adjust the first order corresponding to the target object and / or the second order corresponding to each fragment to be processed to achieve overall adjustment of the target animation, which greatly improves the efficiency of animation production, reduces the tediousness of animation production, and reduces the time required for animation production.
[0046] The disclosed embodiment automatically generates a target animation corresponding to a target object through a plurality of to-be-processed segments contained in the target object, to-be-processed components contained in each to-be-processed segment, and user-defined editing instructions. This not only eliminates the need to design the animation corresponding to each to-be-processed component contained in the target object one by one, thereby reducing the complexity of target animation production, but also enables users to personalize editing of the target animation, thereby reducing the expertise required to produce the target animation and improving user experience.
[0047] Figure 3 is a schematic block diagram of a method for generating a target animation according to an embodiment of the present disclosure, such as Figure 3 As shown, the method for generating a target animation proposed in the embodiment of the present disclosure may include the following steps:
[0048] Step 1: Receive a plurality of to-be-processed segments contained in a target object, at least one to-be-processed component contained in each to-be-processed segment, and an editing instruction input by a user.
[0049] The target object may include any entity that needs to demonstrate the installation process, such as tables, chairs, beds, cabinets, sofas, lamps, and electronic equipment.
[0050] The editing instruction may include at least one of the following:
[0051] First order;
[0052] The second order corresponding to any fragment to be processed;
[0053] The first animation parameter corresponding to any segment to be processed;
[0054] The second animation parameter corresponding to any component to be processed.
[0055] The disclosed embodiment enables the user to personalize the target animation through user-defined editing instructions, greatly improves the flexibility and convenience of the target animation generation process, meets the different needs of different users for the target animation, and improves the user experience.
[0056] Furthermore, in order to more conveniently generate the target animation, the disclosed embodiment introduces a hierarchical model with high flexibility and scalability. Specifically, the disclosed embodiment can intuitively display multiple to-be-processed segments contained in the target object and at least one to-be-processed component contained in each to-be-processed segment through the hierarchical model.
[0057] In one example, the present disclosure may be implemented as follows: Figure 4A The hierarchical model shown represents the target object. Figure 4A As shown, the hierarchical model may include three layers, wherein the first layer may include a target object; the second layer may include multiple fragments to be processed that constitute the target object; and the third layer may include multiple groups of components to be processed, each group of components to be processed may be used to constitute a fragment to be processed.
[0058] Specifically, when the target object is a desk, the embodiment of the present disclosure can be implemented as follows: Figure 4B The hierarchical model shown intuitively displays the multiple to-be-processed fragments contained in the target object and at least one to-be-processed component contained in each to-be-processed fragment.
[0059] Specifically, Figure 4B As shown, the hierarchical model may include a first layer, a second layer, and a third layer. The first layer may include a target object (i.e., a desk), the second layer may include multiple fragments to be processed, i.e., a desktop fragment, a table leg fragment, and a bookshelf fragment; the third layer may include multiple groups of components to be processed, i.e., a first group of components to be processed for constituting a desktop fragment, which includes a desktop large board component, a drawer component, and a wire box component; a second group of components to be processed for constituting a table leg fragment, which includes a first table leg component, a first table leg screw component, a second table leg component, a second table leg screw component, a third table leg component, a third table leg screw component, a fourth table leg component, and a fourth table leg screw component; and a third group of components to be processed for constituting a bookshelf fragment, which may include a first vertical board component, a layer board component, a first fixing screw component, a second vertical board component, and a second fixing screw component.
[0060] Step 2: Determine the first order and the second order corresponding to each fragment to be processed.
[0061] In some implementations, the embodiments of the present disclosure may determine the first order through user-defined editing instructions; or, the first order may also be determined according to a conventional installation order corresponding to the target object.
[0062] Specifically, when the editing instruction carries the first order, the embodiment of the present disclosure can directly determine the first order corresponding to the target object according to the editing instruction, that is, the playback order of the segment animations corresponding to each to-be-processed segment in the target object.
[0063] For example, in the case that the target object is a desk, and the target object includes a desktop segment, a table leg segment and a bookshelf segment, if the editing instruction carries a first order, and the first order includes "the playback time of the segment animation corresponding to the bookshelf segment is earlier than the segment animation corresponding to the table leg segment, and the playback time of the segment animation corresponding to the table leg segment is earlier than the segment animation corresponding to the desktop segment", then the disclosed embodiment can directly determine the first order corresponding to the target object according to the editing instruction, that is, "the playback time of the segment animation corresponding to the bookshelf segment is earlier than the segment animation corresponding to the table leg segment, and the playback time of the segment animation corresponding to the table leg segment is earlier than the segment animation corresponding to the desktop segment".
[0064] Alternatively, when the user-defined editing instruction does not carry the first sequence, the embodiment of the present disclosure can determine the first sequence corresponding to the target object according to a pre-set sequence, wherein the pre-set sequence can be determined according to the conventional installation sequence corresponding to each to-be-processed segment in the target object.
[0065] For example, in the case that the editing instruction does not carry the first order and the target object is a desk, if the target object includes a desktop fragment, a table leg fragment and a bookshelf fragment, then the disclosed embodiment can determine the first order of the target object based on a pre-set order (i.e., the normal installation order corresponding to each to-be-processed fragment in the desk), such as "the playback time of the fragment animation corresponding to the desktop fragment is earlier than the fragment animation corresponding to the table leg fragment, and the playback time of the fragment animation corresponding to the table leg fragment is earlier than the fragment animation corresponding to the bookshelf fragment", that is, "the playback time of the fragment animation corresponding to the desktop fragment is earlier than the fragment animation corresponding to the table leg fragment, and the playback time of the fragment animation corresponding to the table leg fragment is earlier than the fragment animation corresponding to the bookshelf fragment".
[0066] In some implementations, for any fragment to be processed, the embodiment of the present disclosure may also determine the second order corresponding to the fragment to be processed through user-defined editing instructions; or, the second order may also be determined through the regular installation order corresponding to the fragment to be processed.
[0067] Specifically, for any fragment to be processed, when the editing instruction carries the second order corresponding to the fragment to be processed, the embodiment of the present disclosure can directly determine the second order corresponding to the fragment to be processed according to the editing instruction, that is, the playback order of component animations corresponding to each component to be processed in the fragment to be processed.
[0068] For example, when the fragment to be processed is a desktop fragment, and the desktop fragment includes a desktop panel component, a drawer component and a wire box component, if the editing instruction carries the second order corresponding to the fragment to be processed, and the second order includes "the playback time of the component animation corresponding to the wire box component is earlier than the component animation corresponding to the drawer component, and the playback time of the component animation corresponding to the drawer component is earlier than the component animation corresponding to the desktop panel component", then the embodiment of the present disclosure can directly determine the second order corresponding to the desktop fragment according to the editing instruction, that is, "the playback time of the component animation corresponding to the wire box component is earlier than the component animation corresponding to the drawer component, and the playback time of the component animation corresponding to the drawer component is earlier than the component animation corresponding to the desktop panel component".
[0069] Alternatively, for any to-be-processed segment, when the editing instruction does not carry the second sequence corresponding to the to-be-processed segment, the embodiment of the present disclosure can determine the second sequence corresponding to the to-be-processed segment according to a pre-set sequence. The pre-set sequence corresponding to the to-be-processed segment can be determined according to the conventional installation sequence corresponding to each to-be-processed component in the to-be-processed segment.
[0070] For example, for any fragment to be processed, when the editing instruction does not carry the second order corresponding to the fragment to be processed, and the fragment to be processed includes a desktop fragment of a desktop panel component, a drawer component and a wire box component, the disclosed embodiment can determine the second order corresponding to the fragment to be processed based on a pre-set order (i.e., the conventional installation order corresponding to each component to be processed in the desktop fragment), such as "the playback time of the component animation corresponding to the desktop panel component is earlier than the component animation corresponding to the drawer component, and the playback time of the component animation corresponding to the drawer component is earlier than the component animation corresponding to the wire box component", that is, "the playback time of the component animation corresponding to the desktop panel component is earlier than the component animation corresponding to the drawer component, and the playback time of the component animation corresponding to the drawer component is earlier than the component animation corresponding to the wire box component".
[0071] The disclosed embodiments can allow users to determine editing instructions according to their own needs, and generate target animations that meet user expectations based on the editing instructions, thereby reducing the professionalism required to produce target animations, making it convenient for ordinary users to generate target animations conveniently and efficiently, and improving user experience.
[0072] Step 3: Determine the first animation parameter corresponding to each to-be-processed segment and the second animation parameter corresponding to each to-be-processed component.
[0073] For any segment to be processed, the first animation parameter is determined according to the editing instruction and / or the attribute information of the segment to be processed; wherein the attribute information of the segment to be processed includes at least one of the length, height and width of the segment to be processed;
[0074] For any component to be processed, the second animation parameter is determined according to the editing instruction and / or the attribute information of the component to be processed; wherein the attribute information of the component to be processed includes at least one of the length, height and width of the component to be processed.
[0075] The disclosed embodiment determines the first animation parameter and the second animation parameter by various means such as editing instructions and attribute information, which greatly increases the flexibility and efficiency in the generation and adjustment of fragment animation and component animation, meets the personalized needs of different users, and improves the user experience.
[0076] Wherein, for any segment to be processed, the first animation parameter includes at least one of the animation effect, the playing time and the animation direction of the segment animation corresponding to the segment to be processed;
[0077] For any component to be processed, the second animation parameter includes at least one of the animation effect, playback duration and animation direction of the component animation corresponding to the component to be processed; wherein the animation effect includes at least one of rotation animation, zoom animation and translation animation.
[0078] Of course, it should be noted that the embodiment of the present disclosure does not limit the first animation parameter and the second animation parameter, and the first animation parameter and the second animation parameter may also include other contents.
[0079] The disclosed embodiment enables the user to accurately customize the segment animation and component animation through the first animation parameter and the second animation parameter, thereby achieving the purpose of the user customizing the target animation efficiently and quickly, and improving the user's experience.
[0080] Specifically, for any to-be-processed segment, in the case where the editing instruction carries the first animation parameter corresponding to the to-be-processed segment, the first animation parameter corresponding to the to-be-processed segment is determined according to the editing instruction;
[0081] When the editing instruction does not carry the first animation parameter corresponding to the fragment to be processed, the attribute information of the fragment to be processed is input into the pre-trained model to determine the category to which the fragment to be processed belongs; and based on the category to which the fragment to be processed belongs, the first animation parameter corresponding to the fragment to be processed is determined.
[0082] The pre-trained model is trained using a plurality of components to be processed, the categories to which each component to be processed belongs, a plurality of segments to be processed, and the categories to which each segment to be processed belongs.
[0083] Specifically, for any segment to be processed, when the user-defined editing instruction carries the first animation parameter corresponding to the segment to be processed, the embodiment of the present disclosure can directly determine the first animation parameter corresponding to the segment to be processed according to the editing instruction.
[0084] For example, for any fragment to be processed, when the editing instruction carries the first animation parameter corresponding to the fragment to be processed and the first animation parameter includes a translation animation, the embodiment of the present disclosure can directly determine, based on the editing instruction, that the first animation parameter corresponding to the fragment to be processed at least includes a translation animation.
[0085] Alternatively, for any segment to be processed, when the editing instruction does not carry the first animation parameter corresponding to the segment to be processed, the embodiment of the present disclosure may determine the first animation parameter corresponding to the segment to be processed according to the attribute information of the segment to be processed.
[0086] Specifically, for any fragment to be processed, if the editing instruction does not carry the first animation parameter corresponding to the fragment to be processed, then the embodiment of the present disclosure can input the attribute information of the fragment to be processed, such as the length, height and width of the fragment to be processed, into a pre-trained model to obtain the category to which the fragment to be processed belongs, and determine the first animation parameter corresponding to the fragment to be processed based on the category to which the fragment to be processed belongs. For example, if the category to which the fragment to be processed is obtained as a desktop category according to the attribute information of the fragment to be processed and the pre-trained model, then the embodiment of the present disclosure can determine that the first animation parameter corresponding to the fragment to be processed at least includes a translation animation based on the conventional animation effect corresponding to the desktop category fragment, such as a translation animation.
[0087] It should be noted that the categories to which the to-be-processed segments belong include not only desktop categories, but the above are only examples. For example, the categories to which the to-be-processed segments belong may also include table legs categories and bookshelf categories.
[0088] In one example, for any segment to be processed, when the editing instruction carries the first animation parameter corresponding to the segment to be processed, but the first animation parameter does not include the playback duration, if the playback duration of the segment animation corresponding to the segment to be processed cannot be determined based on the attribute information of the segment to be processed and the pre-trained model, then the embodiment of the present disclosure may default the playback duration of the segment animation corresponding to the segment to be processed to 1s; or, for any segment to be processed, when the editing instruction does not carry the first animation parameter corresponding to the segment to be processed, and the playback duration of the segment animation corresponding to the segment to be processed cannot be determined based on the attribute information of the segment to be processed and the pre-trained model, the embodiment of the present disclosure may also default the playback duration of the segment animation corresponding to the segment to be processed to 1s.
[0089] In addition, for any segment to be processed, when the editing instruction carries the first animation parameter corresponding to the segment to be processed, the embodiment of the present disclosure can also input the attribute information of the segment to be processed into the pre-trained model, thereby expanding the first animation parameter corresponding to the segment to be processed.
[0090] For example, for any segment to be processed, when the editing instruction carries the first animation parameter corresponding to the segment to be processed, if the first animation parameter includes the playback duration of the segment animation corresponding to the segment to be processed, then the disclosed embodiment can also input the attribute information of the segment to be processed into the pre-trained model to obtain the category to which the segment to be processed belongs, and further expand the first animation parameter corresponding to the segment to be processed according to the conventional animation effects and conventional animation directions corresponding to the category. For example, if the category to which the segment to be processed belongs is the desktop category, and the conventional animation effect corresponding to the desktop category is a panning animation, then the disclosed embodiment can add the panning animation to the first animation parameter corresponding to the segment to be processed.
[0091] It should be noted that, for any segment to be processed, if the first animation parameter obtained based on the attribute information of the segment to be processed and the pre-trained model conflicts with the first animation parameter for the segment to be processed carried by the editing instruction, the first animation parameter for the segment to be processed in the editing instruction is preferentially selected. For example, for any segment to be processed, based on the pre-trained model and the attribute information of the segment to be processed, the playback duration of the segment animation corresponding to the segment to be processed is 3s, that is, the first animation parameter corresponding to the segment to be processed includes a playback duration of 3s. If the first animation parameter for the segment to be processed carried by the editing instruction includes a playback duration of 5s, then the embodiment of the present disclosure needs to determine the animation duration corresponding to the segment to be processed as 5s according to the editing instruction.
[0092] In some implementations, for any component to be processed, when the editing instruction carries the second animation parameter corresponding to the component to be processed, the second animation parameter corresponding to the component to be processed is determined according to the editing instruction;
[0093] When the editing instruction does not carry the second animation parameter corresponding to the component to be processed, the attribute information of the component to be processed is input into the pre-trained model to determine the category to which the component to be processed belongs, and the second animation parameter corresponding to the component to be processed is determined based on the category to which the component to be processed belongs.
[0094] Specifically, for any component to be processed, when the editing instruction carries the second animation parameter corresponding to the component to be processed, the embodiment of the present disclosure can directly determine the second animation parameter corresponding to the component to be processed according to the editing instruction.
[0095] For example, for any component to be processed, when the editing instruction carries the second animation parameters corresponding to the component to be processed, and the second animation parameters include translation animation and rotation animation, the embodiment of the present disclosure can directly determine, based on the editing instruction, that the second animation parameters corresponding to the component to be processed at least include translation animation and rotation animation.
[0096] Alternatively, for any component to be processed, when the editing instruction does not carry the second animation parameter corresponding to the component to be processed, the embodiment of the present disclosure can determine the second animation parameter corresponding to the component to be processed based on the attribute information of the component to be processed and the pre-trained model.
[0097] Specifically, for any component to be processed, when the editing instruction does not carry the second animation parameter corresponding to the component to be processed, the embodiment of the present disclosure can input the attribute information of the component to be processed, such as the length, height and width of the component to be processed, into a pre-trained pre-trained model to obtain the category to which the component to be processed belongs, and determine the second animation parameter corresponding to the component to be processed based on the category to which the component to be processed belongs. For example, if it is determined that the category to which the component to be processed belongs is a panel class based on the attribute information of the component to be processed and the pre-trained model, then the embodiment of the present disclosure can determine that the second animation parameter corresponding to the component to be processed at least includes a translation animation based on the conventional animation effect corresponding to the panel class component, such as a translation animation.
[0098] It should be noted that the categories to which the components to be processed belong include not only panels and screws, the above are only examples. For example, the categories to which the components to be processed belong may also include table legs, drawers, wire boxes and drawers, etc.
[0099] In addition, if the category to which the component to be processed belongs is the panel category, and it has been determined that the animation effect of the component to be processed includes a translational animation, then the embodiment of the present disclosure can also determine the animation direction of the translational animation corresponding to the component to be processed based on the relative position of the component to be processed and the center point of the target object; wherein the animation direction is the direction from the center point of the component to be processed to the center point of the target object. Alternatively, if the category to which the component to be processed belongs is the screw category, and it has been determined that the animation effect of the component to be processed includes a translational animation, then the embodiment of the present disclosure can determine the long side of the component to be processed based on the bounding box corresponding to the component to be processed, and determine the animation direction of the component to be processed based on the long side of the component to be processed; wherein the animation direction includes the direction from the long side of the component to be processed to the center point of the target object.
[0100] Furthermore, for any component to be processed, when the editing instruction carries the second animation parameter corresponding to the component to be processed, the embodiment of the present disclosure can also input the attribute information of the component to be processed into the pre-trained model, thereby expanding the second animation parameter corresponding to the component to be processed.
[0101] Specifically, for any component to be processed, when the editing instruction carries the second animation parameter corresponding to the component to be processed, and the second parameter includes the playback duration of the component animation corresponding to the component to be processed, the disclosed embodiment can also input the attribute information of the component to be processed into the pre-trained model to obtain the category to which the component to be processed belongs, and expand the second animation parameter corresponding to the component to be processed according to the conventional animation effect corresponding to the category. For example, if the attribute information of the component to be processed is input into the pre-trained model, it can be obtained that the category to which the component to be processed belongs is screws, then the disclosed embodiment can add the conventional animation effects corresponding to the screw-type segment, such as translation animation and rotation animation, to the second animation parameter corresponding to the component to be processed.
[0102] It should be noted that, for any component to be processed, if the second animation parameter obtained based on the attribute information of the component to be processed and the pre-trained model conflicts with the second animation parameter for the component to be processed carried by the editing instruction, the second animation parameter for the component to be processed in the editing instruction shall be preferentially selected.
[0103] For example, for any component to be processed, if the animation direction of the component animation corresponding to the component to be processed is obtained based on the pre-trained model and the attribute information of the component to be processed as outward toward the center point of the target object, that is, the second animation parameter corresponding to the component to be processed includes an animation direction outward toward the center point of the target object, if the second animation parameter for the component to be processed carried in the editing instruction includes an animation direction inward toward the center point of the target object, then the embodiment of the present disclosure needs to determine, according to the editing instruction, that the second animation parameter corresponding to the component to be processed includes an animation direction, and the animation direction is inward toward the center point of the target object.
[0104] Step 4: Determine the target animation corresponding to the target object.
[0105] Specifically, the embodiment of the present disclosure can play the segment animations corresponding to the segments to be processed in sequence according to the first order to obtain the target animation corresponding to the target object.
[0106] For example, when the target object is a desk, and the target object includes a desktop fragment, a table leg fragment and a bookshelf fragment, if the first order corresponding to the target object includes "the playback time of the fragment animation corresponding to the bookshelf fragment is earlier than the fragment animation corresponding to the table leg fragment, and the playback time of the fragment animation corresponding to the table leg fragment is earlier than the fragment animation corresponding to the desktop fragment", then the embodiment of the present disclosure can play the fragment animation corresponding to the bookshelf fragment, the fragment animation corresponding to the table leg fragment, and the fragment animation corresponding to the desktop fragment in sequence to obtain the target animation corresponding to the target object.
[0107] Specifically, for any to-be-processed segment, the segment animation is determined according to the second order corresponding to the to-be-processed segment, the component animations corresponding to each to-be-processed component in the to-be-processed segment, and the first animation parameter corresponding to the to-be-processed segment;
[0108] For any component to be processed, the component animation is determined according to the second animation parameter corresponding to the component to be processed.
[0109] In one example, for any fragment to be processed, the embodiment of the present disclosure can play the component animations corresponding to each component to be processed in the fragment to be processed in sequence based on the second order corresponding to the fragment to be processed and the first animation parameter corresponding to the fragment to be processed to obtain the fragment animation.
[0110] For instance, taking a desktop fragment including a desktop large panel component, a drawer component and a wire box component as an example, if the second order includes "the playing time of the component animation corresponding to the desktop large panel component is earlier than the component animation corresponding to the drawer component, and the playing time of the component animation corresponding to the drawer component is earlier than the component animation corresponding to the wire box component", and the first animation parameter includes "playing duration is 5s", then the embodiment of the present disclosure can play the component animation corresponding to the desktop large panel component, the component animation corresponding to the drawer component, and the component animation corresponding to the wire box component in sequence to obtain the fragment animation corresponding to the desktop fragment, and the total playing duration of the component animation corresponding to the desktop large panel component, the component animation corresponding to the drawer component, and the component animation corresponding to the wire box component is 5s.
[0111] Through the above steps 1 to 4, the embodiment of the present disclosure can automatically and efficiently generate a target animation for displaying the installation process of the target object.
[0112] In addition, in order to further facilitate the user to adjust the target animation in a personalized manner, the embodiment of the present disclosure can adjust the first order and the second order corresponding to each to-be-processed segment before or after the above steps to achieve the adjustment of the target animation.
[0113] like Figure 5 As shown, the embodiment of the present disclosure can adjust the first order after step 3 and before step 4 to achieve the adjustment of the target animation. For example, in the case where the target object is a desk, and the target object includes a desktop segment, a table leg segment, and a bookshelf segment, if the first order corresponding to the target object includes "the playback time of the segment animation corresponding to the bookshelf segment is earlier than the segment animation corresponding to the table leg segment, and the playback time of the segment animation corresponding to the table leg segment is earlier than the segment animation corresponding to the desktop segment", then the embodiment of the present disclosure can adjust the first order to "the playback time of the segment animation corresponding to the table leg segment is earlier than the segment animation corresponding to the desktop segment, and the playback time of the segment animation corresponding to the desktop segment is earlier than the segment animation corresponding to the bookshelf segment" after step 3 and before step 4, and based on the adjusted first order, play the segment animations corresponding to each to-be-processed segment in sequence to generate the target animation corresponding to the target object.
[0114] Alternatively, the embodiment of the present disclosure may also adjust the second order after step 3 and before step 4 to adjust the target animation. For example, in the case where the fragment to be processed is a desktop fragment, and the desktop fragment includes a desktop large board component, a drawer component and a wire box component, if the second order corresponding to the desktop fragment includes "the playback time of the component animation corresponding to the desktop large board component is earlier than the component animation corresponding to the drawer component, and the playback time of the fragment animation corresponding to the drawer component is earlier than the component animation corresponding to the wire box component", then the embodiment of the present disclosure may adjust the second order to "the playback time of the component animation corresponding to the drawer component is earlier than the component animation corresponding to the desktop large board component, and the playback time of the fragment animation corresponding to the desktop large board component is earlier than the component animation corresponding to the wire box component" after step 3 and before step 4, and based on the adjusted second order, play the component animations corresponding to each component to be processed in turn to generate the fragment animation corresponding to the desktop fragment.
[0115] It can be seen that the embodiment of the present disclosure can adjust the target animation without adjusting the playback order of the component animations corresponding to the components to be processed in the target object, which greatly improves the production efficiency of the target animation, reduces the tediousness of animation production, reduces the time required for animation production, and improves the user experience.
[0116] Of course, it should be noted that the component to be processed proposed in the embodiment of the present disclosure is not the smallest unit (i.e., an indivisible unit) required during the installation of the target object. Specifically, each of the multiple components to be processed mentioned above can be composed of multiple sub-components to be processed, each sub-component to be processed can be composed of multiple units to be processed, and so on, until the smallest unit (i.e., an indivisible unit) required during the installation of the target object is reached.
[0117] For ease of explanation, the above contents of the embodiments of the present disclosure are explained by taking the smallest unit required in the installation process of the target object as the component to be processed as an example, however, the above contents of the embodiments of the present disclosure can be applied to the target object whose smallest unit (i.e., indivisible unit) required in the installation process is not the component to be processed. For example, when the smallest unit (i.e., indivisible unit) required in the installation process of the target object is a sub-component to be processed, and each group of sub-components to be processed is used to constitute a component to be processed, the embodiments of the present disclosure only need to repeat the above operations for each group of sub-components to be processed for each group of sub-components to be processed, so as to realize the generation of the target animation for the target object. That is, when the smallest unit (i.e., an indivisible unit) required during the installation of the target object is a sub-component to be processed, the embodiment of the present disclosure may further include: for any component to be processed, determining the third order corresponding to each sub-component to be processed in the component to be processed, wherein the third order represents the order of playing the sub-component animations corresponding to each sub-component to be processed in the component to be processed; according to the third order, playing the sub-component animations corresponding to each sub-component to be processed in turn to obtain the component animation corresponding to the component to be processed; wherein each sub-component animation is determined according to the editing instructions and / or the attribute information corresponding to each sub-component to be processed.
[0118] The disclosed embodiment also provides a device 600 for generating a target animation, where the target animation is used to display the installation process of a target object. Figure 6 is a schematic diagram of a target animation generation device 600 according to an embodiment of the present disclosure, comprising:
[0119] The receiving module 610 is used to receive an editing instruction and a target object; wherein the target object includes a plurality of segments to be processed; each segment to be processed includes at least one component to be processed;
[0120] The determination module 620 determines the first order and the second order corresponding to each to-be-processed segment by using the editing instruction; wherein the first order represents the play order of the segment animation corresponding to each to-be-processed segment; and for any to-be-processed segment, the second order represents the play order of the component animation corresponding to each to-be-processed component in the to-be-processed segment;
[0121] The target animation generation module 630 is used to play the fragment animations corresponding to each to-be-processed fragment in sequence according to the first order to obtain the target animation corresponding to the target object; wherein, for any to-be-processed fragment, the fragment animation is determined according to the second order corresponding to the to-be-processed fragment and the component animation corresponding to each to-be-processed component in the to-be-processed fragment.
[0122] In some implementations, the editing instruction includes at least one of the following:
[0123] First order;
[0124] The second order corresponding to any fragment to be processed;
[0125] The first animation parameter corresponding to any segment to be processed;
[0126] The second animation parameter corresponding to any component to be processed.
[0127] In some implementations, for any to-be-processed segment, the segment animation is determined according to the second order corresponding to the to-be-processed segment, the component animations corresponding to each to-be-processed component in the to-be-processed segment, and the first animation parameter corresponding to the to-be-processed segment;
[0128] For any component to be processed, the component animation is determined according to the second animation parameter corresponding to the component to be processed.
[0129] In some embodiments, for any segment to be processed, the first animation parameter is determined according to the editing instruction and / or the attribute information of the segment to be processed; wherein the attribute information of the segment to be processed includes at least one of the length, height and width of the segment to be processed;
[0130] For any component to be processed, the second animation parameter is determined according to the editing instruction and / or the attribute information of the component to be processed; wherein the attribute information of the component to be processed includes at least one of the length, height and width of the component to be processed.
[0131] In some embodiments, for any segment to be processed, the first animation parameter includes at least one of an animation effect, a play duration, and an animation direction of the segment animation corresponding to the segment to be processed;
[0132] For any component to be processed, the second animation parameter includes at least one of the animation effect, playback duration and animation direction of the component animation corresponding to the component to be processed; wherein the animation effect includes at least one of rotation animation, zoom animation and translation animation.
[0133] In some implementations, for any to-be-processed segment, when the editing instruction carries the first animation parameter corresponding to the to-be-processed segment, the first animation parameter corresponding to the to-be-processed segment is determined according to the editing instruction;
[0134] When the editing instruction does not carry the first animation parameter corresponding to the fragment to be processed, the attribute information of the fragment to be processed is input into the pre-trained model to determine the category to which the fragment to be processed belongs, and the first animation parameter corresponding to the fragment to be processed is determined based on the category to which the fragment to be processed belongs.
[0135] In some implementations, for any component to be processed, when the editing instruction carries the second animation parameter corresponding to the component to be processed, the second animation parameter corresponding to the component to be processed is determined according to the editing instruction;
[0136] When the editing instruction does not carry the second animation parameter corresponding to the component to be processed, the attribute information of the component to be processed is input into the pre-trained model to determine the category of the component to be processed, and the second animation parameter corresponding to the component to be processed is determined based on the category of the component to be processed.
[0137] In some embodiments, the pre-trained model is trained using a plurality of components to be processed, the categories to which each component to be processed belongs, a plurality of segments to be processed, and the categories to which each segment to be processed belongs.
[0138] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0139] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0140] Figure 7 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 7 As shown, the electronic device includes: a memory 710 and a processor 720, and the memory 710 stores a computer program that can be run on the processor 720. The number of the memory 710 and the processor 720 can be one or more. The memory 710 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 730, which is used to communicate with external devices and perform data exchange transmission.
[0141] If the memory 710, the processor 720 and the communication interface 730 are implemented independently, the memory 710, the processor 720 and the communication interface 730 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0142] Optionally, in a specific implementation, if the memory 710, the processor 720 and the communication interface 730 are integrated on a chip, the memory 710, the processor 720 and the communication interface 730 can communicate with each other through an internal interface.
[0143] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0144] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).
[0145] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present disclosure are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. Computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, Bluetooth, microwave, etc.) means. Computer-readable storage media may be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more available media integrated therein. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., digital versatile discs (DVD)), or semiconductor media (e.g., solid state drives (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.
[0146] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0147] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0148] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or, for example, A / B can mean A or B. "And / or" in this article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0149] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.
[0150] The above are merely exemplary embodiments of the present disclosure and are not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for generating a target animation, wherein the target animation is used to display the installation process of a target object, the method comprising: Receiving an editing instruction and a target object; wherein the target object includes a plurality of segments to be processed; each of the segments to be processed includes at least one component to be processed; Using the editing instruction, determine a first order and a second order corresponding to each of the to-be-processed segments; wherein the first order represents the play order of the segment animations corresponding to each of the to-be-processed segments; for any of the to-be-processed segments, the second order represents the play order of the component animations corresponding to each of the to-be-processed components in the to-be-processed segment; According to the first order, the fragment animations corresponding to each of the fragments to be processed are played in sequence to obtain the target animation corresponding to the target object; wherein, for any of the fragments to be processed, the fragment animation is determined according to the second order corresponding to the fragment to be processed and the component animation corresponding to each of the components to be processed in the fragment to be processed.
2. The method according to claim 1, wherein: The editing instruction includes at least one of the following: said first order; the second order corresponding to any of the to-be-processed segments; a first animation parameter corresponding to any of the to-be-processed segments; A second animation parameter corresponding to any of the components to be processed.
3. The method according to claim 2, wherein: For any of the to-be-processed segments, the segment animation is determined according to the second order corresponding to the to-be-processed segment, the component animation corresponding to each of the to-be-processed components in the to-be-processed segment, and the first animation parameter corresponding to the to-be-processed segment: For any of the components to be processed, the component animation is determined according to the second animation parameter corresponding to the component to be processed.
4. The method according to claim 3, wherein: For any of the to-be-processed segments, the first animation parameter is determined according to the editing instruction and / or the attribute information of the to-be-processed segment; wherein the attribute information of the to-be-processed segment includes at least one of the length, height and width of the to-be-processed segment; For any of the components to be processed, the second animation parameter is determined according to the editing instruction and / or the attribute information of the component to be processed; wherein the attribute information of the component to be processed includes at least one of the length, height and width of the component to be processed.
5. The method according to claim 4, wherein: For any of the to-be-processed segments, the first animation parameter includes at least one of an animation effect, a play duration, and an animation direction of the segment animation corresponding to the to-be-processed segment; For any of the components to be processed, the second animation parameter includes at least one of the animation effect, playback duration and animation direction of the component animation corresponding to the component to be processed; wherein the animation effect includes at least one of rotation animation, zoom animation and translation animation.
6. The method according to claim 5, wherein: For any of the to-be-processed segments, in the case where the editing instruction carries the first animation parameter corresponding to the to-be-processed segment, the first animation parameter corresponding to the to-be-processed segment is determined according to the editing instruction; When the editing instruction does not carry the first animation parameter corresponding to the fragment to be processed, the attribute information of the fragment to be processed is input into the pre-trained model to determine the category to which the fragment to be processed belongs, and the first animation parameter corresponding to the fragment to be processed is determined based on the category to which the fragment to be processed belongs.
7. The method according to claim 6, wherein: For any of the components to be processed, when the editing instruction carries the second animation parameter corresponding to the component to be processed, the second animation parameter corresponding to the component to be processed is determined according to the editing instruction; When the editing instruction does not carry the second animation parameter corresponding to the component to be processed, the attribute information of the component to be processed is input into the pre-trained model to determine the category to which the component to be processed belongs, and the second animation parameter corresponding to the component to be processed is determined based on the category to which the component to be processed belongs.
8. The method according to claim 7, wherein: The pre-trained model is trained using a plurality of components to be processed, the categories to which each of the components to be processed belongs, a plurality of segments to be processed, and the categories to which each of the segments to be processed belongs.
9. An animation generating device, comprising: A receiving module, used for receiving an editing instruction and a target object; wherein the target object includes a plurality of segments to be processed; each of the segments to be processed includes at least one component to be processed; A determination module, used to determine the first order and the second order corresponding to each of the to-be-processed segments using the editing instruction; wherein the first order represents the play order of the segment animations corresponding to each of the to-be-processed segments; and for any of the to-be-processed segments, the second order represents the play order of the component animations corresponding to each of the to-be-processed components in the to-be-processed segment; A target animation generation module is used to play the fragment animations corresponding to each of the fragments to be processed in sequence according to the first order to obtain the target animation corresponding to the target object; wherein, for any of the fragments to be processed, the fragment animation is determined according to the second order corresponding to the fragment to be processed and the component animation corresponding to each of the components to be processed in the fragment to be processed.
10. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
12. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 8.