CN111273976A - Animation carousel method and device - Google Patents

Animation carousel method and device Download PDF

Info

Publication number
CN111273976A
CN111273976A CN202010023621.7A CN202010023621A CN111273976A CN 111273976 A CN111273976 A CN 111273976A CN 202010023621 A CN202010023621 A CN 202010023621A CN 111273976 A CN111273976 A CN 111273976A
Authority
CN
China
Prior art keywords
animation
animation object
controlling
motion
trailing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010023621.7A
Other languages
Chinese (zh)
Inventor
苗健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN202010023621.7A priority Critical patent/CN111273976A/en
Publication of CN111273976A publication Critical patent/CN111273976A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/802D [Two Dimensional] animation, e.g. using sprites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides an animation carousel method and device, and relates to the technical field of data processing, wherein the method comprises the following steps: determining a motion track of a first animation object; controlling the first animation object to move from a starting point to an end point along the motion track; when the first animation object moves to the end point, controlling the first animation object to gradually disappear, and controlling a second animation object to gradually appear at the start point, wherein the second animation object and the first animation object are animation objects with the same parameters; and determining the second animation object as a new first animation object, and returning to the step of controlling the first animation object to move from the starting point to the end point along the motion track. By applying the scheme provided by the embodiment of the invention to carry out the animation carousel, the played animation can be smoother.

Description

Animation carousel method and device
Technical Field
The invention relates to the technical field of data processing, in particular to an animation carousel method and device.
Background
The animation object moves from the starting point to the end point along the motion track to form the animation. When playing the animation, in order to obtain a better playing effect, the animation is often played in a carousel manner. That is, after the animation object moves from the starting point to the ending point along the motion trajectory, the animation object returns to the starting point to start moving again.
However, the animation object disappears directly after moving to the end point each time and appears at the start point directly, which causes a sudden change effect that the animation object disappears suddenly at the end point and appears suddenly at the start point in the animation playing process, so that the played animation is not smooth enough.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for carousel of animations, so that the played animations are smoother. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an animation carousel method, where the method includes:
determining a motion track of a first animation object;
controlling the first animation object to move from a starting point to an end point along the motion track;
when the first animation object moves to the end point, controlling the first animation object to gradually disappear, and controlling a second animation object to gradually appear at the start point, wherein the second animation object and the first animation object are animation objects with the same parameters;
and determining the second animation object as a new first animation object, and returning to the step of controlling the first animation object to move from the starting point to the end point along the motion track.
In one embodiment of the present invention, the controlling the first animation object to move from the starting point to the end point along the motion trail includes:
adding a trailing object to the first animated object;
controlling the first animation object and the trailing object to synchronously move from a starting point to an end point along the motion trail;
after the first animation object disappears, the method further comprises the following steps:
and controlling the trailing object to gradually disappear.
In an embodiment of the present invention, after the first animation object disappears, the method further includes:
controlling the first animation object to stay at the endpoint for a preset time;
the controlling the trailing object to fade away, comprising:
and controlling the trailing object to shorten towards the direction of the first animation object within the preset duration until the trailing object disappears.
In an embodiment of the present invention, in a case where the first animation object is a plurality of animation objects, the controlling the first animation object to move from the starting point to the ending point along the motion trajectory includes:
obtaining a motion interval between adjacent first animation objects according to the length of the motion trail and the number of the first animation objects;
and controlling each first animation object to move from the starting point to the end point along the motion track at the distance of the motion interval from the adjacent first animation object.
In one embodiment of the present invention, the controlling the first animation object to gradually disappear and the controlling the second animation object to gradually appear at the starting point when the first animation object moves to the ending point includes:
and when the first animation object moves to the end point, controlling the image filling rate of the first animation object to be changed from 1 to 0, and controlling the image filling rate of the second animation object to be changed from 0 to 1 at the starting point.
In a second aspect, an embodiment of the present invention provides an animation carousel device, where the device includes:
the track determining module is used for determining the motion track of the first animation object;
the object motion module is used for controlling the first animation object to move from a starting point to an end point along the motion track;
the object disappearing and appearing module is used for controlling the first animation object to disappear gradually and controlling a second animation object to appear gradually at the starting point when the first animation object moves to the ending point, wherein the second animation object and the first animation object are animation objects with the same parameters;
and the object determining module is used for determining the second animation object as a new first animation object and triggering the object motion module.
In one embodiment of the present invention, the object motion module includes:
an object adding submodule, configured to add a trailing object to the first animation object;
the object motion submodule is used for controlling the first animation object and the trailing object to synchronously move from a starting point to an end point along the motion track;
the device further comprises:
and the disappearance control module is used for controlling the trailing object to gradually disappear after the first animation object disappears.
In one embodiment of the present invention, the apparatus further comprises:
the stopping control module is used for controlling the first animation object to stop at the endpoint for a preset time after the first animation object disappears;
the disappearance control module is specifically configured to control the trailing object to shorten toward the first animation object within the preset duration until the trailing object disappears.
In an embodiment of the present invention, when the first animation object is a plurality of animation objects, the object motion module is specifically configured to:
obtaining a motion interval between adjacent first animation objects according to the length of the motion trail and the number of the first animation objects;
and controlling each first animation object to move from the starting point to the end point along the motion track at the distance of the motion interval from the adjacent first animation object.
In an embodiment of the present invention, the object disappearance and appearance module is specifically configured to:
and when the first animation object moves to the end point, controlling the image filling rate of the first animation object to be changed from 1 to 0, and controlling the image filling rate of the second animation object to be changed from 0 to 1 at the starting point.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a fourth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the first aspect.
In a fifth aspect, embodiments of the present invention also provide a computer program product comprising instructions, which when run on a computer, cause the computer to perform the method steps of any of the first aspects described above.
The embodiment of the invention has the following beneficial effects:
when the scheme provided by the embodiment of the invention is applied to the animation rotation broadcasting, the motion trail of the first animation object is determined; controlling the first animation object to move from a starting point to an end point along the motion track; when the first animation object moves to the end point, controlling the first animation object to gradually disappear, and controlling a second animation object to gradually appear at the start point, wherein the second animation object and the first animation object are animation objects with the same parameters; and determining the second animation object as a new first animation object, and returning to the step of controlling the first animation object to move from the starting point to the end point along the motion track. When the animation is played by the method, one animation object gradually disappears at the end point of the motion trail, and the other animation object with the same parameters gradually appears at the start point of the motion trail. That is, in the process of playing the animation, the animation object does not suddenly disappear at the end point and suddenly appear at the starting point, so that the played animation is smoother.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic flowchart of a first animation carousel method according to an embodiment of the present invention;
fig. 1B is a schematic diagram of a first process of disappearing an animation object according to an embodiment of the present invention;
FIG. 1C is a diagram illustrating a second process of disappearing an animated object according to an embodiment of the present invention;
fig. 2A is a schematic flowchart of a second animation carousel method according to an embodiment of the present invention;
FIG. 2B is a diagram illustrating an animated object and a trailing object according to an embodiment of the present invention;
fig. 2C is a flowchart illustrating a third animation carousel method according to an embodiment of the present invention;
fig. 3A is a schematic flowchart of a fourth animation carousel method according to an embodiment of the present invention;
FIG. 3B is a diagram illustrating a plurality of animation objects according to an embodiment of the invention;
fig. 4 is a schematic structural diagram of a first animation carousel apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a second animation carousel device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a third animation carousel device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the prior art, the sudden change effect that the animation object suddenly disappears at the end point and suddenly appears at the starting point occurs in the animation playing process, so that the played animation is not smooth enough. In order to solve the technical problem, embodiments of the present invention provide an animation carousel method and apparatus.
In an embodiment of the present invention, an animation carousel method is provided, where the method includes:
determining a motion track of a first animation object;
controlling the first animation object to move from a starting point to an end point along the motion track;
when the first animation object moves to the end point, controlling the first animation object to gradually disappear, and controlling a second animation object to gradually appear at the start point, wherein the second animation object and the first animation object are animation objects with the same parameters;
and determining the second animation object as a new first animation object, and returning to the step of controlling the first animation object to move from the starting point to the end point along the motion track.
As can be seen from the above, when the animation is played by the above method, while one animation object gradually disappears at the end point of the motion trail, another animation object with the same parameters gradually appears at the start point of the motion trail. That is, in the process of playing the animation, the animation object does not suddenly disappear at the end point and suddenly appear at the starting point, so that the played animation is smoother.
The following describes an animation carousel method and apparatus provided in an embodiment of the present invention with specific embodiments.
Referring to fig. 1A, an embodiment of the present invention provides a flowchart of a first animation carousel method, and specifically, the method includes the following steps S101 to S104.
S101: a motion trajectory of the first animated object is determined.
Specifically, the motion trajectory is a trajectory followed by the first animation object when moving, and may be represented by a set of each pixel point in the image.
For example, the first animation object may be an arrow, a person, an airplane, or the like.
S102: and controlling the first animation object to move from the starting point to the end point along the motion track.
Specifically, the preset key point in the first animation object may be always located on the motion trajectory in the process that the first animation object moves from the starting point to the ending point along the motion trajectory.
For example, when the first animation object is a circular object, the preset key point may be a circle center.
In addition, the first animation object can move from the starting point to the end point along the motion track at a preset speed.
For example, the preset speed may be one tenth, one fifth, and the like of the moving track length of the first animation object per second.
The motion trail may be determined by a key point in the motion trail, wherein the motion trail may include a plurality of key points, and the position of each key point may be represented by using coordinates of the key point. When the first animation object is controlled to move along the motion trail, the first animation object can be controlled to move along a straight line between adjacent key points, so that the first animation object moves from the starting point to the end point of the motion trail.
Specifically, the first animation object can be controlled to move from the starting point to the end point along the motion trajectory through the steps S102A-S102B, which will not be described in detail herein.
In the case that the first animation object is a plurality of objects, the first animation object can also be controlled to move from the starting point to the end point along the motion trail through the steps S102C-S102D, which will not be detailed herein.
S103: and when the first animation object moves to the end point, controlling the first animation object to gradually disappear, and controlling the second animation object to gradually appear at the starting point.
The second animation object and the first animation object are animation objects with the same parameters. Thus, the first animation object and the second animation object have the same representation effect in the animation.
In an embodiment of the present invention, the step S103 may be implemented by a step a.
Step A: when the first animation object moves to the end point, the image filling rate of the first animation object is controlled to be changed from 1 to 0, and the image filling rate of the second animation object is controlled to be changed from 0 to 1 at the starting point.
Specifically, the image fill rate of the entire first animation object may be controlled to change from 1 to 0 in the preset time, and the image fill rate of the entire second animation object may be controlled to change from 0 to 1 in the preset time.
For example, the first animation object may be controlled to respectively reduce the preset image filling rate in each sub-period of the preset time, and the second animation object may be controlled to respectively increase the preset image filling rate in each sub-period of the preset time.
For example, the preset time may be 1 second, 2 seconds, 5 seconds, or the like.
Taking the first animation object as an arrow as an example, the image fill rate of the whole arrow can be controlled to change from 1 to 0 within 1 second, wherein the duration of the sub-period is 0.1 second, and the image fill rate is reduced by 0.1 every 0.1 second.
Taking the second animation object as an arrow as an example, the image fill rate of the whole arrow can be controlled to change from 0 to 1 within 1 second, wherein the duration of the sub-period is 0.1 second, and the image fill rate is increased by 0.1 every 0.1 second.
The parts in the first animation object can also be controlled to gradually disappear in the preset time from the moving direction of the first animation object from the front to the back, so that the image filling rate of the first animation object is changed from 1 to 0. And controlling the parts in the second animation object to gradually appear in the preset time from front to back, so that the image filling rate of the second animation object is changed from 0 to 1. Referring to FIG. 1B, a schematic illustration of a first animated object disappearance process is provided.
Referring to FIG. 1C, a schematic illustration of the second animation object disappearance process is provided.
The animation objects in fig. 1B and 1C are arrows, and the process of the arrows disappearing from the front to the back is shown from fig. 1B to 1C.
S104: and determining the second animation object as a new first animation object, and returning to the step S102.
And determining the second animation object as a new first animation object, and returning to execute the step S102, so that the animation of the first animation object moving from the starting point to the end point is played circularly, and the effect of the animation carousel is realized.
As can be seen from the above, in the scheme provided by the embodiment of the present invention, when the animation is played by the above method, while one animation object gradually disappears at the end point of the motion trajectory, another animation object with the same parameter gradually appears at the start point of the motion trajectory. That is, in the process of playing the animation, the animation object does not suddenly disappear at the end point and suddenly appear at the starting point, so that the played animation is smoother.
Referring to fig. 2A, an embodiment of the present invention provides a flowchart of a second animation carousel method, and compared with the foregoing embodiment shown in fig. 1A, the foregoing step S102 in this embodiment may be implemented by steps S102A-S102B.
S102A: and adding a trailing object to the first animation object.
Specifically, the trailing object is a trailing behind the first animation object, so that the first animation object can generate a trailing effect when moving.
Referring to fig. 2B, a schematic diagram of an animated object and a trailing object is provided, where part a in fig. 2B is a first animated object and part B is a trailing object.
S102B: and controlling the first animation object and the trailing object to synchronously move from the starting point to the end point along the motion track.
Specifically, since the trailing object is a trailing added behind the first animation object, in the process of controlling the first animation object to move from the starting point to the ending point along the motion trajectory, the trailing and the first animation object need to be controlled to keep moving synchronously, so that the first animation object can generate a trailing effect when moving.
In step S103, after the first animation object disappears, the method further includes:
s105: and controlling the trailing object to gradually disappear.
Since the above-mentioned trailing object is a trailing object added to the first animation object, the first animation object and the trailing object can be regarded as a whole, and therefore, the trailing object also needs to be controlled to gradually disappear after the first animation object disappears.
As can be seen from the above, since the trailing object is added to the first animation object, the trailing object moves synchronously with the first animation object when the first animation object moves from the starting point to the ending point, and the trailing object gradually disappears after the first animation object disappears, a trailing effect is added behind the first animation object in the animation, thereby improving the aesthetic measure of the animation.
Referring to fig. 2C, an embodiment of the present invention provides a flowchart of a third animation carousel method, and compared with the embodiment shown in fig. 2A, in this embodiment, after the first animation object disappears in step S103, the method further includes:
s106: and controlling the first animation object to stay at the end point for a preset time length.
Specifically, the trailing object gradually disappears within a preset time period during which the first animation object stays at the end point. Since the trailing object and the first animated object can be regarded as a whole, in the process of gradually disappearing the trailing object, the first animated object needs to stay at the end point to wait for the gradual disappearance of the trailing object.
For example, the preset time period may be 2 seconds, 3 seconds, or the like.
In addition, compared with the foregoing embodiment shown in fig. 2A, the above step S105 in the present embodiment can be realized by the following step S105A.
S105A: and controlling the trailing object to shorten towards the direction of the first animation object within the preset time length until the trailing object disappears.
Specifically, the smear may be divided into portions, and the smear is controlled to change the image fill rate from 1 to 0 in order from a portion far from the first animation object within the preset time period.
For example, the preset time length is 2 seconds, the tail is divided into 4 parts, and each part is a tail part 1, a tail part 2, a tail part 3, and a tail part 4 from far to near in sequence from the first animation object, so that from the tail part 1, the image fill rate of each tail part is changed from 1 to 0 within 0.5 seconds until the image fill rate of the tail part 4 is changed to 0.
Therefore, the trailing object is gradually shortened to disappear after the first animation object disappears, so that the effect that the trailing object disappears along with the first animation object after the first animation object disappears is generated, and the attractiveness of the animation is improved.
Referring to fig. 3A, the embodiment of the present invention provides a flowchart of a fourth animation carousel method, and compared with the foregoing embodiment shown in fig. 1A, in the case that the first animation object is a plurality of animation objects, the foregoing step S102 in this embodiment may be implemented by steps S102C-S102D.
S102C: and obtaining the motion interval between the adjacent first animation objects according to the length of the motion trail and the number of the first animation objects.
Specifically, the motion interval may be obtained according to the length of the motion trajectory and the number of the first animation objects.
For example, if the number of the first animation objects is 5, the motion interval is one fifth of the length of the motion trajectory.
S102D: and controlling each first animation object to move from the starting point to the end point along the motion track at the distance of the motion interval from the adjacent first animation object.
Specifically, the adjacent first animation objects are always separated from each other by the movement interval in the movement process.
Referring to fig. 3B, a schematic diagram of a plurality of animation objects is provided, wherein each black and white arrow in the diagram is each animation object, and the motion intervals between each adjacent animation object on the same motion track are the same.
Therefore, the plurality of first animation objects are contained on the same motion track to move synchronously, so that the plurality of animation objects can appear on the motion track simultaneously, and the plurality of animation objects can show animation effects in more detail when being displayed simultaneously, thereby improving the attractiveness of the animation.
Corresponding to the animation carousel method, the embodiment of the invention also provides an animation carousel device.
Referring to fig. 4, an embodiment of the present invention provides a schematic structural diagram of a first animation carousel device, where the device includes:
a trajectory determination module 401, configured to determine a motion trajectory of the first animation object;
an object motion module 402, configured to control a first animation object to move from a starting point to an end point along the motion trajectory;
an object disappearing and appearing module 403, configured to control the first animation object to disappear gradually and control a second animation object to appear gradually at the starting point when the first animation object moves to the ending point, where the second animation object and the first animation object are animation objects with the same parameters;
an object determination module 404, configured to determine the second animation object as a new first animation object, and trigger the object motion module 402.
When the animation is played by the method, one animation object gradually disappears at the end point of the motion trail, and the other animation object with the same parameters gradually appears at the start point of the motion trail. That is, in the process of playing the animation, the animation object does not suddenly disappear at the end point and suddenly appear at the starting point, so that the played animation is smoother.
Referring to fig. 5, an embodiment of the present invention provides a structural schematic diagram of a second animation carousel apparatus, where the object motion module 402 includes:
an object adding submodule 402A for adding a trailing object to the first animated object;
an object motion sub-module 402B, configured to control the first animation object and the trailing object to move along the motion trajectory synchronously from a start point to an end point;
the device further comprises:
a disappearance control module 405, configured to control the trailing object to gradually disappear after the first animation object disappears.
As can be seen from the above, since the trailing object is added to the first animation object, the trailing object moves synchronously with the first animation object when the first animation object moves from the starting point to the ending point, and the trailing object gradually disappears after the first animation object disappears, a trailing effect is added behind the first animation object in the animation, thereby improving the aesthetic measure of the animation.
Referring to fig. 6, an embodiment of the present invention provides a schematic structural diagram of a third animation carousel device, where the device includes:
the stopping control module 406 is configured to control the first animation object to stop at the endpoint for a preset time after the first animation object disappears;
the disappearance control module 405 is specifically configured to:
and controlling the trailing object to shorten towards the direction of the first animation object within the preset duration until the trailing object disappears.
Therefore, the trailing object is gradually shortened to disappear after the first animation object disappears, so that the effect that the trailing object disappears along with the first animation object after the first animation object disappears is generated, and the attractiveness of the animation is improved.
In an embodiment of the present invention, when the first animation object is a plurality of animation objects, the object motion module 402 is specifically configured to:
obtaining a motion interval between adjacent first animation objects according to the length of the motion trail and the number of the first animation objects;
and controlling each first animation object to move from the starting point to the end point along the motion track at the distance of the motion interval from the adjacent first animation object.
Therefore, the plurality of first animation objects are contained on the same motion track to move synchronously, so that the plurality of animation objects can appear on the motion track simultaneously, and the plurality of animation objects can show animation effects in more detail when being displayed simultaneously, thereby improving the attractiveness of the animation.
In an embodiment of the present invention, the object disappearing and appearing module 403 is specifically configured to:
and when the first animation object moves to the end point, controlling the image filling rate of the first animation object to be changed from 1 to 0, and controlling the image filling rate of the second animation object to be changed from 0 to 1 at the starting point.
An embodiment of the present invention further provides an electronic device, as shown in fig. 7, including a processor 701, a communication interface 702, a memory 703 and a communication bus 704, where the processor 701, the communication interface 702, and the memory 703 complete mutual communication through the communication bus 704,
a memory 703 for storing a computer program;
the processor 701 is configured to implement the method steps of any of the above-described animation carousel method embodiments when executing the program stored in the memory 703.
When the electronic equipment provided by the embodiment of the invention is applied to realize the animation rotation broadcasting, the motion trail of the first animation object is determined; controlling the first animation object to move from a starting point to an end point along the motion track; when the first animation object moves to the end point, controlling the first animation object to gradually disappear, and controlling a second animation object to gradually appear at the start point, wherein the second animation object and the first animation object are animation objects with the same parameters; and determining the second animation object as a new first animation object, and returning to the step of controlling the first animation object to move from the starting point to the end point along the motion track. When the animation is played by the method, one animation object gradually disappears at the end point of the motion trail, and the other animation object with the same parameters gradually appears at the start point of the motion trail. That is, in the process of playing the animation, the animation object does not suddenly disappear at the end point and suddenly appear at the starting point, so that the played animation is smoother.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any of the above-mentioned animation carousel method embodiments.
When the computer program stored in the computer readable storage medium provided by the embodiment of the invention is executed to realize the animation rotation broadcasting, the motion trail of the first animation object is determined; controlling the first animation object to move from a starting point to an end point along the motion track; when the first animation object moves to the end point, controlling the first animation object to gradually disappear, and controlling a second animation object to gradually appear at the start point, wherein the second animation object and the first animation object are animation objects with the same parameters; and determining the second animation object as a new first animation object, and returning to the step of controlling the first animation object to move from the starting point to the end point along the motion track. When the animation is played by the method, one animation object gradually disappears at the end point of the motion trail, and the other animation object with the same parameters gradually appears at the start point of the motion trail. That is, in the process of playing the animation, the animation object does not suddenly disappear at the end point and suddenly appear at the starting point, so that the played animation is smoother.
In a further embodiment of the present invention, there is also provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps as described in any of the animation carousel method embodiments above.
When the computer program product provided by the embodiment of the invention is executed to realize the animation rotation broadcasting, the motion trail of the first animation object is determined; controlling the first animation object to move from a starting point to an end point along the motion track; when the first animation object moves to the end point, controlling the first animation object to gradually disappear, and controlling a second animation object to gradually appear at the start point, wherein the second animation object and the first animation object are animation objects with the same parameters; and determining the second animation object as a new first animation object, and returning to the step of controlling the first animation object to move from the starting point to the end point along the motion track. When the animation is played by the method, one animation object gradually disappears at the end point of the motion trail, and the other animation object with the same parameters gradually appears at the start point of the motion trail. That is, in the process of playing the animation, the animation object does not suddenly disappear at the end point and suddenly appear at the starting point, so that the played animation is smoother.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the electronic device, the computer-readable storage medium and the computer program product, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to them, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. An animation carousel method, the method comprising:
determining a motion track of a first animation object;
controlling the first animation object to move from a starting point to an end point along the motion track;
when the first animation object moves to the end point, controlling the first animation object to gradually disappear, and controlling a second animation object to gradually appear at the start point, wherein the second animation object and the first animation object are animation objects with the same parameters;
and determining the second animation object as a new first animation object, and returning to the step of controlling the first animation object to move from the starting point to the end point along the motion track.
2. The method of claim 1, wherein controlling the first animated object to move along the motion trajectory from a starting point to an ending point comprises:
adding a trailing object to the first animated object;
controlling the first animation object and the trailing object to synchronously move from a starting point to an end point along the motion trail;
after the first animation object disappears, the method further comprises the following steps:
and controlling the trailing object to gradually disappear.
3. The method of claim 2, after the first animated object disappears, further comprising:
controlling the first animation object to stay at the endpoint for a preset time;
the controlling the trailing object to fade away, comprising:
and controlling the trailing object to shorten towards the direction of the first animation object within the preset duration until the trailing object disappears.
4. The method of claim 1, wherein in the case that the first animation object is a plurality of animation objects, the controlling the first animation object to move from a starting point to an end point along the motion trajectory comprises:
obtaining a motion interval between adjacent first animation objects according to the length of the motion trail and the number of the first animation objects;
and controlling each first animation object to move from the starting point to the end point along the motion track at the distance of the motion interval from the adjacent first animation object.
5. The method of any of claims 1-4, wherein controlling the first animated object to fade away and the second animated object to fade away at the starting point when the first animated object moves to the ending point comprises:
and when the first animation object moves to the end point, controlling the image filling rate of the first animation object to be changed from 1 to 0, and controlling the image filling rate of the second animation object to be changed from 0 to 1 at the starting point.
6. An animation carousel apparatus, the apparatus comprising:
the track determining module is used for determining the motion track of the first animation object;
the object motion module is used for controlling the first animation object to move from a starting point to an end point along the motion track;
the object disappearing and appearing module is used for controlling the first animation object to disappear gradually and controlling a second animation object to appear gradually at the starting point when the first animation object moves to the ending point, wherein the second animation object and the first animation object are animation objects with the same parameters;
and the object determining module is used for determining the second animation object as a new first animation object and triggering the object motion module.
7. The apparatus of claim 6, wherein the object motion module comprises:
an object adding submodule, configured to add a trailing object to the first animation object;
the object motion submodule is used for controlling the first animation object and the trailing object to synchronously move from a starting point to an end point along the motion track;
the device further comprises:
and the disappearance control module is used for controlling the trailing object to gradually disappear after the first animation object disappears.
8. The apparatus of claim 7, further comprising:
the stopping control module is used for controlling the first animation object to stop at the endpoint for a preset time after the first animation object disappears;
the disappearance control module is specifically configured to control the trailing object to shorten toward the first animation object within the preset duration until the trailing object disappears.
9. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN202010023621.7A 2020-01-09 2020-01-09 Animation carousel method and device Pending CN111273976A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010023621.7A CN111273976A (en) 2020-01-09 2020-01-09 Animation carousel method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010023621.7A CN111273976A (en) 2020-01-09 2020-01-09 Animation carousel method and device

Publications (1)

Publication Number Publication Date
CN111273976A true CN111273976A (en) 2020-06-12

Family

ID=70998942

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010023621.7A Pending CN111273976A (en) 2020-01-09 2020-01-09 Animation carousel method and device

Country Status (1)

Country Link
CN (1) CN111273976A (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752607A (en) * 2011-11-30 2012-10-24 新奥特(北京)视频技术有限公司 Method and device for achieving trailing special effect during image moving
CN104050579A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Method and apparatus for realizing animation carousel effect
CN106204696A (en) * 2016-07-05 2016-12-07 网易(杭州)网络有限公司 A kind of specially good effect implementation method and device
CN106303722A (en) * 2016-08-04 2017-01-04 腾讯科技(深圳)有限公司 The method and device that a kind of animation is play
CN107423366A (en) * 2017-06-28 2017-12-01 武汉斗鱼网络科技有限公司 A kind of carousel figure switching method and device
CN107945243A (en) * 2017-11-23 2018-04-20 杭州电魂网络科技股份有限公司 image moving method and device
CN108961370A (en) * 2018-06-26 2018-12-07 北京酷我科技有限公司 A kind of cartoon optimization algorithm thumbing up effect
CN109828811A (en) * 2018-12-28 2019-05-31 北京城市网邻信息技术有限公司 A kind of methods of exhibiting and device of card object
US20190251731A1 (en) * 2016-10-19 2019-08-15 Alibaba Group Holding Limited Method and apparatus for animating images on mobile devices
CN110333816A (en) * 2019-07-03 2019-10-15 腾讯科技(深圳)有限公司 A kind of carousel processing method and processing device
CN110610535A (en) * 2019-08-19 2019-12-24 武大吉奥信息技术有限公司 Vector data-based method for realizing configurable front-end pure JS map animation set

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752607A (en) * 2011-11-30 2012-10-24 新奥特(北京)视频技术有限公司 Method and device for achieving trailing special effect during image moving
CN104050579A (en) * 2013-03-12 2014-09-17 阿里巴巴集团控股有限公司 Method and apparatus for realizing animation carousel effect
CN106204696A (en) * 2016-07-05 2016-12-07 网易(杭州)网络有限公司 A kind of specially good effect implementation method and device
CN106303722A (en) * 2016-08-04 2017-01-04 腾讯科技(深圳)有限公司 The method and device that a kind of animation is play
US20190251731A1 (en) * 2016-10-19 2019-08-15 Alibaba Group Holding Limited Method and apparatus for animating images on mobile devices
CN107423366A (en) * 2017-06-28 2017-12-01 武汉斗鱼网络科技有限公司 A kind of carousel figure switching method and device
CN107945243A (en) * 2017-11-23 2018-04-20 杭州电魂网络科技股份有限公司 image moving method and device
CN108961370A (en) * 2018-06-26 2018-12-07 北京酷我科技有限公司 A kind of cartoon optimization algorithm thumbing up effect
CN109828811A (en) * 2018-12-28 2019-05-31 北京城市网邻信息技术有限公司 A kind of methods of exhibiting and device of card object
CN110333816A (en) * 2019-07-03 2019-10-15 腾讯科技(深圳)有限公司 A kind of carousel processing method and processing device
CN110610535A (en) * 2019-08-19 2019-12-24 武大吉奥信息技术有限公司 Vector data-based method for realizing configurable front-end pure JS map animation set

Similar Documents

Publication Publication Date Title
KR101562098B1 (en) Progress bar
JP6214547B2 (en) Measuring the rendering time of a web page
CN104243668B (en) A kind of video played in full screen method and device based on Android operation system
CN109718538B (en) Method and device for frame selection of virtual object in game, electronic equipment and storage medium
WO2019006939A1 (en) On-screen comment display method and apparatus, and electronic device
CN109448078B (en) Image editing system, method and equipment
CN103544245B (en) Ranking list generating method and server
CN109086105B (en) Page layout conversion method and device and electronic equipment
CN111026392A (en) Method and device for generating guide page and electronic equipment
EP2639716A2 (en) Progress bar
CN113769375B (en) Game control processing method and device, terminal equipment and readable storage medium
CN105657446B (en) The detection method and device of bumper advertisements in a kind of video
CN109523614B (en) 3D animation export method, 3D animation playing method and device
CN108470368B (en) Method and device for determining rendering object in virtual scene and electronic equipment
CN111273976A (en) Animation carousel method and device
WO2024002092A1 (en) Method and apparatus for pushing video, and storage medium
CN113176904A (en) Application starting animation adjusting method and device
CN110110260B (en) Page rendering method and device and electronic equipment
CN104697518A (en) Method and device for playing guidance voice in navigation process
CN109002293B (en) UI element display method and device, electronic equipment and storage medium
CN107818584B (en) Method and device for determining finger position information of user, projector and projection system
CN111079061A (en) Data processing method and electronic equipment
CN107798718B (en) Animation playback method and device
CN111009025B (en) Bone animation hiding method, device and equipment
KR102541981B1 (en) Conversion of static content items to interactive content items

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200612